Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1152654

    Hello dear Enfold Team,

    I can’t edit my menu anymore. The appearance>menu page is loaded correctly but the menu elements aren’t displayed.
    I tried to deactivate plugins > no luck
    The only thing that works is switching back to twenty nineteen.

    My console returns 2 errors :
    Uncaught ReferenceError: columns is not defined
    nav-menus.php:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)

    I have had this problem for quite a while now. I was hoping an update would fix the issue but no luck again.
    If needed I have a cloned website if you want to run heavy tests.

    Regards
    Antoine

    #1152774

    Hey graphicdreamer,

    Can you please check server log for error?

    Here is how to find it:http://snapcreek.com/blog/wordpress-error-log-friend/

    Best regards,
    Victoria

    #1152795

    Hello Victoria,

    Here is the last error I see in my logs when I go to Appearance > Menu Page :

    [31-Oct-2019 15:23:10 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_billing_country() on null in /home/www/premiumfactory.eu/htdocs/wp-content/themes/enfold-child/functions.php:545
    Stack trace:
    #0 /home/www/premiumfactory.eu/htdocs/wp-includes/class-wp-hook.php(286): es_filter_gateways(Array)
    #1 /home/www/premiumfactory.eu/htdocs/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array)
    #2 /home/www/premiumfactory.eu/htdocs/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(160): apply_filters(‘woocommerce_ava…’, Array)
    #3 /home/www/premiumfactory.eu/htdocs/wp-content/plugins/woocommerce/includes/wc-account-functions.php(118): WC_Payment_Gateways->get_available_payment_gateways()
    #4 /home/www/premiumfactory.eu/htdocs/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-menus.php(309): wc_get_account_menu_items()
    #5 /home/www/premiumfactory.eu/htdocs/wp-admin/includes/template.php(1436): WC_Admin_Menus->nav_menu_links(NULL, Array)
    #6 /home/www/premiumfactory.eu/htdocs/wp-admin/nav-menus.php(853) in /home/www/premiumfactory.eu/htdocs/wp-content/themes/enfold-child/functions.php on line 545

    Does this help ?

    Regards.
    Antoine

    #1152862

    Hi Antoine,

    You have added in the child theme, which breaks. Please remove it.
    /themes/enfold-child/functions.php:545

    Best regards,
    Victoria

    #1153734

    Hi Victoria,

    When i comment it it does fix the issue but I don’t understand what’s wrong with my function. It does work and I didn’t find any empty field for “billing country” in my data base. (I’m not a specialist so there is a chance i’m wrong)

    Do you have an idea ?

    Regards.
    Antoine

    #1155349

    Hi,

    Unfortunately we can’t know what is wrong with the code, maybe a ‘ is miss-escaped or something like this.

    Best regards,
    Basilis

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.