Title: vaughnd's Replies | WordPress.org

---

# vaughnd

  [  ](https://wordpress.org/support/users/vaughnd/)

 *   [Profile](https://wordpress.org/support/users/vaughnd/)
 *   [Topics Started](https://wordpress.org/support/users/vaughnd/topics/)
 *   [Replies Created](https://wordpress.org/support/users/vaughnd/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/vaughnd/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/vaughnd/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/vaughnd/engagements/)
 *   [Favorites](https://wordpress.org/support/users/vaughnd/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Polylang causes exhausted memory error](https://wordpress.org/support/topic/polylang-causes-exhausted-memory-error/)
 *  [vaughnd](https://wordpress.org/support/users/vaughnd/)
 * (@vaughnd)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/polylang-causes-exhausted-memory-error/page/2/#post-7673906)
 *     ```
       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;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Polylang causes exhausted memory error](https://wordpress.org/support/topic/polylang-causes-exhausted-memory-error/)
 *  [vaughnd](https://wordpress.org/support/users/vaughnd/)
 * (@vaughnd)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/polylang-causes-exhausted-memory-error/page/2/#post-7673898)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Polylang causes exhausted memory error](https://wordpress.org/support/topic/polylang-causes-exhausted-memory-error/)
 *  [vaughnd](https://wordpress.org/support/users/vaughnd/)
 * (@vaughnd)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/polylang-causes-exhausted-memory-error/page/2/#post-7673871)
 * Two threads open there. Added my bit to them, but no useful response yet.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Polylang causes exhausted memory error](https://wordpress.org/support/topic/polylang-causes-exhausted-memory-error/)
 *  [vaughnd](https://wordpress.org/support/users/vaughnd/)
 * (@vaughnd)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/polylang-causes-exhausted-memory-error/#post-7673859)
 * Changing 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Polylang causes exhausted memory error](https://wordpress.org/support/topic/polylang-causes-exhausted-memory-error/)
 *  [vaughnd](https://wordpress.org/support/users/vaughnd/)
 * (@vaughnd)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/polylang-causes-exhausted-memory-error/#post-7673792)
 * Also 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.

Viewing 5 replies - 1 through 5 (of 5 total)