Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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/ (Purchase code hidden if logged out) .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/ (Purchase code hidden if logged out) -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’)

    #1052403

    Dimitri 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 Plugin

    Dimitri Grassi

    #1053140

    Hi,

    If you disable child theme and run on the main Enfold, can you please let us know if issue is still there?

    Best regards,
    Basilis

    #1063195

    Hi, 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 ?
    thanks

    #1065288

    Hi,

    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,
    Ismael

    #1065355

    Hi

    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/ (Purchase code hidden if logged out) .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

    #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…

    #1065908

    Hi,

    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,
    Ismael

    #1065940

    Hi, thank you @ismael for your answer…
    I have I sent you my IDs
    Best regards

    #1066003

    The plugin author says it is not their fault. So instead I hereby send you the login data…

    #1066225

    Hi,

    @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,
    Ismael

    #1066588

    @ismael
    Thanks a lot !!! you rock ;)
    Best regards

    #1067034

    Thank you!!!! It works!!!

    #1068106

    Hi,

    You’re welcome. We’ll close the thread now.

    Have a nice day.

    Best regards,
    Ismael

Viewing 14 posts - 1 through 14 (of 14 total)

The topic ‘Error Enfold with plugin ‘Salon Booking WordPress Plugin’’ is closed to new replies.