• Resolved shawnd1007

    (@shawnd1007)


    I am using the WordPress Multi-Language plugin and am getting the error show below when I try sync the menus on my website.They are not translating for some reason.

    Fatal error: Call to a member function _save() on a non-object in /home4/mvaorg/public_html/wp-content/themes/pb-theme/lib/carbon-fields/core/Container/Nav_Menu_Container.php on line 164

    Is this code essential for the Nav_Menu_Container.php file?

    /**
    * Trigger Save for all instances
    */
    public static function update( $menu_id, $current_menu_item_id ) {
    $instance = self::set_instance_for_id( $current_menu_item_id, false );
    $instance->_save();

    return $instance;
    }

    Thanks in advance

    https://ww.wp.xz.cn/plugins/carbon-fields/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author htmlBurger

    (@htmlburger)

    Hi @shawnd1007,

    Yes, this code is necessary for the nav menu item custom fields to save properly.

    Can you please let us know which multilingual plugin are you using?

    Thanks.

    Thread Starter shawnd1007

    (@shawnd1007)

    I am using the WordPress Multi-Language plugin.

    https://wpml.org/

    Thanks.

    Plugin Author htmlBurger

    (@htmlburger)

    Heey @shawnd1007,

    We’re unable to reproduce the issue.

    Can you please:

    1. Provide a list of all plugins that you have installed and activated.
    2. Send the code that you’re using for your nav menu container and fields
    3. Send a step-by-step list of what you do when the issue occurs.

    Thanks in advance.

    Thread Starter shawnd1007

    (@shawnd1007)

    It turns out the plugin needs to be updated on our end. Hopefully this will fix the issue.

    Thanks again.

    Plugin Author htmlBurger

    (@htmlburger)

    Hi @shawnd1007,

    Please, let us know if you have further issues, and if you do, please send some more details on how to reproduce the issue.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fatal Error’ is closed to new replies.