• Resolved laubeauscb

    (@laubeauscb)


    Hi Aaron,

    I have recently got a error from the plugin –

    on the homepage – it started showing :”there has been a critical error on the website” and it seems that the plugin have some php error handling issues. WordPress sent me a email with the error details. when I deactivated the plugin the site went back to normal.

    do you have any fix for this, since the plugin is very important for the website.

    Error Details
    =============
    An error of type E_ERROR was caused in line 29 of the file

    html/wp-content/plugins/404-solution/includes/ErrorHandler.php. Error message: Uncaught Error: Class “ABJ_404_Solution_Logging” not found in html/wp-content/plugins/404-solution/includes/ErrorHandler.php:29
    Stack trace:
    #0 html/wp-content/plugins/404-solution/404-solution.php(61): ABJ_404_Solution_ErrorHandler::NormalErrorHandler()
    #1 html/wp-content/plugins/404-solution/404-solution.php(61): require_once()
    #2 html/wp-content/plugins/404-solution/includes/WordPress_Connector.php(476): abj404_autoloader()
    #3 html/wp-includes/class-wp-hook.php(308): ABJ_404_Solution_WordPress_Connector::addMainSettingsPageLink()

    thrown

    PHP version we are using is – PHP version 8.1.2

    I hope you can help regarding the issue

    • This topic was modified 1 year, 7 months ago by laubeauscb.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Aaron

    (@aaron13100)

    Thanks for your message.

    I would try uninstalling and reinstalling the plugin.

    The error tells me that either the plugin wasn’t installed correctly and there’s a file missing, or it’s not the main issue. If you could paste the entire debug log to pastebin.com, if there is one, then that would be helpful.

    The debug log file can be found at https://www.<<<yourwebsite.com>>>/wp-content/uploads/temp_abj404_solution/abj404_debug.txt

    Please post the contents to pastebin.com and do not paste the contents here as it’s too long for a message and will break the forum. Then you can paste the link created on pastebin.com here… If there’s no debug log then perhaps there are some other error messages in the log file you found…

    thanks

    Thread Starter laubeauscb

    (@laubeauscb)

    Sure, I will try deleting and re installing the plugin and see.

    here’s the requested log file – from 404 solution plugin

    https://pastebin.com/muTmeNQ5

    Plugin Author Aaron

    (@aaron13100)

    Thanks for pasting the log file. Unfortunately I didn’t see any other errors in there. If reinstalling it doesn’t work I’ll have to double check the code to see if I can figure out what the issue might be… Let me know. thanks

    Thread Starter laubeauscb

    (@laubeauscb)

    Thank you so much, it seems working fine now. I will test for sometime and get an update for you. is there any easy way to remove the entries from trash. the trash is taking too much time to load, if there is any other way to remove them, it will be really helpful.

    Plugin Author Aaron

    (@aaron13100)

    Hey. I’m glad it started working. There should be an empty trash button.

    Thread Starter laubeauscb

    (@laubeauscb)

    thanks, but the issue is trash page is not loading..

    Plugin Author Aaron

    (@aaron13100)

    After you try to view the page and wait for a few minutes, are there any new error messages in the debug file that we looked at before?

    Thread Starter laubeauscb

    (@laubeauscb)

    I was testing the plugin for a bit, and it started showing the same error again. and on the logs page of the plugin it’s started to show error like below. if you can check the issue on this particular line, it will be great.

    the WordPress version I am using is 6.2 FYI… is this effecting the plugin to go crazy like this ?

    Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in?/Applications/MAMP/htdocs/scb2023nw/wp-content/plugins/404-solution/includes/View.php?on line?1858

    Plugin Author Aaron

    (@aaron13100)

    Hey. Thanks for letting me know about that. Please try version 2.31.12 to see if the “Deprecated: trim():” message goes away. It is not related to version 6.2 of WordPress.

    regards

    Thread Starter laubeauscb

    (@laubeauscb)

    hi, thanks for the update. but now the error changed..

    “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    please check the error reported by wordpress below :

    An error of type E_ERROR was caused in line 29 of the file /var/www/html/wp-content/plugins/404-solution/includes/ErrorHandler.php. Error message: Uncaught Error: Class “ABJ_404_Solution_Logging” not found in /var/www/html/wp-content/plugins/404-solution/includes/ErrorHandler.php:29

    Plugin Author Aaron

    (@aaron13100)

    Hello again,

    If the error is “class not found,” you should try reinstalling the plugin.

    I see similar error under error_log in cpanel

    [29-May-2023 08:36:57 UTC] PHP Warning: Undefined array key “path” in /home/xxxxxx/wp-content/plugins/404-solution/includes/WordPress_Connector.php on line 423

    • This reply was modified 1 year, 5 months ago by lav007us.
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘PHP Error found on the plugin : “Critical error on page error”’ is closed to new replies.