-
AuthorPosts
-
April 7, 2020 at 10:05 pm #1201710
I just updated WordPress and Enfold. I have spent a LOT of time trying to troubleshoot this before posting here. Basically my site seems to be working fine except that I am unable to access the “Menus” page in the dashboard. If I change themes to any other theme the menus page comes up just fine. When I use Enfold it gives me an error stating “There has been a critical error on your website. Please check your site admin email inbox for instructions.” I use enfold on many websites. I love it. This is the only site with this issue on my server. No clue what is throwing off JUST this site.
I changed the debug in the config file to true and when I went back to the dashboard and clicked menus it gave me many error codes, but this seems to be where the issue lies. Any help is greatly appreciated!! 3 days into troubleshooting this and I am going a little crazy.
Fatal error: Uncaught TypeError: Argument 2 passed to Avia_Gutenberg::handler_display_post_states() must be an instance of WP_Post, null given, called in /home/kaminerh/public_html/wp-includes/class-wp-hook.php on line 287 and defined in /home/kaminerh/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:657 Stack trace: #0 /home/kaminerh/public_html/wp-includes/class-wp-hook.php(287): Avia_Gutenberg->handler_display_post_states(Array, NULL) #1 /home/kaminerh/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) #2 /home/kaminerh/public_html/wp-admin/includes/template.php(2170): apply_filters(‘display_post_st…’, Array, NULL) #3 /home/kaminerh/public_html/wp-includes/nav-menu.php(823): get_post_states(NULL) #4 [internal function]: wp_setup_nav_menu_item(Object(WP_Post)) #5 /home/kaminerh/public_html/wp-includes/nav-menu.php(749): array_map(‘wp_setup_nav_me…’, Array) #6 /home/kaminerh/public_html/wp-admin/nav-menus.php(511): wp_get_nav_menu_items(Object(WP_Term), Array) in /home/kaminerh/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 657
There has been a critical error on your website. Please check your site admin email inbox for instructions.April 8, 2020 at 6:48 pm #1201978My tech support from my server is claiming it is a coding issue… Odd. Any thoughts?
From my tech support for my server:
Looking into this a bit further, it appears there is a coding issue with the Theme. With that being said, the author the Theme will need to be contacted in regards to this error generating in the logs while accessing the menus section:
[08-Apr-2020 02:15:10 UTC] PHP Fatal error: Uncaught TypeError: Argument 2 passed to Avia_Gutenberg::handler_display_post_states() must be an instance of WP_Post, null given, called in /home/kaminerh/public_html/wp-includes/class-wp-hook.php on line 287 and defined in /home/kaminerh/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:657
I’ve tested a few different PHP versions but it appears the WordPress version itself may be the problem and conflicting with the Theme. If needed we can roll the site back to the previous WordPress version for now, however you will ultimately need to reach out to the Theme author to see if an update/patch is available.
Let me know how you’d like to proceed, I will be here to help!
- This reply was modified 4 years, 8 months ago by pecheney.
April 9, 2020 at 5:06 am #1202107Hi pecheney,
I can’t reproduce this problem on my local installation, so it’s likely something specific to your site which is causing the problem. Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardApril 30, 2020 at 7:33 pm #1208616Rikard! THANK YOU for your reply. I missed this so please pardon my slow reply. I am adding the info to the private section of this message per your request. It is odd. I can view Appearances > Menus page in dashboard when I am using any theme except Enfold. THANK YOU for any light you can shed on this. P
May 1, 2020 at 4:43 pm #1208865Hi,
This seems to be a plugin using the standard WP filter “display_post_states” incorrectly.
I added a fix for that in the next version.
I tried to add the fix to your file using the standard WP Theme editor but it did not work due to server restrictions.
Please update enfold\config-gutenberg\class-avia-gutenberg.php with
If you need help please provide ftp credentials and we can do it for you.
Do not forget to make a backup of the original file for a fallback and clear server and browser cache.
Best regards,
GünterMay 1, 2020 at 4:52 pm #1208869This reply has been marked as private.May 2, 2020 at 7:19 pm #1209134Hi,
Thank you for the FTP access, I updated the file and now the admin menu page will open. Please clear your browser cache and check.Best regards,
MikeMay 2, 2020 at 8:04 pm #1209141Absolutely amazing. THANK YOU. I spent a month looking for the fix. THANK YOU so much!!! Incredible support!!
May 2, 2020 at 10:53 pm #1209161Hi,
We are all glad to help, unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeJune 24, 2020 at 10:33 am #1225105Hmmm we also have the strange error after the updates, the Please update enfold\config-gutenberg\class-avia-gutenberg.php does not work…
any ideas how to fix this?
June 27, 2020 at 10:35 pm #1226143Hi,
I’m not seeing the same error on your sites, as I recall this error was showing above the body of the page, is it showing in the backend? The above error was created by a plugin using the filter “display_post_states” incorrectly, have you tried disabling your plugins to identify the culprit?
Since the above fix didn’t work for you, perhaps you are experiencing a different issue, we will need to investigate but since this is not your thread posting your login here will not be private and you will not see anything we write in the Private Content area.
Please open a new thread with details about the error and an admin login.Best regards,
Mike -
AuthorPosts
- The topic ‘Odd Menu Error After Update’ is closed to new replies.