WordPress.org

Forums

W3 Total Cache
Problem with 0.9.2.7 and nginx (7 posts)

  1. niska
    Member
    Posted 2 years ago #

    I just updated to 0.9.2.7 and then got the message that I had to update my conf-file. So I pressed "automatic" and then restarted nginx to read in the new conf-file.

    But then my site was no longer accessible. I get error "File not found" on my front page.

    My error.log say:

    2013/02/06 13:47:30 [error] 24164#0: *26 open() "/www/domain.com/public_html/wp-content/cache/page_enhanced/www.domain.com///_index.html_gzip" failed (2: No such file or directory), client: 193.22.88.6, server: http://www.domain.com, request: "GET / HTTP/1.1", host: "www.domain.com"

    I had to disable W3TC and then it all started to work again. My site is now up.

    There seems to be something wrong with the conf-file?

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. niska
    Member
    Posted 2 years ago #

    Solved it tempory by downgrading to 0.9.2.4

  3. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    If you could submit a bug report from the support page with information regarding your wordpress and nginx setup that would be beneficial.

  4. Jesper Jonsson
    Member
    Posted 2 years ago #

    Actually I think there is an error in the nginx sample conf.

    Shouldn't it be

    if (!-f "$document_root/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_ssl.html$w3tc_enc") {
      set $w3tc_rewrite 0;
    }

    instead of

    if (-f "$document_root/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_ssl.html$w3tc_enc") {
      set $w3tc_rewrite 0;
    }

    If the file doesn't exist it shouldn't rewrite?! :)

  5. ff00
    Member
    Posted 2 years ago #

    Jesper Jonsson
    Actually I think there is an error in the nginx sample conf.

    Jesper, thank you so much for sharing this information! Worked for me.

  6. niska
    Member
    Posted 2 years ago #

    It's still not working for me. Where can I find the nginx sample conf? I'm now using 0.9.2.8.

  7. Pothi
    Member
    Posted 2 years ago #

    Where can I find the nginx sample conf?

    In your site's /wp-admin/admin.php?page=w3tc_install. Or check out the bug fix here that is basically what Jesper already mentioned in this thread.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.