same here. previous version was 2.0.2, WP 4.5.3 and newest Divi. i’m going to ask them to fix this ASAP
Two threads open there. Added my bit to them, but no useful response yet.
Plugin Author
Chouby
(@chouby)
i’m going to ask them to fix this ASAP
We don’t know yet who has to fix what. We just know that there is conflict between latest versions of WP + Divi + Polylang.
Someone on the elegantthemes.com forums figured it out. There’s an infinite loop happening:
Into file : wp-includes\l10n.php
into the function get_locale()
the line number 41 :
return apply_filters( ‘locale’, $locale );
calls into an infinite loop with the
add_filter( ‘locale’, ‘et_divi_maybe_change_frontend_locale’ );
So I disable the line
add_filter( ‘locale’, ‘et_divi_maybe_change_frontend_locale’ );
into the file wp-content\themes\Divi\functions.php arround line 8441
to avoid call and call until crash of PHP or Apache I don’t know.
Plugin Author
Chouby
(@chouby)
Could you share the code of the function et_divi_maybe_change_frontend_locale?
function et_divi_maybe_change_frontend_locale( $locale ) {
$option_name = 'divi_disable_translations';
$theme_options = get_option( 'et_divi' );
$disable_translations = isset ( $theme_options[ $option_name ] ) ? $theme_options[ $option_name ] : false;
if ( 'on' === $disable_translations ) {
return 'en_US';
}
return $locale;
}
too slow 😉 you already got what you need it seems
Thanks!! Fixed the same problem with these posts!
Plugin Author
Chouby
(@chouby)
I foresee a possible conflict with Polylang if the “disable translations” is activated as the locale ‘en_US’ may override the locale set by Polylang. But I don’t understand how this function could generate an infinite loop with Polylang.
Can anyone ask a Divi developer to contact us at https://polylang.pro/support/ ?
Done,
Now let’s just hope they come back to you.
“En clair, il n’y a plus qu’a…”
Just wanted to say thanks to uthn for the solution.
Spent ages fiddling around, changing memory limits and all the usual stuff, as well as tearing my hair out until I found this.