Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1470055

    When I try to edit my homepage https://wta.nl/ I get the message “There has been a critical error on this website. Please check your site admin email inbox for instructions.” For some reason I don’t get the e-mail, although testing shows that WordPress does send an e-mail to my address, but that’s not my question.

    The weird thing is that I only get the error message when trying to edit my homepage https://wta.nl/ . All other pages can be edited in the Enfold editor without problem. For example:

    https://wta.nl/portfolio/
    https://wta.nl/tekstschrijver-eindhoven/
    https://wta.nl/copywriter-eindhoven/

    Three things I’ve tried:

    1) I have deactivated all plugins (only have a few) but still CAN’T edit the homepage.
    3) I’ve duplicated the homepage, and then I CAN edit the duplicate, but not the original page.
    3) I’ve changed the theme into the default WordPress theme, and then I CAN edit the page.

    It’s a weird problem. Hope you can help me. I’ve added my WP login in private window.

    #1470076

    Hey paulw185,

    Thank you for the inquiry.

    3) I’ve duplicated the homepage, and then I CAN edit the duplicate, but not the original page.

    Did you embed any custom scripts or shortcodes on the home page? If the duplicate is working, try setting this one as the home page and then remove the old one

    Best regards,
    Ismael

    #1470375

    Hey Ismael. Sorry for my late reply. But I found out that the problem might have to do with the Rankmath plugin, although I’m not sure. The following happened:

    I’ve duplicated the homepage, like you said. After that I was able to edit the duplicate, but still not the original homepage. I then changed the WordPress title ‘Home’ of my original homepage into ‘Home2’ and changed the slug into ‘home2’. After that I changed the title of the duplicate homepage ‘Home (copy)’ into ‘Home’ and changed the slug to ‘home’ and I published the page.

    First I got a notification in WordPress backend from Rankmath that a slug was changed and that I could set a new redirection. I deleted my original homepage and deleted the redirection, associated with that old homepage, in Rankmath. It didn’t go smooth. I can’t recall exactly, but the notification kept coming, although I clicked it away. After that I checked the title and slug from the new homepage again and everything seemed fine.

    I now CAN edit the new homepage, but when viewing my homepage in a browser I get a critical error: “There has been a critical error on this website.” The only solution is disabling Rankmath, then the homepage works fine again. I only have a few plugins. I have deactivated all and then reactivated each one individually. Only Rankmath gave this critical error.

    I don’t understand what went wrong. I’ve used Rankmath (free) without problems for two months, but now it suddenly causes a critical error. Somehow I think I messed up with changing slugs or redirections, but I don’t know how. But there’s also the weird problem that started it all: not being able to edit the original homepage, but being able to edit the duplicate.

    Because the problem now seems to be related to Rankmath, I have contacted their Support. So I sent them the error log and I’m waiting for their reply. I will come back to you when I have more answers. Could you keep this topic open for now please?

    #1470385

    Hi,

    Thank you for the inquiry.

    So I sent them the error log and I’m waiting for their reply.

    What does the error log show? Please temporarily disable the plugin so you can work on the pages, and post the error using Pastebin so we can review it on our end.

    Best regards,
    Ismael

    #1470404

    Hi Ismael. The error log only has a few entries:

    [31-Oct-2024 21:27:32 UTC] Cron reschedule event error for hook: action_scheduler_run_queue, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"every_minute","args":["WP Cron"],"interval":60}
    [31-Oct-2024 22:01:39 UTC] Cron reschedule event error for hook: action_scheduler_run_queue, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"every_minute","args":["WP Cron"],"interval":60}
    [01-Nov-2024 03:53:03 UTC] Automatic updates starting...
    [01-Nov-2024 03:53:04 UTC] Automatic updates complete.
    #1470501

    Hi,

    Thanks for the update. The log that you posted doesn’t seem to contain anything interesting unfortunately, are you sure that this is an error log? I’m not sure if you got help from Rankmath or not, but we would need to see the actual error log in order to help you out further.

    Best regards,
    Rikard

    #1470502

    Hi Rikard, thanks for your reply.

    It actually was the error log: the file ‘debug.log’ in wp-content folder. That’s the file you mean, right? I only set up debugging in WordPress after the reply from Rankmath, so that was the reason that the log only contained one line. I don’t know how to upload the debug.log file here, but it still hasn’t many entries. I’ll paste them here:

    [31-Oct-2024 21:27:32 UTC] Cron reschedule event error for hook: action_scheduler_run_queue, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"every_minute","args":["WP Cron"],"interval":60}
    [31-Oct-2024 22:01:39 UTC] Cron reschedule event error for hook: action_scheduler_run_queue, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"every_minute","args":["WP Cron"],"interval":60}
    [01-Nov-2024 03:53:03 UTC] Automatic updates starting...
    [01-Nov-2024 03:53:04 UTC] Automatic updates complete.
    [01-Nov-2024 15:34:42 UTC] Automatic updates starting...
    [01-Nov-2024 15:34:43 UTC] Automatic updates complete.
    [02-Nov-2024 03:41:20 UTC] Automatic updates starting...
    [02-Nov-2024 03:41:21 UTC] Automatic updates complete.
    [02-Nov-2024 08:20:28 UTC] Cron reschedule event error for hook: action_scheduler_run_queue, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"every_minute","args":["WP Cron"],"interval":60}
    [02-Nov-2024 08:39:38 UTC] Cron reschedule event error for hook: action_scheduler_run_queue, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"every_minute","args":["WP Cron"],"interval":60}
    [02-Nov-2024 15:37:22 UTC] Automatic updates starting...
    [02-Nov-2024 15:37:23 UTC] Automatic updates complete.
    [03-Nov-2024 03:38:07 UTC] Automatic updates starting...
    [03-Nov-2024 03:38:07 UTC] Automatic updates complete.

    In the meantime Rankmath replied to my problem and they solved it. Their reply:

    The issue is caused by a corrupted schema on your homepage. We have gone ahead and removed it and added a new Article schema with the default settings. Perhaps the former schema article schema on the homepage was corrupted during the duplication process. We removed that schema and created a new one. Regarding the debug log error with action_scheduler_run_queue, it’s likely unrelated to the schema issue. However, if you see this error persist, we recommend checking with your hosting provider as it could be linked to WordPress scheduling tasks.

    Now my homepage works flawlessly again. But in the meantime I realised something. I built my new website with the Enfold theme a few months ago. I can remember that I had this original issue before, the issue I mention in my opening post here (not being able to edit homepage and being forced to duplicate the homepage). As I think of it, I don’t think I was even using Rankmath at that time. The issue was that I suddenly couldn’t open my homepage in the backend editor anymore. All other pages I still was able to edit. The solution back then was to duplicate the homepage. That went without problems. But when the issue came up again a few days ago, I tried the same solution: duplicating the homepage. But this time I used Rankmath and it all went wrong. Perhaps it was my own mistake, because after duplicating I messed around with the slugs of the original home page and the duplicate. I may have broken something. Or maybe Rankmath has a problem with duplicating a homepage, I don’t know.

    Anyway, thanks to the Rankmath support everything is well again. But my original problem, that started it all (not being able to edit homepage and being forced to duplicate the homepage) still worries me. But since everything is ok now, I can’t deal with that.

    Maybe you have an idea what the cause of the original problem was? Maybe an insight if the above mentioned debug log error with action_scheduler_run_queue is related?

    #1470541

    Hi,

    Thank you for the info.

    Maybe you have an idea what the cause of the original problem was? Maybe an insight if the above mentioned debug log error with action_scheduler_run_queue is related?

    Glad to know that the issue has been resolved. Unfortunately, we haven’t encountered this same issue before, so we’re not sure what could have caused it, and it might be unique to your installation. Please let us know if the issue occurs again so we can check it.

    Best regards,
    Ismael

    #1470556

    Thank you Ismael. This topic can be closed for now.

    #1470569

    Hi,

    Thanks for the update, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘“critical error on website” only on homepage’ is closed to new replies.