Viewing 30 posts - 1 through 30 (of 33 total)
  • Author
    Posts
  • #1210754

    Hi,

    I get this error when i try to go to sync wp menu’s.
    Fatal error: Uncaught Error: Call to undefined function gutenberg_can_edit_post_type() in /var/www/vhosts/pittcooking.com/httpdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:563 Stack trace: #0 /var/www/vhosts/pittcooking.com/httpdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(423): Avia_Gutenberg->can_use_block_editor() #1 /var/www/vhosts/pittcooking.com/httpdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(458): Avia_Gutenberg->init_force_classic_post_types() #2 /var/www/vhosts/pittcooking.com/httpdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(533): Avia_Gutenberg->get_force_classic_post_types() #3 /var/www/vhosts/pittcooking.com/httpdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(661): Avia_Gutenberg->force_classic_editor() #4 /var/www/vhosts/pittcooking.com/httpdocs/wp-includes/class-wp-hook.php(287): Avia_Gutenberg->handler_display_post_states() #5 /var/www/vhosts/pittcooking.com/httpdocs/wp-includes in /var/www/vhosts/pittcooking.com/httpdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 563

    I have the classics editor enabled in the theme settings.
    Any suggestions?

    Thanks
    Erik

    #1210773

    Hey Erik,

    Can we ask for the versions of the following on your site:
    1. PHP
    2. WordPress
    3. Enfold

    Best regards,
    Nikko

    #1210980

    HI Nikko,

    Here is the requested info

    PHP: 7.4.5 (FPM)
    Wordpress: 5.4.1
    Enfold: 4.7.4

    Greets
    Erik

    #1210984

    There is also another thing with WPML language selector that shows up twice in the main menu

    I work on an offline copy of the website so on pittcooking.com you can’t see what I describe
    The IP for the testing environment is in the private content

    Thanks

    Erik

    #1211030

    Hi Erik,

    Can you try to switch to PHP version 7.3? some users seems to have issues fixed reverting to this PHP version.

    Best regards,
    Nikko

    #1211050

    Hi Nikko,
    I did, but this does not fix the error
    Thanks
    Erik

    #1211084

    I fixed the language switcher issue in the style.css
    .av-language-switch-item {
    display: none !important;
    }

    #1211197

    Hi PITT,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( to be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Also please provide us with FTP access.

    Best regards,
    Nikko

    #1211363

    Hi Nikko,

    The url for login is in the private section
    Please notice I’m working on a copy of the website on another server.
    I provided the IP also

    The language that I’m working on for the restyling is Dutch/Nederlands.
    There I changed the wp-menu items in footer 1.
    When I try to sync the menu’s the error comes up

    Thanks
    Erik

    #1211499

    Hi PITT,

    I tried to login in the link you gave but instead of logging me in, it shows:

    Forbidden
    You do not have permission to access this document.

    Best regards,
    Nikko

    #1211765

    Hi Nikko,

    I provided the login credentials in private content, hope this works.

    Erik

    #1212369

    Hi Erik,

    I tried the link and login credentials you gave but it shows this:

    Onbekende gebruikersnaam. Opnieuw controleren of probeer je e-mailadres.

    Best regards,
    Nikko

    #1212600

    Hi,

    Sorry for this, I created the account again after deleting the existing.
    See private content

    Erik

    #1213113

    Hi Erik,

    It’s still the same, I have posted in a link for the screenshot in private content after trying the credentials you posted.

    Best regards,
    Nikko

    #1213211

    Hi Nikko,

    My guess is that you are trying to use the login on the live website.
    The site is copied to another server by me for restyling.
    That server is the IP address i provided you.
    To check if you look at the live website or the one I’m working on is simple. The live site has a dark layout, the new one is light.

    If you use this IP to point your computer to when you open pittcooking.com you will see the site I’m working on and where you have an account.
    I double checked the login credentials and they are working fine for me (see screenshot)

    Hope this will help you further.

    Thanks
    Erik

    #1214067

    Any succes yet?

    #1214187

    Hi Erik,

    I apologize for the delayed response since I got some issues on my end.

    I’m not really sure about the procedure you’re taking for this instruction Server IP for the host file on your computer. I think I’m missing some steps.
    If I go to the IP itself it would show this:

    Web Server's Default Page
    This page is generated by Plesk, the leading hosting automation software.
    You see this page because there is no Web site at this address.

    Can you give us steps or maybe an article we can follow?

    Best regards,
    Nikko

    #1214349
    This reply has been marked as private.
    #1214855

    Hi Erik,

    Thanks for the instructions, I was able to go to the site and tried to login however, I can’t go inside the wp-admin page, I’m getting this (screenshot in private content):

    Server Error
    403
    Forbidden

    Best regards,
    Nikko

    #1214929

    Hi Nikko,

    Do you see the page with a full screen foto slider on the site url pittcooking.com?
    I’ve asked someone else from outside my domain to try and will keep you posted on this.

    One thing is that you have to accept the certificate by hand! It is a self written one for development purposes. Maybe that helps.

    I will get back to you soon\

    Greets
    Erik

    #1215080

    Hi Nikko,

    We tested and it works fine.
    Perhaps something is wrong in your host file. Could you show me the contents?
    If you ping the domain after activating the IP in your host file, do you get the right IP back via ping?

    This is support the other way around at the moment, which confuses me.
    If you don’t succeed I’d like you to pass the issue through. As my client expect results (from me).
    I’m not getting the feeling we can work this out in the way you handle things and the progress of my work is held up by this.

    Looking forward to solving this as soon as possible.
    Thanks
    Erik

    #1215574

    Hi Erik,

    I apologize for that, it isn’t the usual process and I’m not very familiar with it.
    I have posted the screenshot of my hosts file in private content.
    I have asked my colleagues to look into this.

    Best regards,
    Nikko

    #1215688

    Hey,

    Could you please try updating enfold\config-gutenberg\class-avia-gutenberg.php with this one https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_7_4/config-gutenberg/class-avia-gutenberg.php in Editor > Appearance and check if that helps?

    Also, it would be great if you could set up a testing site and provide us the logins as we only connect to sites that are publicly accessible. Thanks!

    Regards,
    Yigit

    #1215810

    Hi Yigit,

    Tried your suggested fix, but the error remains. See private content.

    Greets,
    Erik

    #1215813

    @nikko,

    Thanks, the host file looks fine to me ;-)

    Erik

    #1215814

    @Yigit,

    I opened the debug.log and copied the infor for you.

    Erik

    #1218701

    Hi Yigit,

    Any thoughts?

    Thanks
    Erik

    #1218743

    Hi,

    Thank you for the update.

    We will include a patch for this error in the next release. For now, you can use the fix provided in the following thread.

    Related threads:

    // https://kriesi.at/support/topic/enfold-fatal-error-only-in-customize-w-hummingbird-page-cache-many-sites/#post-1216994
    // https://kriesi.at/support/topic/fatal-error-class-avia-gutenberg-php-on-line-529

    Best regards,
    Ismael

    #1219465

    Hi,

    The fix did not work for the site I’m working on.
    I now disabled classic editor in the settings, so the block editor is used.
    Then the sync works without the error.

    The thing is I’d rather not use the block editor as I think it’s is confusing for my client at the moment.
    But that’s not your problem ;-)

    Thanks so far

    Erik

    #1220372

    Hi,

    That’s odd. The error should not occur when the classic editor is active because the class-avia-gutenberg.php will only load when Gutenberg or the block editor is enabled. So it’s quite odd that it suddenly works now when you enabled the block editor.

    Best regards,
    Ismael

Viewing 30 posts - 1 through 30 (of 33 total)
  • The topic ‘WMPL gives fatal error’ is closed to new replies.