Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1367305

    Hello!

    Recently I started receiving this warning when trying to edit the content on my pages. Because of it, I can’t currently access the editor and thus I cannot work with the website so the problem is rather critical.

    Warning: Array to string conversion in /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/block-editor.php on line 340

    Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/class.wp-dependencies.php:186 Stack trace: #0 /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/class.wp-dependencies.php(186): explode(‘?’, Array) #1 /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/class.wp-styles.php(371): WP_Dependencies->all_deps(Array, false, false) #2 /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/class.wp-dependencies.php(126): WP_Styles->all_deps(Array) #3 /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/block-editor.php(347): WP_Dependencies->do_items(Array) #4 /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/block-editor.php(479): _wp_get_iframed_editor_assets() #5 /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-admin/edit-form-blocks.php(282): get_block_editor_settings(Array, Object(WP_Block_Editor_Context)) #6 /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-admin/post.php(187): require(‘/data01/virt104…’) #7 {main} thrown in /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/class.wp-dependencies.php on line 186

    My current PHP version is 8.1 FastCGI. I tried to downgrade to the earliest version that my hosting provider allows which is 7.1 FastCGI and it didn’t help.
    My current Enfold Theme Version Number is 4.8.3
    My WP version is 6.0.2

    I have checked several other tickets that were created on this topic and I want to prevent some questions:

    – Did you try to turn off and on your plugins – yes
    – Are you sure that the problem is in the theme – yes (because when I put another theme everything works. When I change to the WP Classic Editor everything works as well.
    – Are your theme and WP updated – yes
    – Is it a critical error – yes

    Please, help me :)

    #1367306

    Hey kristinanesterova,

    Could you try updating the theme to the latest version (5.1.2) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update.

    Best regards,
    Rikard

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