• Resolved ddelicious

    (@ddelicious)


    I experienced a fatal error when updating to 4.4.2. Here are the error details, from an automated wordpress email. I removed the very beginning of the file path.

    An error of type E_ERROR was caused in line 104 of the file /public_html/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php.

    Error message: Uncaught Error: Call to undefined method CAOS::get_current_file_key() in /public_html/wp-content/plugins/host-analyticsjs-local/includes/class-cron.php:104

    I was still able to update to the latest version and I’m not experiencing any issues on the site, but wanted to notify the plugin creators.

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

    (@daanvandenbergh)

    Hi!

    Yeah, I noticed that error, too after installing the update on my site. It’s really weird, because I KNOW the function exists. I mean, I put it there my self. ??

    I’ve ran multiple tests today, but I can’t reproduce the issue. Every time I fake an update, the method exists.

    Thankfully, this error doesn’t interfere with your website’s functioning.

    I’ll keep looking and when I find it, I’ll fix it!

    Jimmy Thai

    (@docteurfitness)

    Hello !

    Same error with my website ??

    this error doesn’t interfere with me website’s functioning.

    thanks for your help.

    How can I help with debugging?
    Fatal error: Uncaught Error: Call to undefined method CAOS::get_current_file_key()…
    PHP-version 8.0.21

    No problem on onother site:
    `Howdy! Some plugins have automatically updated to their latest versions on your site at https://beta.danskyrka.eu. No further action is needed on your part.
    These plugins are now up to date:
    – CAOS (from version 4.4.1 to 4.4.2)
    PHP Version : 8.0.21

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    It’s difficult to debug, since it only happens directly after updating the plugin. So, it’s not like I can ask you to try and change some code, because the code’ll be removed directly after the update :’-D

    I’m working on it, but haven’t found a solution yet.

    Same issue on several sites here.

    A simple windows search on ‘get_current_file_key’ in the folder wp-content\plugins\host-analyticsjs-local\includes gives no results..? It looks like the function is non-existent, or a file containing the function is missing or corrupted.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Wait? The function is not there? It should be in the class-caos.php file in the includes folder on line 138.

    If you’re certain it’s missing after the update then maybe something went wrong when packing the commit or something.

    Looking forward to your findings!

    @daanvandenbergh ,

    I checked, the function is missing in the file class-caos.php, and at line 138 of that file is the start of the function set_file_aliases().

    Yes, probably a discrepancy in commit files and local files. Good luck restoring.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi guys,

    Sorry for this. I setup a new local environment with 4.4.1 installed, and went through the code execution step by step.

    I noticed that apparently WordPress allows CAOS’ code to be executed, when the update hasn’t finished yet.

    I just released v4.4.3 in which I explicitly check if the method exists, before executing it.

    Thanks for your patience.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Update to 4.4.2 caused fatal error’ is closed to new replies.