Topic Resolution: Resolved
  • Closed
  • Graham Newell
    Spectator
    August 20, 2015 at 11:51 am #20001

    Hello.

    I want to use a different menu and widgets when i am in a different language, so i usually use Polylang. Works fine with Evolve+ but gives me a blank white admin screen as soon as I add the plugin with Alora.

    Is there anything i can do?

    Thanks.

    Denzel Chia
    Moderator
    Posts: 2656
    August 21, 2015 at 6:01 pm #20031

    Hi,

    I just installed and activated polylang plugin on my localhost with Alora Theme.
    There is no white screen upon activation.

    A blank white screen means PHP fatal error. In this case, I suspect your server ran out of memory and encounter a PHP memory exhaust fatal error. It also could be other reason.

    Therefore, please check your error log for any fatal error.

    Thanks!

    Graham Newell
    Spectator
    Posts: 104
    August 22, 2015 at 9:11 am #20039
    This reply has been marked as private.
    Denzel Chia
    Moderator
    Posts: 2656
    August 22, 2015 at 10:20 am #20040

    Hi,

    In alora/admin/index.php at line 75 to 78, there is a block of code, probably written for WPML plugin. This is causing conflict with Polylang plugin, it causes PHP fatal error. I think the Polylang plugin is using same function and constant names as WPML plugin.

    I disabled the block by commenting them out as follows.

    //$lang = '_' . $sitepress->get_default_language();
    //if( $sitepress->get_default_language() == 'en' ) {
    // $lang = '';
    //}

    Please try out your Polylang plugin and see if it works properly.

    I am not the author of Alora theme and I don’t really understand the use of that block of code. So I don’t know what’s the impact if it’s disabled.

    Thanks!

    Graham Newell
    Spectator
    Posts: 104
    August 22, 2015 at 11:58 am #20041

    Thanks, seems ok so far.

    I will redo the page this weekend and hopefully get it online soon.

    I really appreciate your help.

    Graham

    Denzel Chia
    Moderator
    Posts: 2656
    August 23, 2015 at 11:34 am #20053

    Hi,

    You are welcome.

    Thanks!