Blank screen after search
  • I successful installed Campsite on hosting. All is ok (thanks this forum), but i get blank screen after any search (Custodian template). On local computer - all is ok.

    I checked php variables:
    max_execution_time 60000
    max_input_time 12000
    memory_limit 320M
  • 4 Comments sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    It seems you have some error.
    First off, activate error output. Add into .htaccess error php params:
    php_flag display_errors 1
    php_value error_reporting E_ALL
    

    If you don't see an error then you can look at search code and find the string which generates blank page. Look at file template_engine/metaclasses/MetaActionSearch_Article.php

    Start from __constructor and put the debug code
    echo 1;exit;

    If you see the "1" then you should move the debug code below. You need to find the place when you can not see the "1".
  • Thank Andrew for your help.

    1. I activate htaccess error output - blank screen with no messages.

    2. I try to place echo 1;exit to all functions in MetaActionSearch_Article.php (construct, takeaction, get). This string i place before return at end of function. To my mind this situation is normal.
    In all cases i see "1".

  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    hmm, then you have to make some debug tour over the code. Start from index.php. Find the function from which you can not see "1" and go to inside this function. It can take some time but I can not see how to find the reason of blank screen. Remote debug usually isn't supported on shared hosting.
  • Problem solved!

    Size of search-result.tpl was zero. Always check templete files!