Resolved
Reported for: WPML String Translation 3.1.0
Resolved in: 3.1.2
Overview of the issue
When you try to update or create a new page Using Divi theme, you’ll get this error:
1 2 3 4 5 6 7 8 | PHP Fatal error: Uncaught Error: Object of class stdClass could not be converted to string in /home/skinro1q/public_html/wpsystem/wp-content/themes/Divi/epanel/custom_functions.php:271 Stack trace: #0 .../wp-content/themes/Divi/includes/builder/feature/ global -presets/Settings.php(263): et_update_option( 'builder_custom_...' , Object(stdClass)) #1 .../wp-content/themes/Divi/includes/builder/ class -et- global -settings.php(636): ET_Builder_Global_Presets_Settings->migrate_customizer_settings(Array) #2 .../wp-content/themes/Divi/includes/builder/ class -et- global -settings.php(21): ET_Global_Settings::set_values() #3 .../wp-content/themes/Divi/includes/builder/ class -et- global -settings.php(721): ET_Global_Settings::init() #4 .../wp-includes/ class -wp-hook.php(287): et_builder_init_global_settings(Object(WP)) #5 .../wp-includes/ class -wp-hook.php(311): in .../wp-content/themes/Divi/epanel/custom_functions.php on line 271 |
Workaround
If you have experienced this issue, you can solve it doing the following:
- Restore your last stable backup.
- Update your WPML plugins
However, if your Divi settings have been corrupted when saving in a secondary language, then:
- Please, make a full backup of your site before proceeding.
- Reset your Divi settings by using the Reset button or by following these steps:
- Add the following code into your functions.php file.
123
add_action (
'init'
,
function
() {
delete_option (
'et_divi'
);
});
- Open any page on the backend in the default language.
- Save the theme settings again staying in the default language. This will reset your Divi theme options.
- Remove this code.
- Once your Divi settings are no longer corrupted, you can update your plugins and update the Divi settings normally.
Any news about this issue?
Will my site work again or do I have to restore a backup and lose much of working time.
I really need to know whats going on to prevent loosing more time.
We are sorry to hear that. We are working with Divi’s theme for finding a quick and clean solution. It wouldn’t be necessary to restore a backup so far, so I would recommend you to wait a bit more.
Thank you for your understanding.
Dear WPML team,
actually divi is telling me, that only you may solve this issue.
This is what divi is telling me:
—————–
In details the culprit is WPML_Admin_Texts which is part of the WPML Strings Translations plugin.
So it has the post option update action changing some Divi Theme Options like Logo, SEO titles etc. for different languages. Since we store almost all our options within the single et_divi WP option they have to process et_divi internal structure and make corresponding changes. However for some reason that logic saves an empty value instead of serialized value as result it breaks all options.
———–
Please let us know, whether and when you will be able to solve that.
Is there any (paid) option to escalate this issue on your end to a higher priority?
BR
Andreas Fleischmann
CEO DigiPara AG
Hello Andreas,
Sorry for this confusing situation. We are in contact with Divi theme and we are working together in order to find a solution.
We don’t have a paid option, however, it is of high priority for us.
Regards
Hello,
I have the same error and the full website is down.
Keep me posted on an update!
Hey Kenneth,
Sure, we are working with Divi theme to find and release a solution soon.
Regards
Should this be any help for others with this issue:
You can always comment out line 271 ( //$et_theme_options[$option_name] = $new_value; )
You lose some functionality and markup, but in my case it is better then no website at all.
Cheers
We have updated the erratum and we have a workaround. Could you please give it a try?
Hi guys. May we ask you the last WPML/DIVI compatible versions, so we can downgrade and develop with working versions until further notice? Thank you and best, Gabriele
Hey,
We have updated the erratum and we have a workaround now. Could you please give it a try?
I have the same problem. All the site get broken. I had to reinstall the site and database.
This created a big problem with my clients.
Do you have any solution yet?
Hey,
We have updated the erratum and we have a workaround now. Could you please give it a try?
Hello Andrés
Same problem here with Line 271…
I got this error yesterday when I saved a translated page using the Visual Builder.
Several hours before the WSOD appeared I could use all functions without any problems.
Would appreciate it if an approximate time could be named. So that those involved can be informed, and we can explain and minimize the damage.
Hours, days, weeks?
Hey,
We have updated the erratum and we have a workaround now. Could you please give it a try?
Hi christophM-21
Similar problem. After using Visual Editor the site crashed and we also had errors on line 271. Hope you have found the solution, and would be thankful if you could let me and everyone on here know. Thanks.
I have also de Divi template and I just bought WPML to create a subdomain in english, but my website also collapsed and appears “Catchable fatal error….Divi/epanel/custom_functions_php online 271”
I want to know when do you think the error of setting WPML with Divi will be fix? otherwise, I guess i will request the refund of the plugin purchased.
Hey,
We have updated the erratum and we have a workaround now. Could you please give it a try?
Andres, yo habia tratado con la version de WPML 4.4.2, debo volver a intentar instalar la misma version?
Hola,
Justo acabamos de lanzar una nueva versión con un hotfix WPML String Translation 3.1.2.
Por favor, haz un backup completo de tu sitio y realiza la actualización.
Si esto no ayuda, por favor, abre un ticket en nuestro soporte para podernos encargar de tu caso individualmente:
https://wpml.org/forums/forum/english-support/
Thanks for the solution
Unfortunately it does not work for me.
I am already stuck on step 1.
The window pops up, I type in a name, but nothing happens when I click on the export.
Button links to ……/wp-admin/admin.php?page=et_divi_options#
I will now report this to Divi support as it is not your plugin. Hopefully they have a quick solution for the problem
I’m sorry to hear that it is not working. Try to deactivate WPML for the 1st step or use a backup.
If still does not work, please open a ticket in our forum so we can help you better:
https://wpml.org/forums/forum/english-support/
What I did is I put the code in may free/parked theme, functions.php file.
-then I activated my free/parked theme.
-Open any page on the backend in the default language.
-Activated Divi.
-Imported the settings
I did not delete the code because the issue persist when I’m doing some changes in the site.
So I can easily activate again my free/parked theme to do the workaround.
I’m happy to know you were able to apply the workaround. In the meantime, we just released a hot fix within WPML String Translation 3.1.2.
Please, make a full backup of your site and update all your WPML package.
is the hot fix within WPML String Translation 3.1.2 a permanent fix? I can edit in the secondary language already?
Yes, it should be a permanent fix. Did it work for you?
Don’t forget to make a full backup of your site before proceeding.
Regards
Hi christophM-21
Did you find a solution to your problem ? Would be grateful to know. Thanks.
“We updated the errata below with some steps on how to clear the issue. The important thing to note is that you must not update the theme settings in the secondary languages..”
Divi Settings means > Divi Options or?
Ok, but you are still working on a solution to restore the complete functionallity?
The error even is there when I try to change content on a translated page.
Need to do some customizations in the Divi – Filterable Blog Module.
When I try to go in the Module Options, the site crashes.
So, I can not see a solution to work with. I still can not work on my Website.
Sorry, but it’s a little disappointing.
I’ve been waiting for a solution for days. My customer is waiting for his website.
There is still a lot to be done and the whole thing has stood still for days.
You say “you can work on it again if you don’t go to the DIVI settings in another language”.
So this doesnt work. And now?
It really should be highest priority to make it work again.
We are totally sorry about this situation, that’s why we release a hot fix within WPML String Translation 3.1.2.
Please, make a full backup of your site and update all your WPML package.
If this does not help, please open a ticket in our forum so we can investigate your situation:
https://wpml.org/forums/forum/english-support/
It seems that it works now.. I hope 😀
I’m glad to know that it helped. 🙂
Hi, we have the same error and the full websites are down when we updated Divi and the WPML pluggins, and we tried to fix it with your solution, but it doesn’t work!
We need an immediate solution as we have been dealing with this problem for over a week, and we cannot allow this to happen again on our websites. Otherwise, we will be forced to request the refund of the plugin purchased.
Please let us know, when you will be able to solve that. Do you have an estimated fix time?
We just released a hot fix within WPML String Translation 3.1.2.
Please, make a full backup of your site and update all your WPML package.
If this does not help, please open a ticket in our forum so we can investigate your situation:
https://wpml.org/forums/forum/english-support/
Hi Oscar, have you had a resolution to your problem yet ?
Our site is also down. We contacted Elegant Themes (Divi) who also say it is a problem with WPML String Translation. However, we we deactivated all of WPML our site was still down. We recovered our site from a functional backup but something must be linking to the site as the error comes back.
We also get an error on line 271 :
Notice: A non well formed numeric value encountered in ————–/wp-content/themes/Divi/epanel/custom_functions.php on line 271
Warning: Illegal string offset ‘et_flush_rewrite_rules_library’ in ————–/wp-content/themes/Divi/epanel/custom_functions.php on line 271
Warning: Illegal string offset ‘builder_custom_defaults’ in ————–/wp-content/themes/Divi/epanel/custom_functions.php on line 271
Recoverable fatal error: Object of class stdClass could not be converted to string in ————–/wp-content/themes/Divi/epanel/custom_functions.php on line 271
The latest reply I have from DIVI support is :
—————-
Meantime, please reach out your hosting company and ask them to clear value of “et_divi” in wp_options table.
If it doesn’t help then, please try to downgrade the WordPress version and then check it.
https://dominiquej.com/how-to-downgrade-wordpress-to-previous-version/
—————-
Any insight would be appreciated.
We just released a hot fix within WPML String Translation 3.1.2.
Please, make a full backup of your site and update all your WPML package.
If this does not help, please open a ticket in our forum so we can investigate your situation:
https://wpml.org/forums/forum/english-support/
We tried the new hot fix and it did not solve the problem.
I’m sorry to hear that it didn’t work @gretchenD. Could you please open a ticket in our support forum?
We have all the tools to help you there.
Then, can you share your link here so I can follow it?
Thank you for your help.
Hi there
The Elegantthemes Support was able to bring the Site back to life, but some settings seem to be messed up. At the moment we do not know what has caused that. In our case the et_divi Field in the Database was empty.
We used a Backup to get the Divi Options JSON File to import it again.
Until now i did not execute the functions.php Snippet posted above.
I reccomend to do testing on a Dev envoirement, before making the same on the live site.
Greetings
Same problem i dont know how to do the workaround, pls help
Unfortunately we don’t have the right tools to help you here.
If this does not solve your issue, please open a ticket in our forum so we can help you better:
https://wpml.org/forums/forum/english-support/
I had divi do the first step. I restored to the 11th, then the 10th, then the 9th and now the 8th. Same problem, page is down
I now get this in back end (can’t copy all):
et ‘et_flush_rewrite_rules_library’ in /home/selinase/public_html/wp-content/themes/Divi/epanel/custom_functions.php on line 271
Warning: Cannot assign an empty string to a string offset in /home/selinase/public_html/wp-content/themes/Divi/epanel/custom_functions.php on line 271
Warning: Cannot modify header information – headers already sent by (output started at /home/selinase/public_html/wp-content/themes/Divi/epanel/custom_functions.php:271) in /home/selinase/public_html/wp-includes/functions.php on line 6270
Warning: Illegal string offset ‘divi_1_3_images’ in /home/selinase/public_html/wp-content/themes/Divi/epanel/custom_functions.php on line 271
Warning: Illegal string offset ‘divi_previous_installed_version’ in /home/selinase/public_html/wp-content/themes/Divi/epanel/custom_functions.php on line 271
Warning: Cannot assign an empty string to a string offset in /home/selinase/public_html/wp-content/themes/Divi/epanel/custom_functions.php on line 271
Warning: Illegal string offset ‘divi_latest_installed_version’ in /home/selinase/public_html/wp-content/themes/Divi/epanel/custom_functions.php on line 271
Warning: Cannot modify header information – headers already sent by (output started at /home/selinase/public_html/wp-content/themes/Divi/epanel/custom_functions.php:271) in /home/selinase/public_html/wp-admin/includes/misc.php on line 1310
Skip to main contentSkip to toolbar
These errors does not seem related to the situation here handled.
Could you please open a ticket in our forum so we can help you better?
https://wpml.org/forums/forum/english-support/