• Resolved dimal

    (@dimalifragis)


    Hello.

    I switched to this nice theme, after my 4years old theme died with WP 5.5 changes. It was time to use something else and use Gutenberg.

    After switching to Neve, i get this Notice in my debug.log:

    PHP Notice: Array to string conversion in /home/wp-includes/formatting.php on line 1098

    I think it happens when i’m logged in and editing things around. Visitors do not seem to activate that Notice, still not 100% sure about it.

    I have changed nothing with my plugins, just activated Neve. I’m not saying it comes from Neve, maybe some conflict is happening WITH Neve. Or Gutenberg i’m using.

    Since the Notice doesn’t clearly point to any plugin or theme, i would like to ask for some assistance and ideas how to pinpoint the issue.

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • Vytis

    (@bvytis)

    Hi @dimalifragis,

    Thank you for trying Neve!

    I don’t think it could be related to the Neve theme but I would recommend you to try switching PHP version in your hosting panel, maybe you are using older PHP version.

    Also, in case you are not able to pinpoint the issue – PHP Notices are non-critical errors that are for information only and can be caused by the PHP version you are using.

    You can hide noticed using wp-config.php file – https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/

    I hope you’ll find the reason for this problem! ??

    Thread Starter dimal

    (@dimalifragis)

    Thank you.

    I only use debug to a log after updates. My PHP is 7.3.x, so this is not the case.

    Next step is to disable plugins one by one and see how it goes. I will update here with my findings.

    Thread Starter dimal

    (@dimalifragis)

    I disables ALL plugins, the error is still there.

    I happens when me (admin) is selecting Customize the theme.

    Switching to default WP theme, the error is gone.

    Any more ideas?

    Thanks

    Thread Starter dimal

    (@dimalifragis)

    I think that the default value of a customizer setting should be a string, not an array. This is what i understand from my little php knowledge.

    I have tried 2 other themes, the error doesn’t happen with them.

    Please be kind enough to check this.

    Thank you.

    Hey @dimalifragis,

    I understand that this could be something that Neve theme drops as a Notice (not an error) but it’s not something global that we can debug as it doesn’t happen with our test instances or other clients haven’t reported it so it could be that some content that was before in your WordPress instance is causing the notice after Neve theme is activated but it’s hard to pinpoint the problem for a specific instance when it’s not a global problem.

    Again, notices are not crucial and do not stop any functionality from working so in case you can’t find which content could be causing this you can hide notices using the wp-config.php file – https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/

    Thread Starter dimal

    (@dimalifragis)

    Crystal clear. Thank you

    Thread Starter dimal

    (@dimalifragis)

    This seems to be solved after 1-2 updates of the theme. Just FYI.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Notice: Array to string conversion’ is closed to new replies.