BoldGrid / w3-total-cache

GNU General Public License v2.0
152 stars 85 forks source link

Uncaught Error: Undefined constant “W3TC\NONCE_KEY with specific setting #678

Closed mavas84 closed 4 months ago

mavas84 commented 1 year ago

With unchecked the option “don’t cache pages for logged-in users” and checked option “don’t cache pages for the following user roles” and only selected Administrator

the following stack trace and the plugin is the latest version:


Stack trace:

0 /home/u593882499/domains/mydomainhidden.com/public_html/ecommerce/wp-content/plugins/w3-total-cache/PgCache_Environment.php(451): W3TC\PgCache_Environment->rules_core_generate_apache()

1 /home/u593882499/domains/mydomainhidden.com/public_html/ecommerce/wp-content/plugins/w3-total-cache/PgCache_Environment.php(410): W3TC\PgCache_Environment->rules_core_generate()

2 /home/u593882499/domains/mydomainhidden.com/public_html/ecommerce/wp-content/plugins/w3-total-cache/PgCache_Environment.php(31): W3TC\PgCache_Environment->rules_core_add()

3 /home/u593882499/domains/mydomainhidden.com/public_html/ecommerce/wp-content/plugins/w3-total-cache/Root_Environment.php(28): W3TC\PgCache_Environment->fix_on_wpadmin_request()

4 /home/u593882499/domains/mydomainhidden.com/public_html/ecommerce/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php(1017): W3TC\Root_Environment->fix_in_wpadmin()

5 /home/u593882499/domains/mydomainhidden.com/public_html/ecommerce/wp-includes/class-wp-hook.php(308): W3TC\Generic_Plugin_Admin->admin_notices()

6 /home/u593882499/domains/mydomainhidden.com/public_html/ecommerce/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

7 /home/u593882499/domains/mydomainhidden.com/public_html/ecommerce/wp-includes/plugin.php(517): WP_Hook->do_action()

8 /home/u593882499/domains/mydomainhidden.com/public_html/ecommerce/wp-admin/admin-header.php(303): do_action()

9 /home/u593882499/domains/mydomainhidden.com/public_html/ecommerce/wp-admin/admin.php(239): require_once('/home/u59388249…')

10 {main}```

The nonce usage should be removed for this
matusbossak commented 9 months ago

Same issue on my end.

cssjoe commented 4 months ago

I cannot replicate this issue using W3 Total Cache 2.7.3 on WordPress 6.5.5. If this is still an issue, please provide steps to reproduce the error and reopen this issue.

matusbossak commented 4 months ago

I cannot replicate this issue using W3 Total Cache 2.7.3 on WordPress 6.5.5. If this is still an issue, please provide steps to reproduce the error and reopen this issue.

Me neither - can't reproduce the issue now. Could this have been unintentionally fixed in previous updates?