-
AuthorPosts
-
April 2, 2020 at 10:02 pm #1200313
Hallo! Yesterday there was an Enfold update and since that moment I have a problem with new pages created with Avia. I received an email to say that there is a tecnical problem with Gutemberg. But I don’t use gutember, I am still using classic editor. What can I do please? I asked siteground, my server, and they said that perhaps enfold it’s not compatible with the last php.
This is the error message:
Uncaught TypeError: Argument 2 passed to Avia_Gutenberg::handler_display_post_states() must be an instance of WP_Post, null given, called in /home/daslebe0/public_html/wp-includes/class-wp-hook.php on line 287 and defined in /home/daslebe0/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:657
Stack trace:
#0 /home/daslebe0/public_html/wp-includes/class-wp-hook.php(287): Avia_Gutenberg->handler_display_post_states(Array, NULL)
#1 /home/daslebe0/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
#2 /home/daslebe0/public_html/wp-admin/includes/template.php(2170): apply_filters(‘display_post_st…’, Array, NULL)
#3 /home/daslebe0/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/daslebe0/public_html/wp-includes/nav-menu.php(749): array_map(‘wp_setup_nav_me…’, Array)
#6 /home/daslebe0/public_html/wp-includes/nav-menu.php(1105): wp_get_nav_menu_items(Object(WP_Term), ArraThank you if you have any idea.
BarbaraApril 3, 2020 at 10:39 am #1200445Hey Barbara,
Thanks for the login details, I get the error message in private when trying to access the login page though. Which version of PHP are you running on the server?
Best regards,
RikardApril 3, 2020 at 10:40 am #1200446Sorry, the update was a Word Press update, but, they say to ask you for a solution. Perhaps an Enfold update? Thank you!
April 3, 2020 at 10:41 am #1200447I have this: Version PHP 7.3.16
April 3, 2020 at 12:50 pm #1200491I tried to have a look in cpanel and error log, but I didn’t find anything. Perhaps it’s a Sucuri problem that blocks you to enter?
April 4, 2020 at 5:10 am #1200744Hi,
Thanks for the update, I can login now and I don’t see any error messages. Did you only get these error messages once? I’m asking since I can’t see anything obviously going wrong on your site on either the front- or back-end. Is there something which is not working? If you should keep on getting the error messages then please try to disable all plugins in order to check for a conflict coming from any of them.
Best regards,
RikardApril 4, 2020 at 7:30 am #1200759Hi Rikard. Yes, the problem ist still there. If you’ll try to make a new page and to save it, you’ll see the error message. I received again an email with description of this:
E_ERROR è stato causato nella linea 657 del file /home/daslebe0/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php. Messaggio di errore: Uncaught TypeError: Argument 2 passed to Avia_Gutenberg::handler_display_post_states() must be an instance of WP_Post, null given, called in /home/daslebe0/public_html/wp-includes/class-wp-hook.php on line 287 and defined in /home/daslebe0/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:657
Stack trace:
#0 /home/daslebe0/public_html/wp-includes/class-wp-hook.php(287): Avia_Gutenberg->handler_display_post_states(Array, NULL)
#1 /home/daslebe0/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
#2 /home/daslebe0/public_html/wp-admin/includes/template.php(2170): apply_filters(‘display_post_st…’, Array, NULL)
#3 /home/daslebe0/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/daslebe0/public_html/wp-includes/nav-menu.php(749): array_map(‘wp_setup_nav_me…’, Array)
#6 /home/daslebe0/public_html/wp-includes/nav-menu.php(1105): wp_get_nav_menu_items(Object(WP_Term), ArraAnd this is what I get when I save a new page::And I send you the error message that I have received when I tried to make a new page:
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/daslebe0/public_html/wp-includes/class-wp-hook.php on line 287 and defined in /home/daslebe0/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:657 Stack trace: #0 /home/daslebe0/public_html/wp-includes/class-wp-hook.php(287): Avia_Gutenberg->handler_display_post_states(Array, NULL) #1 /home/daslebe0/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) #2 /home/daslebe0/public_html/wp-admin/includes/template.php(2170): apply_filters(‘display_post_st…’, Array, NULL) #3 /home/daslebe0/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/daslebe0/public_html/wp-includes/nav-menu.php(749): array_map(‘wp_setup_nav_me…’, Array) #6 /home/daslebe0/public_html/wp-includes/nav-menu.php(1105): wp_get_nav_menu_items(Object(WP_Term), Arra in /home/daslebe0/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 657
April 4, 2020 at 11:09 am #1200776I wrote to wpml assistence and they answered so if it’s useful for you:
Dear Barbara,Bigul from WPML support has added the following message to your support thread:
Traduzione pagine
Hello,
Thank you for the login information and details. I can reproduce the issue on your site and it shows a JavaScript error in the browser console. It requires further debugging, so please allows me to make a duplicator copy of your site using the Duplicator plugin(https://wordpress.org/plugins/duplicator/) for debugging the issue on my local server.
After the successful login FTP is not listing the directories. Please check the attached images for more details.
Please note the following error is related to the Enfold theme. Few of their clients are already reported this issue in their forum. Please check the following URLs for more details.
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/daslebe0/public_html/wp-includes/class-wp-hook.php on line 287https://kriesi.at/support/topic/error-enfold-with-plugin-salon-booking-wordpress-plugin/
April 4, 2020 at 3:45 pm #1200807Wpml assistence wrote me. They made a test on my website. This is the result.
The following fatal error is triggered when we are creating a new page when the Enfold theme is active and all other plugins are deactivated including the WPML ones.
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 C:\xampp\htdocs\dasleben\wp-includes\class-wp-hook.php on line 287 and defined in C:\xampp\htdocs\dasleben\wp-content\themes\enfold\config-gutenberg\class-avia-gutenberg.php:657
Stack trace:
#0 C:\xampp\htdocs\dasleben\wp-includes\class-wp-hook.php(287): Avia_Gutenberg->handler_display_post_states(Array, NULL)
#1 C:\xampp\htdocs\dasleben\wp-includes\plugin.php(206): WP_Hook->apply_filters(Array, Array)
#2 C:\xampp\htdocs\dasleben\wp-admin\includes\template.php(2170): apply_filters(‘display_post_st…’, Array, NULL)
#3 C:\xampp\htdocs\dasleben\wp-includes\nav-menu.php(823): get_post_states(NULL)
#4 [internal function]: wp_setup_nav_menu_item(Object(WP_Post))
#5 C:\xampp\htdocs\dasleben\wp-includes\nav-menu.php(749): array_map(‘wp_setup_nav_me…’, Array)
#6 C:\xampp\htdocs\dasleben\wp-includes\nav-menu.php(1105): wp_get_nav_menu_items(Object(WP_Term), Array)
#7 C:\xampp\h in C:\xampp\htdocs\dasleben\wp-content\themes\enfold\config-gutenberg\class-avia-gutenberg.php on line 657
Therefore it looks a bug in Enfold and it will be great if you can consult about it with the Enfold team. We will wait for your feedback.April 5, 2020 at 6:02 pm #1200982Hi Rikard. Today I tried to make a new page and I am no more able to see it after. Also when I put it in the menu, I am not allowed to open it. Thank you!
April 6, 2020 at 3:41 pm #1201256Hi, Rikard. Sorry that I always disturb, but I really need to solve this problem. Now I am no more allowed to oen the editor’s theme.
April 6, 2020 at 11:33 pm #1201407Hello,
I bought the theme today, and since I installed it, it’s been a problem. When I tried to modify the menus I couldn’t open the page. It directly leads me to a page with these errors. I have disabled all plugins in order to check for a conflict coming from any of them and it doesn´t work in any case. I’ve tried to get in several times and I always get the error message. I need to fix it as soon as possible, please!Notice: Trying to get property ‘post_status’ of non-object in /home/crecerca/public_html/wp-admin/includes/template.php on line 2121
Notice: Trying to get property ‘post_status’ of non-object in /home/crecerca/public_html/wp-admin/includes/template.php on line 2125
Notice: Trying to get property ‘post_status’ of non-object in /home/crecerca/public_html/wp-admin/includes/template.php on line 2131
Notice: Trying to get property ‘post_status’ of non-object in /home/crecerca/public_html/wp-admin/includes/template.php on line 2135
Notice: Trying to get property ‘ID’ of non-object in /home/crecerca/public_html/wp-admin/includes/template.php on line 2139
Notice: Trying to get property ‘post_status’ of non-object in /home/crecerca/public_html/wp-admin/includes/template.php on line 2143
Notice: Trying to get property ‘ID’ of non-object in /home/crecerca/public_html/wp-admin/includes/template.php on line 2157
Notice: Trying to get property ‘ID’ of non-object in /home/crecerca/public_html/wp-content/themes/enfold/includes/class-avia-custom-pages.php on line 703
Notice: Trying to get property ‘ID’ of non-object in /home/crecerca/public_html/wp-content/themes/enfold/includes/class-avia-custom-pages.php on line 710
Notice: Trying to get property ‘ID’ of non-object in /home/crecerca/public_html/wp-content/themes/enfold/includes/class-avia-custom-pages.php on line 717
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/crecerca/public_html/wp-includes/class-wp-hook.php on line 287 and defined in /home/crecerca/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:619 Stack trace: #0 /home/crecerca/public_html/wp-includes/class-wp-hook.php(287): Avia_Gutenberg->handler_display_post_states(Array, NULL) #1 /home/crecerca/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) #2 /home/crecerca/public_html/wp-admin/includes/template.php(2170): apply_filters(‘display_post_st…’, Array, NULL) #3 /home/crecerca/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/crecerca/public_html/wp-includes/nav-menu.php(749): array_map(‘wp_setup_nav_me…’, Array) #6 /home/crecerca/public_html/wp-admin/nav-menus.php(511): wp_get_nav_menu_items(Object(WP_Term), Array) in /home/crecerca/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 619
April 6, 2020 at 11:42 pm #1201408I think it’s the same error. Word Press made an update and since this comes this error message. Perhaps Enfold has to make an update too. But I get no more answer.
April 7, 2020 at 8:31 am #1201508Hallo! May I ask please to answer? It’s also possible to say that it’s necessary to wait for a solution, but not to answer it’s not good. My website doesn’t work properly anymore and I need a solution please. Thank you!
April 7, 2020 at 12:05 pm #1201562Hi Barbara,
Do you know how to open a new thread in this forum??
April 7, 2020 at 12:19 pm #1201566Hi @barbarajermini,
Sorry for the late reply!
Could you please post FTP logins here privately so we can look into it?
@crecercantando You can start new threads under Enfold sub forum – https://kriesi.at/support/forum/enfold#new-post. Please attach WP and FTP logins in private content field as well.Best regards,
YigitApril 7, 2020 at 12:26 pm #1201568Hi,
I rechecked with WP 5.4 and Enfold 4.7.4, with classic and block editor from theme settings.
Cannot reproduce the problem. The only notice I get is a deprecation notice concerning layerslider – but nothing concerning Enfold.
The filter you mention above is a standard WP filter “display_post_states” that renders a WP_Post object as argument 2 – see wp-admin\includes\template.php line 2170.
Please deactivate the caching plugin if you are using one and deactivate all plugins. Then reactivate one by one and check.
Best regards,
GünterApril 7, 2020 at 12:46 pm #1201574I write you also the answer from Max Mega Menu assistence:
I have now logged in and gone to WP Admin -> Appearance -> Customize, but I see a code error from Enfold and the page will not load. I am not sure why, but that is something that maybe enfold can help you with.They all say that it’s a problem with Enfold.
The problem come whe I try to make a new page with classic editor, then Avia Advanced editor and save.
I’ll try to do what you said, but I don’t think I’ll resolve too much.April 7, 2020 at 12:50 pm #1201576Hi Crecercantando!
If you want to open a new thread at all, you have to here: https://kriesi.at/support/forum/enfold/
Whe you want to open it in this forum, you have only to answer. Under the others Threads you are allowed to write your answer.April 7, 2020 at 1:33 pm #1201593No change. I deactivated wp optimize and all plugins, but the error message comes when I want to save the new page.
April 7, 2020 at 5:59 pm #1201664This reply has been marked as private.April 8, 2020 at 3:12 am #1201734I’m also seeing this error on one of my sites.
Here’s the code:
Fatal error: Uncaught Error: Call to undefined function gutenberg_can_edit_post_type() in /home/avatron/webapps/wordpress/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:563 Stack trace: #0 /home/avatron/webapps/wordpress/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(423): Avia_Gutenberg->can_use_block_editor('post', true) #1 /home/avatron/webapps/wordpress/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(458): Avia_Gutenberg->init_force_classic_post_types() #2 /home/avatron/webapps/wordpress/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(533): Avia_Gutenberg->get_force_classic_post_types() #3 /home/avatron/webapps/wordpress/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(1657): Avia_Gutenberg->force_classic_editor('page') #4 /home/avatron/webapps/wordpress/wp-includes/class-wp-hook.php(289): Avia_Gutenberg->handler_wp_use_block_editor_for_post_type(true, 'page') #5 /home/avatron/webapps/wordpress/wp-includes/plugin.php(206): in /home/avatron/webapps/wordpress/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 563 There has been a critical error on your website. Please check your site admin email inbox for instructions.
April 8, 2020 at 4:49 pm #1201952Please, may I ask you to consider that there is a problem? I tried to do what you have suggested, but the poroblem is still there. And I am not the only one as you can see. Thank you!
April 8, 2020 at 7:23 pm #1201988Hi,
@barbarajermini I am not able to connect to your server. Could you please check FTP logins once again?
@crecercantando I am not able to reproduce the issue on your installation. I am able to adjust menu items in Appearance > Menus. Appearance > Customize and creating a new pages does not display the error either. Has the issue solved for you?Cheers!
YigitApril 8, 2020 at 9:07 pm #1202012@Yigit – I’ve got the same issue as @barbarajermini, and provided you login credentials to my WordPress install in my last comment. I’ll put FTP info in the private content for this one.
I’m getting a lot of pressure to get this solved, because I can’t edit anything on my site.- This reply was modified 4 years, 7 months ago by steed. Reason: begging for help
April 8, 2020 at 9:12 pm #1202013Thank you Ygit, sorry I’m not very good with all this. I try again
April 9, 2020 at 9:53 am #1202180Hi,
@steed I tried to reproduce the issue on your installation however I could not. I tried going to Appearance > Customize and tried adding a new page but I am not seeing any error on your site.
@barbarajermini I am still getting “Server said: Login authentication failed” error. Could you please post cPanel logins if you do not mind so we can reach files on your server and then maybe you could change your logins?Best regards,
YigitApril 9, 2020 at 10:04 am #1202186Sorry Ygit, I’ll write them to ask what Should I give you. They changed something and perhaps I don’t know. I’ll write back!
April 9, 2020 at 10:10 am #1202189May I ask you your Ip address? Perhaps it’s blacklisted?
April 9, 2020 at 10:23 am #1202197 -
AuthorPosts
- The topic ‘Error after update’ is closed to new replies.