• Resolved Marco

    (@chefspuntozero)


    While updating CAOS to 4.6.0 I had WordPress crashing and I was forced to restore it via Recovery Mode.

    I then found out that version 4.6.0 is generating this server error:

    .886117 [NOTICE] [642190] [T0] [195.15.204.12:55296-H3:EC71D2-60#APVH_mysite.com:443] [STDERR] PHP Fatal error: Uncaught Error: Call to undefined method CAOS::get() in httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php:175\nStack trace:\n#0 httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php(38): CAOS_Cron->build_download_queue()\n#1 httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-caos.php(293): CAOS_Cron->__construct()\n#2 httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-caos.php(349): CAOS->trigger_cron_script()\n#3 httpdocs/wp-includes/class-wp-hook.php(308): CAOS->do_update_after_update()\n#4 httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#5 httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#6 httpdocs/wp-admin/includes/class-plugin-upgrader.php(371): do_action()\n#7 httpdocs/wp-admin/update.php(51): Plugin_Upgrader->bulk_upgrade()\n#8 {main}\n thrown in httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php on line 175\n

    Looks like by rolling back to 4.5.0 this doesn’t happen any more.

    Please have a look into it.
    Thank you!

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    Thanks for reporting this. You’re not the only one complaining about this, but I think I finally found what was causing it.

    I’m releasing 4.6.1 in a minute, can you give it a shot? That should get rid of the error.

    Thanks,

    Daan

    Thread Starter Marco

    (@chefspuntozero)

    Hello Daan,
    Thanks for your prompt reply and support.

    Just installed the update, but it looks like it’s still there for me:

    .450682 [NOTICE] [1099612] [T0] [85.121.148.104:59508-H3:61D842-624#APVH_mysite.com:443] [STDERR] PHP Fatal error: Uncaught Error: Call to undefined method CAOS::get() in httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php:175\nStack trace:\n#0 httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php(38): CAOS_Cron->build_download_queue()\n#1 httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-caos.php(293): CAOS_Cron->__construct()\n#2 httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-caos.php(349): CAOS->trigger_cron_script()\n#3 httpdocs/wp-includes/class-wp-hook.php(308): CAOS->do_update_after_update()\n#4 httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#5 httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#6 httpdocs/wp-admin/includes/class-plugin-upgrader.php(371): do_action()\n#7 httpdocs/wp-admin/update.php(51): Plugin_Upgrader->bulk_upgrade()\n#8 {main}\n thrown in httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php on line 175\n

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Are you sure you were trying to install 4.6.1? Because the do_update_after_update function that it’s triggering no longer exists in 4.6.1.

    Thread Starter Marco

    (@chefspuntozero)

    Yep, I was on 4.5.0 and WordPress found the new 4.6.1 just before reading your reply, and after that I saw that 4.6.1 was installed.

    I could try to install 4.6.0 first, from the Rollback plugin, if you think it might solve the issue.

    Just let me know ??

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Neh, that won’t make a difference.

    Are you using any type of PHP caching, like Cloudflare APO, Opcache or Varnish? If so, give that a flush, and then try the update again.

    Also having the same issue. PHP 7.4. Updating from 4.5.0 to 4.6.1. On WordPress version 6.2.2.

    An error of type E_ERROR was caused in line 165 of the file /home/mysite/public_html/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php. Error message: Uncaught Error: Call to undefined method CAOS::get() in /home/mysite/public_html/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php:165

    Also having the same issue. PHP 8.0. Updating from 4.5.0 to 4.6.1. On WordPress version 6.2.2.

    Configuration lost Tracking ID.

    Tnk.

    Davide

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    @davidefiorio and @katmacau are you using Opcache or another type of PHP cache? If so, try flushing that before running the update.

    @katmacau Besides the general error, do you have the stack trace?

    Thread Starter Marco

    (@chefspuntozero)

    @daanvandenbergh I’m on LiteSpeed server.

    The LiteSpeed plug in flushes the cache every time I run an update from the backend, but I also did a manual flush just before updating, just now after reading your reply, but the error is still there.

    I’m doing it from the “Updates” section, not from the “Plugins” page, if this can be of any help.

    Anyway, if you need to investigate further, I can clone my main site for you and give you access to it for debugging purpose if you wish. In case, just let me know I to get in touch. ??

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    @chefspuntozero Can you share the stack trace again? I want to make sure it’s exactly the same error.

    In 4.6.1 I deleted the code causing the error in 4.6.0. So, if it’s exactly the same stack trace, then that’s really weird. :-/

    Thread Starter Marco

    (@chefspuntozero)

    Sure!

    I’ll share all errors I see in the server log since the update until when I rolled back to 4.5.0.
    Except for the first one (15:15:34) which is the update process, all others should be from visitors (not sure if it’s relevant or not).

    Of course, both user’s IP addresses and site domain are fictitious, not the real one.

    Hope it helps.

    Here you are:

    2023-06-22 15:15:34
    .825074 [NOTICE] [3919140] [T0] [75.101.87.104:56229-H3:E937F5-200#APVH_mysite.com:443] [STDERR] PHP Fatal error: Uncaught Error: Call to undefined method CAOS::get() in httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php:175\nStack trace:\n#0 httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php(38): CAOS_Cron->build_download_queue()\n#1 httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-caos.php(293): CAOS_Cron->__construct()\n#2 httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-caos.php(349): CAOS->trigger_cron_script()\n#3 httpdocs/wp-includes/class-wp-hook.php(308): CAOS->do_update_after_update()\n#4 httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#5 httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#6 httpdocs/wp-admin/includes/class-plugin-upgrader.php(371): do_action()\n#7 httpdocs/wp-admin/update.php(51): Plugin_Upgrader->bulk_upgrade()\n#8 {main}\n thrown in httpdocs/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php on line 175\n

    2023-06-22 15:31:27
    .212487 [NOTICE] [4131153] [T0] [81.162.153.27:33722:HTTP2-1#APVH_mysite.com:443] [STDERR] PHP Fatal error: Uncaught Error: Undefined constant "CAOS_OPT_CACHE_DIR" in httpdocs/wp-content/plugins/complianz-gdpr-premium/integrations/plugins/caos-host-analytics-local.php:13\nStack trace:\n#0 httpdocs/wp-includes/class-wp-hook.php(308): cmplz_caos_script()\n#1 httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#2 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(214): apply_filters()\n#3 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(470): cmplz_cookie_blocker->blocked_scripts()\n#4 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(393): cmplz_cookie_blocker->replace_tags()\n#5 [internal function]: cmplz_cookie_blocker->filter_buffer()\n#6 httpdocs/wp-includes/functions.php(5309): ob_end_flush()\n#7 httpdocs/wp-includes/class-wp-hook.php(308): wp_ob_end_flush_all()\n#8 httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#9 httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#10 httpdocs/wp-includes/load.php(1144): do_action()\n#11 [internal function]: shutdown_action_hook()\n#12 {main}\n thrown in httpdocs/wp-content/plugins/complianz-gdpr-premium/integrations/plugins/caos-host-analytics-local.php on line 13\n

    2023-06-22 15:31:30
    841952 [NOTICE] [4131152] [T0] [91.162.53.27:44218-H3:EF8F971B94061BF0-76#APVH_mysite.com:443] [STDERR] PHP Fatal error: Uncaught Error: Undefined constant "CAOS_OPT_CACHE_DIR" in httpdocs/wp-content/plugins/complianz-gdpr-premium/integrations/plugins/caos-host-analytics-local.php:13\nStack trace:\n#0 httpdocs/wp-includes/class-wp-hook.php(308): cmplz_caos_script()\n#1 httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#2 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(214): apply_filters()\n#3 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(470): cmplz_cookie_blocker->blocked_scripts()\n#4 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(393): cmplz_cookie_blocker->replace_tags()\n#5 [internal function]: cmplz_cookie_blocker->filter_buffer()\n#6 httpdocs/wp-includes/functions.php(5309): ob_end_flush()\n#7 httpdocs/wp-includes/class-wp-hook.php(308): wp_ob_end_flush_all()\n#8 httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#9 httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#10 httpdocs/wp-includes/load.php(1144): do_action()\n#11 [internal function]: shutdown_action_hook()\n#12 {main}\n thrown in httpdocs/wp-content/plugins/complianz-gdpr-premium/integrations/plugins/caos-host-analytics-local.php on line 13\n

    2023-06-22 15:31:49
    .786378 [NOTICE] [4131150] [T0] [75.186.45.119:49567:HTTP2-1#APVH_mysite.com:443] [STDERR] PHP Fatal error: Uncaught Error: Undefined constant "CAOS_OPT_CACHE_DIR" in httpdocs/wp-content/plugins/complianz-gdpr-premium/integrations/plugins/caos-host-analytics-local.php:13\nStack trace:\n#0 httpdocs/wp-includes/class-wp-hook.php(308): cmplz_caos_script()\n#1 httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#2 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(214): apply_filters()\n#3 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(470): cmplz_cookie_blocker->blocked_scripts()\n#4 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(393): cmplz_cookie_blocker->replace_tags()\n#5 [internal function]: cmplz_cookie_blocker->filter_buffer()\n#6 httpdocs/wp-includes/functions.php(5309): ob_end_flush()\n#7 httpdocs/wp-includes/class-wp-hook.php(308): wp_ob_end_flush_all()\n#8 httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#9 httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#10 httpdocs/wp-includes/load.php(1144): do_action()\n#11 [internal function]: shutdown_action_hook()\n#12 {main}\n thrown in httpdocs/wp-content/plugins/complianz-gdpr-premium/integrations/plugins/caos-host-analytics-local.php on line 13\n

    2023-06-22 15:34:04
    .791967 [NOTICE] [4131156] [T0] [82.161.48.202:38416:HTTP2-1#APVH_mysite.com:443] [STDERR] PHP Fatal error: Uncaught Error: Undefined constant "CAOS_OPT_CACHE_DIR" in httpdocs/wp-content/plugins/complianz-gdpr-premium/integrations/plugins/caos-host-analytics-local.php:13\nStack trace:\n#0 httpdocs/wp-includes/class-wp-hook.php(308): cmplz_caos_script()\n#1 httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#2 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(214): apply_filters()\n#3 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(470): cmplz_cookie_blocker->blocked_scripts()\n#4 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(393): cmplz_cookie_blocker->replace_tags()\n#5 [internal function]: cmplz_cookie_blocker->filter_buffer()\n#6 httpdocs/wp-includes/functions.php(5309): ob_end_flush()\n#7 httpdocs/wp-includes/class-wp-hook.php(308): wp_ob_end_flush_all()\n#8 httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#9 httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#10 httpdocs/wp-includes/load.php(1144): do_action()\n#11 [internal function]: shutdown_action_hook()\n#12 {main}\n thrown in httpdocs/wp-content/plugins/complianz-gdpr-premium/integrations/plugins/caos-host-analytics-local.php on line 13\n

    2023-06-22 15:34:48
    .221646 [NOTICE] [4131150] [T0] [154.136.48.165:59207:HTTP2-1#APVH_mysite.com:443] [STDERR] PHP Fatal error: Uncaught Error: Undefined constant "CAOS_OPT_CACHE_DIR" in httpdocs/wp-content/plugins/complianz-gdpr-premium/integrations/plugins/caos-host-analytics-local.php:13\nStack trace:\n#0 httpdocs/wp-includes/class-wp-hook.php(308): cmplz_caos_script()\n#1 httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#2 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(214): apply_filters()\n#3 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(470): cmplz_cookie_blocker->blocked_scripts()\n#4 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(393): cmplz_cookie_blocker->replace_tags()\n#5 [internal function]: cmplz_cookie_blocker->filter_buffer()\n#6 httpdocs/wp-includes/functions.php(5309): ob_end_flush()\n#7 httpdocs/wp-includes/class-wp-hook.php(308): wp_ob_end_flush_all()\n#8 httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#9 httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#10 httpdocs/wp-includes/load.php(1144): do_action()\n#11 [internal function]: shutdown_action_hook()\n#12 {main}\n thrown in httpdocs/wp-content/plugins/complianz-gdpr-premium/integrations/plugins/caos-host-analytics-local.php on line 13\n

    2023-06-22 15:34:51
    .702826 [NOTICE] [4131150] [T0] [95.106.24.23:39469:HTTP2-1#APVH_mysite.com:443] [STDERR] PHP Fatal error: Uncaught Error: Undefined constant "CAOS_OPT_CACHE_DIR" in httpdocs/wp-content/plugins/complianz-gdpr-premium/integrations/plugins/caos-host-analytics-local.php:13\nStack trace:\n#0 httpdocs/wp-includes/class-wp-hook.php(308): cmplz_caos_script()\n#1 httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#2 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(214): apply_filters()\n#3 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(470): cmplz_cookie_blocker->blocked_scripts()\n#4 httpdocs/wp-content/plugins/complianz-gdpr-premium/class-cookie-blocker.php(393): cmplz_cookie_blocker->replace_tags()\n#5 [internal function]: cmplz_cookie_blocker->filter_buffer()\n#6 httpdocs/wp-includes/functions.php(5309): ob_end_flush()\n#7 httpdocs/wp-includes/class-wp-hook.php(308): wp_ob_end_flush_all()\n#8 httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#9 httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#10 httpdocs/wp-includes/load.php(1144): do_action()\n#11 [internal function]: shutdown_action_hook()\n#12 {main}\n thrown in httpdocs/wp-content/plugins/complianz-gdpr-premium/integrations/plugins/caos-host-analytics-local.php on line 13\n

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Thanks!

    So, the first one seems to execute the non-existent code, which is really weird.

    And all the other ones are related to a CAOS compatibility fix in Complianz. So that’s out of my hands (@rogierlankhorst, you might want to look into that :-))

    I guess I’ll setup a local environment on which I’ll try and update CAOS from 4.5.0 to 4.6.1 and see if I can replicate the error. This is a mystery to me.

    Hopefully I’ll have time tomorrow. I’ll get back to you.

    Thread Starter Marco

    (@chefspuntozero)

    Alright, thanks Daan.

    Take your time and again let me know if you need me to clone my site for debugging.

    Cheers!

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    If I can’t replicate it locally we might have to get to that, but hopefully I can, so I can debug it and get this one sorted properly.

    @daanvandenbergh @chefspuntozero @davidefiorio @katmacau

    Rogier from Complianz here. Regarding the Caos integration in Complianz:

    It looks like the CAOS_OPT_CACHE_DIR constant was dropped in this version, which is used in Complianz to fill the block array. My bad: When creating the integration I didn’t add a check if the constant exists, so removing it in Caos caused this error.

    I have created a branch which replaces the constant with a hardcoded string.
    https://github.com/Really-Simple-Plugins/complianz-gdpr/tree/fix-caos-integration

    It will get added to our test queue, and included in the next release.

    Alternatively, you can add this to your wp-config.php:

    define('CAOS_OPT_CACHE_DIR', '');

    Which will prevent the error from happening until the next fix in Complianz is released.

    Let me know if this resolves your issue! For further help and questions regarding the Complianz integration it might be best to start a thread on the Complianz forum.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Update 4.6.0 causes fatal server error’ is closed to new replies.