ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

I get a blank page if i use conditionals

January 11, 2010 11:44am

Subscribe [3]
  • #1 / Jan 11, 2010 11:44am

    Mike Verbruggen

    37 posts

    I build a website on a development environment. And today i was moving over everything to an other server. After changing the settings to suit the new environment i checked-out front-end and all i got was a blank page :-( While on the dev-server everything was OK.

    After trying all kinds off solutions i discovered the problem.

    On the new server pages show up empty if i use conditionals.

    Well, i searched and tried everything and i cant find the solution.

    Please HELP!


    I use EE 1.6.8 build 20091201

    The new-server is running PHP Version 5.2.6

    The dev-server is running PHP Version 5.2.6-1+lenny4

    I disabled the extensions whit no effect

  • #2 / Jan 11, 2010 12:13pm

    lebisol

    2234 posts

    ...and if no conditionals page shows up ok?
    What is your code that might be throwing it of?

  • #3 / Jan 11, 2010 12:32pm

    Sue Crocker

    26054 posts

    Thanks for the assist, lebisol.

    Maix, can you give an example of the code you’re using?

    Try a brand new template with *just* this code:

    {if logged_in}
    You're logged in!
    {if:else}
    You aren't logged in!
  • #4 / Jan 11, 2010 1:08pm

    Mike Verbruggen

    37 posts

    What i tried,

    {username}

    Result: My name..

    {exp:weblog:entries weblog="pages" disable="categories|category_fields|member_data|pagination|trackbacks"}{if no_results}{redirect="404"}{/if}
    
        {pages_title}
    
        {pages_paragraphs}
    
            {text}
    
        {/pages_paragraphs}
    
    {/exp:weblog:entries}

    Result: A page with content..

    {if logged_in}
    You're logged in!
    {if:else}
    You aren't logged in!
    {/if}

    Result: A blank page..

    {if member_id == "1"}Your the Admin!{/if}

    Result: A blank page..

    {exp:weblog:entries weblog="showreel" disable="categories|category_fields|member_data|pagination|trackbacks" dynamic="off" }{if no_results}{redirect="404"}{/if}
    
    {if count == "1"}1{if:else}0{/if}
    
    {title}
    
    
    {/exp:weblog:entries}

    Result: A blank page..

    {exp:weblog:entries weblog="showreel" disable="categories|category_fields|member_data|pagination|trackbacks" dynamic="off" }{if no_results}{redirect="404"}{/if}
    
    {title}
    
    
    {/exp:weblog:entries}

    Result:  A page with content..

    —-

    In the meantime i will try a clean install in the same server…

  • #5 / Jan 11, 2010 2:07pm

    Mike Verbruggen

    37 posts

    This is not good. :-(

    On the clean install i have the same problem.

    I tried the Server Wizard and it is telling me, everything is OK

  • #6 / Jan 11, 2010 2:53pm

    lebisol

    2234 posts

    {if logged_in} - try clear cache (browser and db)
    {if member_id == "1"} - are you sure super admin is really a member id 1?
    what if you eliminate if:else logic into :
    {if something}
    do
    {/if}
    {if something_else}
    go
    {/if}

    just throwing some ideas…not sure if any of it will help.

  • #7 / Jan 11, 2010 3:11pm

    Mike Verbruggen

    37 posts

    We found this error in error-log

    PHP Fatal error: SUHOSIN - Use of eval is forbidden by configuration in /bla/bla/bla/system/core/core.functions.php(634) : eval()‘d code on line 634

    The client will contact the hosting company tomorrow about this error.

  • #8 / Jan 11, 2010 4:39pm

    Ingmar

    29245 posts

    Certainly looks like a server issue, yes. Let us know how it goes.

  • #9 / Jan 12, 2010 5:59pm

    Mike Verbruggen

    37 posts

    Problem Solved!

    The server was installed with patches of the Hardened PHP Project. (http://www.hardened-php.net/suhosin/)

    One part of the patches blocks the eval funktion.

    In vhost.conf you can un block the eval funktion. (read te website)

    Thanks for your support!

    Next problem please…

  • #10 / Jan 12, 2010 6:15pm

    Ingmar

    29245 posts

    Glad to see you’re all set. Please don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases