WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: W3 Total Cache] Error notification issue (8 posts)

  1. bushtool
    Member
    Posted 4 years ago #

    Installed the latest .9 develop version today over a previous .9 version. When I activate the plugin I get constant emails titled "W3 Total Cache Error Notification" with "241" in the body of the email. The plugin also hangs my sites until I remove the plugin and the related files.

  2. spf13
    Member
    Posted 4 years ago #

    I updated to 0.9.1.1 today and had the same issue. Every admin page except the general one results in "You do not have sufficient permissions to access this page."

  3. Frederick Townes
    Member
    Posted 4 years ago #

    I haven't been able to duplicate these issues or I would have made an updated release. Are either of you willing to help me debug?

  4. Frederick Townes
    Member
    Posted 4 years ago #

    Thinking about this again it seems like some files were not updated.

  5. spf13
    Member
    Posted 4 years ago #

    I'd be happy to help debug. I've re-installed it a bunch of times with no success. Disabled, re-enabled. Deleted, Installed.. nothing seems to work.

  6. Frederick Townes
    Member
    Posted 4 years ago #

    When I activate the plugin I get constant emails titled "W3 Total Cache Error Notification" with "241" in the body of the email.

    Fixed in the development version.

    The plugin also hangs my sites until I remove the plugin and the related files.

    Submit a bug submission form from the support tab of the plugin if you like.

  7. spf13
    Member
    Posted 3 years ago #

    After a few hours of debugging I figured out the problem.

    Here is a diff.

    > diff TotalCache.php TotalCache.spf.php
    919c919
    <         add_menu_page('Performance', 'Performance', 'manage_options', 'w3tc_general', '', plugins_url('w3-total-cache/inc/images/logo_small.png'));
    ---
    >         add_menu_page('Performance', 'Settings', 'manage_options', 'w3tc_general', '', plugins_url('w3-total-cache/inc/images/logo_small.png'));

    The problem is that the plugin is registering pages as

    Array
    (
        [0] => toplevel_page_w3tc_general
        [1] => performance_page_w3tc_pgcache
        [2] => performance_page_w3tc_minify
        [3] => performance_page_w3tc_dbcache
        [4] => performance_page_w3tc_objectcache
        [5] => performance_page_w3tc_browsercache
        [6] => performance_page_w3tc_mobile
        [7] => performance_page_w3tc_cdn
        [8] => performance_page_w3tc_faq
        [9] => performance_page_w3tc_support
        [10] => performance_page_w3tc_install
        [11] => performance_page_w3tc_about
    )

    But the plugin has them located at "settings_page..."

    since the page it's looking for doesn't exist in the method 'user_can_access_page', this block fails every time.

    if ( !isset($_registered_pages[$hookname]) )
    			return false;

    Not sure why it's happening and especially why it's not happening to everyone. I'll bet there's a better way of fixing it, but I'm just happy to have something that works.

  8. Frederick Townes
    Member
    Posted 3 years ago #

    Are you sure that you're using a properly installed version? This isn't happening for everyone because this issue doesn't exist elsewhere somehow. I can't duplicate it.

Topic Closed

This topic has been closed to new replies.

About this Topic