• Resolved emilsarymsakov

    (@emilsarymsakov)


    Hello developers.

    I installed w3tc on my wordpress with simple wordpress hosting with PHP 8.0.20. In first I got a problem with .htacess file. When I turned on Gzip my site stopped worked. I had to delete all records in .htacess files before #Begin WordPress.

    In second, now I have spam error in my error_log
    AH01071: Got error 'PHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message:

    And

    wp-admin/includes/template.php on line 2224PHP message: PHP Warning: Attempt to read property "ID" on null in

    Size of error_log file is grows every hour.

    How can I fix that? please explain in simple terms

    Thanks

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @emilsarymsakov

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    I’ve checked your website and I can see that you are using Redis for DB caching.
    I can also see that you are using Object Caching and caching to DISK, so I would advise disabling Object Caching in this case.
    The PHP message: Connection refused suggests that there might be a problem with the Redis configuration. So you should check the Redis status sudo systemctl status redis
    Also restart the Redis server sudo systemctl restart redis and try restarting your nginx server.
    For the time being, also disable Database Caching to avoid piling the error.log.

    Let me know if this helps!

    Thanks!

    Thread Starter emilsarymsakov

    (@emilsarymsakov)

    @vmarko Thanks for your answer.
    Just now I found out from my hosting provider that provider not use Redis, cause they use SQL. What do I need to do? Change settings in database cache, switch setting Redis to Disk? Or?

    Thread Starter emilsarymsakov

    (@emilsarymsakov)

    Now I switch setting Redis to Disk and errors was stopped.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @emilsarymsakov

    Thank you for your feedback.
    So it appears that the W3TC was trying to connect with Redis and failed to do so.
    Generally speaking, it’s not recommended to use DB caching and Object Caching if the only available method is Disk. The reason for this is that using disk-database caching (on shared hosting) can make your site slower. This is so because getting data from the database can be faster than getting cached data from the disk.
    If however caching to disk makes your site faster, feel free to use it, and if yous tart experiencing problems, disable those settings and delete the folders /object/ and /db/ from the wp-content/cache/ folder

    Thanks!

    Thread Starter emilsarymsakov

    (@emilsarymsakov)

    @vmarko Thank you, dear developer.

    I have 2 more questions.
    This errors may be related with w3tc?
    /var/www/vhosts/razvitie.live/httpdocs/wp-admin/includes/template.php on line 2219PHP message: PHP Warning: Attempt to read property "ID" on null in /var/www/vhosts/razvitie.live/httpdocs/wp-admin/includes/template.php on line 2224PHP message: PHP Warning: Attempt to read property "ID" on null in /var/www/vhosts/razvitie.live/httpdocs/wp-admin/includes/template.php on line 2228PHP message: PHP Warning: Attempt to read property "ID" on null in /var/www/vhosts/razvitie.live/httpdocs/wp-admin/includes/template.php on line 2233PHP message: PHP Warning: Attempt to read property "post_status" on null in /var/www/vhosts/razvitie.live/httpdocs/wp-admin/includes/template.php on line 2197PHP message: PHP Warning: Attempt to read property "post_status" on null in /var/www/vhosts/razvitie.live/httpdocs/wp-admin/includes/template.php on line 2201PHP message: PHP Warning: Attempt to read property "post_status" on null in /var/www/vhosts/razvitie.live/httpdocs/wp-admin/includes/template.php on line 2207PHP message: PHP Warning: Attempt to read property "post_status" on null in /var/www/vhosts/razvitie.live/httpdocs/wp-admin/includes/template.php on line 2211PHP message: PHP Warning: Attempt to read property "ID" on null in /var/www/vhosts/razvitie.live/httpdocs/wp-admin/includes/template.php on line 2215PHP message: PHP Warning: Attempt to read property "post_status" on null in /var/www/vhosts/razvitie.live/httpdocs/wp-admin/includes/template.php on line 2219PHP message: PHP Warning: Attempt to read property "ID" on null in /var/www/vhosts/razvitie.live/httpdocs/wp-admin/includes/template.php on line 2224PHP message: PHP Warning: Attempt to read property "ID" on null in /var/www/vhosts/razvitie.live/httpdocs/wp-admin/includes/template.php on line 2228PHP message: PHP Warning: Attempt to read property "ID" on null in

    And second, if i deactivate and delete w3tc will the plugin clear all its settings after itself?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @emilsarymsakov

    This is not related to W3 Total Cache, it seems like an invalid page entry from one of the menus or if a page (instead of the ‘blog’) is the front page.

    As for your other question, hide depends on the environment, however, in most cases, all the files and folders created by W3 Total Cache should be removed, including the .htaccess rules.
    The W3TC settings are saved in /wp-content/w3tc-config/master.php file
    So if the situation comes that you need to completely remove and re-install W3 Total Cache, once deleted check if the following files and folders exist:
    – cache folder
    – w3tc-config folder
    – object-cache.php (if exists)
    – advanced-cache.php (if exists)
    – db.php (if exists)
    – upgrade folder
    – delete w3-total-cache folder in wp-content/plugins/ (if exists)

    I hope this helps!

    Thanks!

    Thread Starter emilsarymsakov

    (@emilsarymsakov)

    @vmarko Thank you

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @emilsarymsakov

    You are most welcome!

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Connection Refused’ is closed to new replies.