-
AuthorPosts
-
January 10, 2019 at 4:26 pm #1052372
Hi there,
This morning I installed WordPress 5.0.3. and Enfold and later ‘Salon Booking WordPress Plugin’.
An error occurred on the tab pages (overview) and then in the title-section. Just one page was visible and all others were not and also settings above was not possible.
Fatal error: Uncaught TypeError: Argument 1 passed to Avia_Gutenberg::handler_display_post_states() must be of the type array, null given, called in /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-includes/class-wp-hook.php on line 286 and defined in /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:611 Stack trace: #0 /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-includes/class-wp-hook.php(286): Avia_Gutenberg->handler_display_post_states(NULL, Object(WP_Post)) #1 /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-includes/plugin.php(203): WP_Hook->apply_filters(NULL, Array) #2 /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-admin/includes/template.php(1933): apply_filters(‘display_post_st…’, Array, Object(WP_Post)) #3 /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-admin/includes/class-wp-posts-list-table.php(943): _post_states(Object(WP_Post)) #4 /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-admin/includes/class-w in /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 611
I tested Salon Booking WordPress Plugin like described in https://www.salonbookingsystem.com/how-to-debug-salon-booking-plugin/
It works with the standard theme Twenty Nineteen but not with Kriesi Enfold.Can you help us?
I also sent this text to WPChef (producer of ‘Salon Booking WordPress Plugin’)
January 10, 2019 at 6:03 pm #1052403Dimitri from de plugin replied:
Hi,
the errors you reported are not related to our plugin…
on this website: https://prova.salonbooking.it/
we are using the Enfold theme..Kind regards
Dimitri
—
Salon Booking
Wordpress PluginDimitri Grassi
- This reply was modified 5 years, 11 months ago by Maureen van Goethem.
January 12, 2019 at 3:58 pm #1053140Hi,
If you disable child theme and run on the main Enfold, can you please let us know if issue is still there?
Best regards,
BasilisFebruary 5, 2019 at 2:56 pm #1063195Hi, I have exactly the same error…
I have disable child theme and run on the main Enfold, but nothing change !!!
Do you have some news about this ?
thanksFebruary 11, 2019 at 5:53 am #1065288Hi,
Thank you for using Enfold
@Maureen van Goethem: Have you tried to disable the block or the Gutenberg editor? You can do that in the Enfold > Theme Options. In the “Select Your Editor” settings, select “WP Classic Editor”. That option is available on version 4.5.3, so make sure that the site is using the latest version of the theme. Or you can also install the “Classic Editor” plugin.
on this website: https://prova.salonbooking.it/
we are using the Enfold theme..The site is not using the Enfold theme. Unfortunately, we don’t or we can’t provide full support for third party plugins as stated on our support policy. Please keep in touch with the plugin authors.
Best regards,
IsmaelFebruary 11, 2019 at 9:38 am #1065355Hi
I already had disalbe the Gutenberg editor. And now I don’t know where the problem is with Enfold or with the Salonbooking-plugin. This morning all my created pages where gone and I saw again this:
Fatal error: Uncaught TypeError: Argument 1 passed to Avia_Gutenberg::handler_display_post_states() must be of the type array, null given, called in /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-includes/class-wp-hook.php on line 286 and defined in /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:611 Stack trace: #0 /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-includes/class-wp-hook.php(286): Avia_Gutenberg->handler_display_post_states(NULL, Object(WP_Post)) #1 /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-includes/plugin.php(203): WP_Hook->apply_filters(NULL, Array) #2 /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-admin/includes/template.php(1933): apply_filters(‘display_post_st…’, Array, Object(WP_Post)) #3 /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-admin/includes/class-wp-posts-list-table.php(943): _post_states(Object(WP_Post)) #4 /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-admin/includes/class-w in /var/www/vhosts/hondentrimsalon-bodine.nl/httpdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 611February 11, 2019 at 5:30 pm #1065517@Maureen van Goethem and @ismael: hi, i’ have exactly the same bug… since i have update my WP, Enfold and Salon.
To find your created pages, you need to change your theme like Twenty Nineteen… Now you could change everything : pages and salon services for example. after that you need to active Enfolld. But It s not really a solution :s
However, it allows me to think that the problem is coming from Enfold…February 12, 2019 at 11:54 am #1065908Hi,
Yes, the issue is generated by the theme but it’s triggered by the plugin so there’s a compatibility issue there. Again, we don’t provide support for third party plugins but we’ll try to help as much as possible. Please keep in touch with the plugin author for additional help.
In the private field, please post the WP and FTP login details so that we can debug the issue and do a few tests.
Best regards,
IsmaelFebruary 12, 2019 at 2:03 pm #1065940Hi, thank you @ismael for your answer…
I have I sent you my IDs
Best regardsFebruary 12, 2019 at 5:18 pm #1066003The plugin author says it is not their fault. So instead I hereby send you the login data…
February 13, 2019 at 4:59 am #1066225Hi,
@Maureen van Goethem, @onepresto
The plugin is using the “display_post_states” filter and it is returning a null value instead of an array. Please pass that information to the plugin authors. We had to override that filter in the theme. Please edit the config-gutenberg > class-avia-gutenberg.php file, look for this code around line 195:
add_filter( 'display_post_states', array( $this, 'handler_display_post_states'), 99, 2 );
Set the priority from 99 to 5:
add_filter( 'display_post_states', array( $this, 'handler_display_post_states'), 5, 2 );
@onepresto: I have already added this in your installation.Best regards,
IsmaelFebruary 13, 2019 at 6:49 pm #1066588@ismael
Thanks a lot !!! you rock ;)
Best regardsFebruary 14, 2019 at 4:35 pm #1067034Thank you!!!! It works!!!
February 18, 2019 at 5:13 am #1068106 -
AuthorPosts
- The topic ‘Error Enfold with plugin ‘Salon Booking WordPress Plugin’’ is closed to new replies.