Warning: Attempt to read property “post_type” on null in

#721821
  • Resolved Anonymous
    Rank Math free

    I show this in my dashboard; Warning: Warning: Attempt to read property “post_type” on null in /home2/netarewa/public_html/wp-content/plugins/seo-by-rank-math-pro/includes/admin/class-admin-helper.php on line 53

    I followed your Fatal Error Happening on Some Installations After 1.0.49 Update, but after I install the plugin, it shows me this;
    The Repair Action Scheduler could not run because the repair database schema is obsolete.

    No actions performed.

    The Repair Action Scheduler plugin has been automatically deactivated.

Viewing 1 replies (of 1 total)
  • Hello, I’m sorry to hear that you’re experiencing this issue with the Repair Action Scheduler plugin. It seems like the repair database schema is obsolete and the plugin couldn’t run as expected.

    In this case, I recommend trying the alternative method provided in our knowledge base article for advanced users. You can install a code snippet to address the issue. Here are the steps:

    1. Head over to the Snippets menu in the left sidebar and click Add New.
      add new snippet

    2. Give that post any name and copy the below code in the Code field:
      add_action( 'init', function() { delete_option( 'schema-ActionScheduler_StoreSchema' ); } );

    3. Select ‘Only run in administration area’ option and click the Save Changes and Activate button.
      rank math code snippets code

    4. Open WordPress Dashboard in a new window.

    5. Then deactivate the recently created snippet from here.
      disable snippet

    6. Finally, activate the Rank Math plugin again.

    Please ensure to clear all the cache, including the server, after following these steps. This should help resolve the issue you’re facing.

    If you have any further questions or need additional assistance, please feel free to reach out.

    Sources:
    Fatal Error Happening on Some Installations After 1.0.49 Update » Rank Math
    How to Fix ‘Action Scheduler: 0 past-due actions found; something may be wrong’ » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Warning: Attempt to read property “post_type” on null in’ is closed to new replies.