• Resolved monkeyleo13

    (@monkeyleo13)


    After we upgraded W3 Total plugin to 2.3.0 and we got error if we go to performance panel or plugin page:

    PHP Warning: Undefined variable $rewrite_rules in C:\inetpub\wwwroot\wpsite\wp-content\plugins\w3-total-cache\BrowserCache_Environment.php on line 97
    
    PHP Warning: foreach() argument must be of type array|object, null given in C:\inetpub\wwwroot\wpsite\wp-content\plugins\w3-total-cache\BrowserCache_Environment.php on line 160

    We’re using PHP 8.1.16, running under IIS server.

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

    (@vmarko)

    Hello @monkeyleo13

    Thank you for bringing this to our attention.
    The dev team is on top of this and we’ll provide a fix as soon as it’s done.

    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @monkeyleo13

    Thank you for your patience.
    We have a fix ready for this so can you please check and make these changes and let me know if this helps?

    Thanks!

    Thread Starter monkeyleo13

    (@monkeyleo13)

    Works perfect, thank you!

    davey1975

    (@davey1975)

    actually i received a fatal error after that fix.:

    ?Fatal error: Uncaught Error: syntax error, unexpected variable “$mime_types”, expecting “function” or “const”
    in?C:\websites\mysite.com\wp-content\plugins\w3-total-cache\BrowserCache_Environment.php?on line?70

    Call stack:

    1. w3tc_class_autoload()
      wp-content/plugins/w3-total-cache/Root_Environment.php:172
    2. W3TC\Root_Environment::get_handlers()
      wp-content/plugins/w3-total-cache/Root_Environment.php:26
    3. W3TC\Root_Environment::fix_in_wpadmin()
      wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php:1017
    4. W3TC\Generic_Plugin_Admin::admin_notices()
      wp-includes/class-wp-hook.php:308
    5. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:332
    6. WP_Hook::do_action()
      wp-includes/plugin.php:517
    7. do_action()
      wp-admin/admin-header.php:303
    8. require_once()
      wp-admin/plugins.php:605
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP error after upgraded 2.3.0’ is closed to new replies.