vaughnd
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Polylang causes exhausted memory errorfunction 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; }Forum: Plugins
In reply to: [Polylang] Polylang causes exhausted memory errorSomeone 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.
Forum: Plugins
In reply to: [Polylang] Polylang causes exhausted memory errorTwo threads open there. Added my bit to them, but no useful response yet.
Forum: Plugins
In reply to: [Polylang] Polylang causes exhausted memory errorChanging that setting works for me too, but breaks most of our links… Trying to revert to wordpress 4.5 until a fix comes out…
Forum: Plugins
In reply to: [Polylang] Polylang causes exhausted memory errorAlso hitting this after the automatic upgrade to wordpress 4.6. Divi theme + polylang 2.0.3 not playing well together. I can load the divi theme without polylang, or other themes with polylang.