-
AuthorPosts
-
October 9, 2023 at 5:29 pm #1421935
HI, I have a problem with my website. If update my php version, the website crash. I did a debug and this what I get:
[06-Jun-2022 17:26:54 UTC] PHP Warning: Array to string conversion in /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/block-editor.php on line 340
[06-Jun-2022 17:26:54 UTC] PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php:186
Stack trace:
#0 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php(186): explode()
#1 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-styles.php(371): WP_Dependencies->all_deps()
#2 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php(126): WP_Styles->all_deps()
#3 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/block-editor.php(347): WP_Dependencies->do_items()
#4 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/block-editor.php(479): _wp_get_iframed_editor_assets()
#5 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-admin/edit-form-blocks.php(282): get_block_editor_settings()
#6 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-admin/post-new.php(72): require(‘…’)
#7 {main}
thrown in /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php on line 186
[06-Jun-2022 17:54:51 UTC] PHP Warning: Array to string conversion in /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/block-editor.php on line 340
[06-Jun-2022 17:54:51 UTC] PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php:186
Stack trace:
#0 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php(186): explode()
#1 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-styles.php(371): WP_Dependencies->all_deps()
#2 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php(126): WP_Styles->all_deps()
#3 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/block-editor.php(347): WP_Dependencies->do_items()
#4 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/block-editor.php(479): _wp_get_iframed_editor_assets()
#5 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-admin/edit-form-blocks.php(282): get_block_editor_settings()
#6 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-admin/post-new.php(72): require(‘…’)
#7 {main}
thrown in /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php on line 186My hosting says it is a problem inside the website. Please can you help me? Also I cant get the child get the stylesheet working.
October 9, 2023 at 7:02 pm #1421942Hey InekeWerkt,
I see that you are using an old version of the theme that doesn’t support PHP v8 you are using Enfold v4.8.6.2
PLease update to v5.6.6, you may need to manually update with the instructions below, but please first note that if your child theme has a custom header.php or footer.php you will need to remove these and then after the update make new custom header.php or footer.php from the current files. It would be better to not use custom header.php or footer.php at all as most update issues are a result from these custom files.
To update your version of Enfold you will need to download the latest installable WP version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New
after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue
then you will see the Theme updated successfully message.
Best regards,
MikeOctober 10, 2023 at 10:06 am #1421986Yes – Mikes way to update is the way i prefer too! – if the versions are not so distant to each other. That is a big jump from 4.8 to 5.6
To have a rollback to this older version, I would use the following update procedure.
https://kriesi.at/support/topic/some-hints-and-advice-to-update-enfold/#post-1056107October 11, 2023 at 2:40 pm #1422142Thank you so much! It’s working!
October 11, 2023 at 3:11 pm #1422147Hi,
Great, I’m glad that you got things working. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
RikardOctober 11, 2023 at 4:16 pm #1422155This reply has been marked as private.October 11, 2023 at 4:20 pm #1422156And I want my breadcrumb under the header. It’s there already but ofcourse it is not working on mobile. I think I can place in the function php but I dan’t know how. Thanks again!
October 12, 2023 at 9:21 am #1422205Hi,
Thanks for the update. We would need to check the backend of your site, but the login details you posted earlier are not working. Please check and verify.
Best regards,
RikardOctober 12, 2023 at 10:50 am #1422212This reply has been marked as private.October 12, 2023 at 11:46 am #1422215Sorry, I made a new one:
- This reply was modified 1 year, 1 month ago by Rikard.
October 12, 2023 at 2:49 pm #1422239 -
AuthorPosts
- You must be logged in to reply to this topic.