• Resolved Abhishek

    (@redmiabhishek)


    Hi, After updating the plugin am getting error message:

    Please refer to the Error Details:

    Error Details
    =============
    An error of type E_ERROR was caused in line 211 of the file /var/www/example.com/public/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php. Error message: Uncaught Error: Call to undefined method CAOS::dual_tracking_is_enabled() in /var/www/example.com/public/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php:211
    Stack trace:
    #0 /var/www/example.com/public/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php(52): CAOS_Cron->download()
    #1 /var/www/example.com/public/wp-content/plugins/host-analyticsjs-local/includes/class-caos.php(286): CAOS_Cron->__construct()
    #2 /var/www/example.com/public/wp-content/plugins/host-analyticsjs-local/includes/class-caos.php(342): CAOS->trigger_cron_script()
    #3 /var/www/example.com/public/wp-includes/class-wp-hook.php(307): CAOS->do_update_after_update()
    #4 /var/www/example.com/public/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #5 /var/www/example.com/public/wp-includes/plugin.php(476): WP_Hook->do_action()
    #6 /var/www/example.com/public/wp-admin/includes/class-plugin-upgrader.php(371): do_action()
    #7 /var/www/example.com/public/wp-a
    • This topic was modified 2 years, 2 months ago by Abhishek.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hmmm… Can you verify if the function dual_tracking_is_enabled() exists in the includes/class-caos.php file?

    Thread Starter Abhishek

    (@redmiabhishek)

    Hi,

    Sorry, I have reverted to the previous version via updraftPlus.

    I can only ensure that I am using dual tracking on the site.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Ok, no worries. You’re not the only person to report this. Maybe a manual install of the update from here will fix it for you?

    For some reason, for some people, the modifications to class-caos.php didn’t come thru… But it’s present in the release, so hopefully manually installing the update will fix it!

    I’ve had this issue WHILE updating from v4.4.3 to v4.4.5, but the updates completed successfully, and I see no issues with the plugin.

    I can confirm that includes/class-caos.php contains a static function called dual_tracking_is_enabled().

    I can also confirm that when the plugin settings are saved, files are downloaded successfully, so download() should be working OK interactively.

    Could this be a temporary issue due to using opcode caching?

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Aaah, yes! That could be it! Then the old code is loaded, while a new file is being loaded somewhere else.

    This would explain why I’m unable to reproduce it.

    @redmiabhishek are you using PHP caching like Varnish or Opcode?

    Hi @daanvandenbergh

    I am having the same problem you have pointed out. When upgrading from version 4.4.3 to 4.4.5, WordPress reports a bug with the CHAOS plugin; but the update succeeds (apparently).

    Reviewing my configuration I find that I am using PHP caching with Zend OPcache (php74-php-opcache 7.4.32-1.1.2.cpanel), in case this information is useful to you.

    By downloading ZIP 4.4.4 for manual update, I was able to get around this error; as the manual installation went smoothly and it was possible to cleanly upgrade to version 4.4.5

    In my case, I consider the problem solved, but I’ll report it in case it’s useful to someone.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Thanks a lot!

    I think @galbaras might be on to something here, since you’re also using Opcache. Happy the manual update resolved the issue!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Getting error after updating version to 4.4.4’ is closed to new replies.