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.

Blank screen after 2.5.2 update - php error

June 23, 2012 10:37am

Subscribe [4]
  • #1 / Jun 23, 2012 10:37am

    silverdart

    46 posts

    Hi

    I have just updated from EE 2.1.3 to 2.5.2 - it all went smoothly, Wizard completed successfully etc. Then I point to ‘site_url/system’ and get a blank - i.e. no CP login screen. I take down the offline index.html to see if the site is visible - but no, another blank screen.

    After browsing the forums, I adjusted the debug to ‘1’ in system/index.php, then try to access login screen again and I get:

    A PHP Error was encountered
    Severity: Warning
    Message: array_keys() [function.array-keys]: The first argument should be an array
    Filename: libraries/Menu.php
    Line Number: 221

    Fatal error: Call to undefined function hash_algos() in ...system/expressionengine/libraries/Auth.php on line 90

    Not sure how to proceed now and would be very grateful for advice as soon as anyone can provide it, as we are offline currently.

    Many thanks.

  • #2 / Jun 23, 2012 12:20pm

    Stephen Callender

    148 posts

    Check out this thread: http://ellislab.com/forums/viewthread/210939/

    Let us know how any of that helps (or not).

  • #3 / Jun 23, 2012 2:16pm

    silverdart

    46 posts

    Thanks for the reply.

    I checked out the thread - not sure if it really helps. I have another EE installation on the same VPS which has been running EE 2.1.3 for a while now and there are no problems there, so I don’t think there is anything wrong with the server setup - unless server requirements have changed between EE 2.1.3 and EE 2.5.2 (the server is running PHP 5.2.17 and MySQL database version 5.0.90). 

    Just in case, I did check the php.ini for timezone and it is set to UTC - which is correct, as we are in UK.

    Not sure if this is relevant, but I do have MSM installed with the updated site - I have updated the relevant files to latest MSM version, although I was unable to complete this:

    If you are using the Multiple Site Manager, the same should be done for each MSM site’s index.php and/or admin.php file.

    because I could not find these files for my second site on this installation - the index.php file only exists as a EE template, as far as I know.  Not sure if that matters or if it has anything to do with the above PHP error etc.

    Any further thoughts would be gratefully received. Thanks.

  • #4 / Jun 24, 2012 12:54pm

    silverdart

    46 posts

    I am now getting a different PHP error:

    A PHP Error was encountered

    Severity: Warning

    Message: require_once(/home/......system/expressionengine/fieldtypes/ft.file.php) [function.require-once]: failed to open stream: No such file or directory

    Filename: safecracker_file/ft.safecracker_file.php

    Line Number: 3

    Fatal error: require_once() [function.require]: Failed opening required ‘/home/.....system/expressionengine/fieldtypes/ft.file.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/......system/expressionengine/third_party/safecracker_file/ft.safecracker_file.php on line 3

    The above PHP error comes when trying to access the site via url (i.e. ‘site_url/index.php’). However there is at least one template group that I can view directly by URL, though only the group index page - when I try to navigate onwards, I get the PHP error above.

    I am still getting a white screen when trying to access CP login page via ‘site_url/system’.

    I would be very grateful for some advice on this. Many thanks.

  • #5 / Jun 24, 2012 1:10pm

    Stephen Callender

    148 posts

    If you’re not using SafeCracker right now, does deleting it from the third_party party do anything?
    http://ellislab.com/forums/viewthread/204087/

  • #6 / Jun 24, 2012 1:15pm

    Stephen Callender

    148 posts

    Have you located the files for your second site yet?

  • #7 / Jun 24, 2012 2:04pm

    silverdart

    46 posts

    Many thanks for the safecracker deletion suggestion. That worked - at least so that the site is now visible and appears to be displaying normally.

    However, I still cannot access the CP - still getting a white screen at ‘site_url/system’.

  • #8 / Jun 24, 2012 2:47pm

    silverdart

    46 posts

    Re the MSM point, the situation is more curious - and being a designer type rather than a developer, I am finding my very modest knowledge being sorely tested…

    Basically my VPS is based on URL1 - i.e. that was the name I selected with my host to get the VPS running - and it originally did not have an EE installation. I then decided to create a second site, URL2 with an EE installation - all fine and no MSM at that stage. Then I added MSM to the URL2 installation and added URL1 as a second website.

    It has worked fine. However, I do not recall placing index.php or admin.php files anywhere on the site a couple of years ago and indeed when I look for them now, I do not find them. There is a folder for URL1 which seems to be an alias. Part of the issue is that the server admin names for the two URLs are different, so the URL folders appear in different places on the server. I am now curious about all this as I now cannot see why it has worked, but it has indeed worked. And in fact, if I point to URL1 right now, it shows the correct index page - so it is still working.

    Looking at the MSM update instructions, I can see what files should be there but are currently not. Should I try to install those files now? Should I try and make the website admin names the same? Is this relevant to my white-screen problem?

    I would be v grateful for any further ideas - and apologies for being newbie-ish about all this. Thanks.

  • #9 / Jun 24, 2012 5:01pm

    Stephen Callender

    148 posts

    I would say do the following:
    1) Back up everything (database and files) again to mark where you are now
    2) Install the missing MSM files

    Then see where that brings you. But, you may need EE folks to help you from here if that doesn’t resolve anything.

  • #10 / Jun 25, 2012 4:45pm

    Shane Eckert

    7174 posts

    Hey silverdart,

    Where are things now? Did you get a chance to try Stephen’s last idea?

    Please let me know.

    Cheers,

  • #11 / Jun 27, 2012 6:21am

    silverdart

    46 posts

    Hi Shane

    I am v grateful to Stephen for his help, and sorry to be slow to update. Yes I did try putting the absent MSM files into place. No change in the CP access problem. Same PHP error as in my first post.

    With or without the MSM files in place, both sites on this installation are visible to the world and working normally, having resolved the safecracker issue earlier. It is now just a CP access problem. I notice that the URL tries v briefly to load the cp homepage (as if I am logged in) before instantly switching to login and a blank screen. Do you think the MSM setup is really the problem? Or is it something else?

    I would be v grateful for any further thoughts.  Many thanks.

  • #12 / Jun 28, 2012 3:28pm

    Shane Eckert

    7174 posts

    Hey silverdart,

    Let’s check your MSM settings and take a look at your login settings.

    For MSM, can you compare your configs with these examples?

    //CONFIG//
    $config['cp_url'] = "http://engine.dev/admin.php";
    $config['doc_url'] = "http://ellislab.com/expressionengine/user-guide/";
    $config['is_system_on'] = "y";
    $config['allow_extensions'] = "y";
    $config['site_label'] = "Test 23";
    $config['cookie_prefix'] = "";
    $config['multiple_sites_enabled'] = "y";
    
    index.php and admin.php site 1
    NO CHANGES
    
    index.php and admin.php site 2
    $system_path = '../system';
    /*---------------------------*/
    $assign_to_config['site_name']  = 'msm_test';
    $assign_to_config['cp_url'] = 'http://msm.dev/admin.php';
    $assign_to_config['site_url'] = 'http://msm.dev';
    
    --- admin ---
    $system_path = '../system';
    /*---------------------------*/
    $assign_to_config['site_name']  = 'msm_test';
    $assign_to_config['cp_url'] = 'http://msm.dev/admin.php';

    In your config file please add this:

    $config['cookie_domain'] = ''; 
    $config['cookie_path'] = '';
    $config['cookie_prefix'] = '';

    Cheers,

     

  • #13 / Jun 30, 2012 5:50am

    silverdart

    46 posts

    Hi Shane

    Many thanks for your help.  Below is my current setup. I hope it is clear.

    Please note that the site folders are in different locations - the paths are shown below.  The username1, which is the domain manager for domain1, is not the base admin user for the VPS - that is username 2, which is the domain manager for domain2.

    The paths to system from the index and admin files in domain2 look wrong. However I have tried all sorts of paths including ‘../system’, ‘/home/username1/www/domain1.com/system’ and variations of relative and absolute paths - always no result. And bear in mind that before I tried the upgrade to 2.5.2 from 2.1.3, I had no index or admin file whatsoever in the domain2 folder - but MSM worked fine and I had no CP access problem. I can’t explain it, but it’s true.

    Site 1 absolute path - /home/username1/www/domain1url
    
    admin.php
    $system_path = './system';
    Multiple Site Manager
    // $assign_to_config['site_name']  = 'domain2_short_name';
    // $assign_to_config['cp_url'] = 'http://domain2.com/admin.php';
    
    index.php
    $system_path = './system';
    Multiple Site Manager
    // $assign_to_config['site_name']  = 'domain2_short_name';
    // $assign_to_config['cp_url'] = 'http://domain2.com/admin.php';
    // $assign_to_config['site_url'] = 'http://domain2.com';
    
    _________________________________
    
    Site 2 absolute path - /home/username2/www/domain2url
    
    admin.php
    $system_path = './system';
    Multiple Site Manager
     $assign_to_config['site_name']  = 'domain2_short_name';
     $assign_to_config['cp_url'] = 'http://domain2.com/admin.php';
    
    index.php
    $system_path = './system';
    Multiple Site Manager
     $assign_to_config['site_name']  = 'domain2_short_name';
     $assign_to_config['cp_url'] = 'http://domain2.com/admin.php';
     $assign_to_config['site_url'] = 'http://domain2.com';
    
    _________________________________
    
    system/expressionengine/config/config.php
    
    $config['app_version'] = "252";
    $config['install_lock'] = '1';
    $config['license_number'] = "";
    $config['debug'] = "1";
    $config['cp_url'] = "http://www.domain1/admin.php";
    $config['doc_url'] = "http://ellislab.com/expressionengine/user-guide/";
    $config['is_system_on'] = "y";
    $config['manual_templates_move'] = 'y';
    $config['cookie_prefix'] = "";
    $config['allow_extensions'] = "y";
    $config['multiple_sites_enabled'] = "y";
    $config['sc_paypal_account'] = '';
    $config['sc_encrypt_buttons'] = 'n';
    $config['sc_certificate_id'] = '';
    $config['sc_public_certificate'] = '';
    $config['sc_private_key'] = '';
    $config['sc_paypal_certificate'] = '';
    $config['sc_temp_path'] = '/tmp';
    
    $config['cookie_domain'] = ''; 
    $config['cookie_path'] = '';
    $config['cookie_prefix'] = ''; 
    
    $config['forum_is_installed'] = "y";

    As mentioned before, on the above setup, when I point the browser at domain1/system, it tries briefly to load

    /index.php?S=0&D=cp&C=homepage

    before instantly switching to

    /index.php?S=0&D=cp&C=login

    - and a blank screen. But the sites are visible and working fine - it’s just a CP access problem.

    I would be very grateful for any further thoughts you or anyone else might have. I am sure it will be, as usual, a simple problem of something I have overlooked - but I can’t see it right now.

    Many thanks.

  • #14 / Jul 02, 2012 3:01pm

    Shane Eckert

    7174 posts

    Hey,

    Something is not quite right with your paths.

    ./system should be ../system. Other wise you are telling MSM to look in the same directory for a file and getting the wrong one.

    Can you double check your paths.

    I may need to login and take a look.

    Cheers,

  • #15 / Jul 12, 2012 2:15pm

    silverdart

    46 posts

    Hi Shane

    Sorry for delayed reply. I have tried every kind of path setting and the CP access problem is still there.

    I would be happy for you to login and see if you can identify the problem.

    Many thanks - let me know how to proceed with this.

     

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

ExpressionEngine News!

#eecms, #events, #releases