Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1304290

    Hey there,
    I’m having issues with the WPML language plugin every time I save a new page, it shows the following message:

    Notice: Trying to access array offset on value of type bool in /home/customer/www/domain.com/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4326

    Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/domain.com/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:4326) in /home/customer/www/domain.com/public_html/wp-admin/post.php on line 231

    Any idea of how can I fix this?
    I already tried to contact WPML support but they say it might be a problem of the template… Anyway, any help will be welcome.
    Thank you!

    Didac

    #1304424

    Hey Didac,

    Thanks for contacting us!

    Could you please refer to this post – https://kriesi.at/documentation/enfold/theme-update/ and update Enfold to the latest version 4.8.3 and WP to 5.7.2 and check if that helps? :)

    Best regards,
    Yigit

    #1304568

    Hi Yigit,

    Just updated both WordPress and Enfold to the latest versions (4.8.3 and WP to 5.7.2) and still having the same issue.

    Regards,
    Didac

    #1304873

    Hi Didac,

    Thanks for the info. I edited functions.php file and deleted closing php tag from the end of the file and then tried updating one of your existing page and creating a new page (later deleted the test page) however I could not reproduce the issue.
    Could you please check if you can reproduce it and if you can let us know how we can do as well? :)

    Best regards,
    Yigit

    #1304948

    Hi Yigit,

    Thanks for your help.

    Now looks like it works fine, the only thing is that appears the following message on the top:

    Notice: WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in /home/customer/www/skualo.com/public_html/wp-includes/functions.php on line 5313

    Regards,
    Didac

    #1304949

    Hi Didac,

    You are welcome!

    It is not coming from Enfold. Could you please try de-activating your plugins one by one to find the culprit?

    Best regards,
    Yigit

    #1304960

    Hi,

    I think the problem is with the Yoast SEO plugin, but it only shows me that message when I click in the “Redirects” menu, the rest of the menus such us general, search appearance, social… do not make any problem. Same with the rest of the website, I can create new pages, translate them, etc. and no problem.

    I tried to de-activate and activate the plugin again but the problem persists.

    Regards,
    Didac

    #1305587

    Hi,

    In that case you can edit wp-config.php file and set debug to false – https://codex.wordpress.org/WP_DEBUG

    
    define( 'WP_DEBUG', false );
    

    Since it is a notice, it would not cause any issues on your site :)

    Best regards,
    Yigit

    #1305745

    Great!

    You’re right, looks like everything is working fine now, thank you :)

    Regards,
    Didac

    #1305765

    Hi,

    You are welcome, Didac!

    Let us know if you have any other questions and enjoy the rest of your day :)

    Best regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Notice: Trying to access array offset on value of type bool in…’ is closed to new replies.