Results 1 to 3 of 3

 

Thread: Hosts have updated PHP - sites not working

  1. #1
    Registered User

    Status
    Offline
    Join Date
    May 2008
    Posts
    147
    Thanks
    9
    Thanked 19 Times in 19 Posts


    Hi all - long time no visit!

    The night before last my hosting company updated the version of PhP and ever since some of our sites have been displaying the following error messages:

    Deprecated: Assigning the return value of new by reference is deprecated in /home/djkxndjo/public_html/mysite.com/wp-includes/cache.php

    Other sites are simply showing a white screen.

    In either case we are not able to access the Wordpress admin tool.

    The advise from my hosts was to update Wordpress using Fantastico - but this hasn't worked in all cases.

    The 2nd piece of advice was:
    You need to edit 2 php files,

    root/wp-settings.php

    search this code

    if (defined(’WP_DEBUG’) and WP_DEBUG == true) {
    error_reporting(E_ALL);
    } else {
    error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
    }

    Replace with

    if (defined(’WP_DEBUG’) and WP_DEBUG == true) {
    error_reporting(E_ALL);
    } else {
    error_reporting(0);
    }

    now 2nd file

    root/wp-config.php

    may sure keep a back of this file before make any change, it can stop working your entire website

    just add this code at top of this file

    error_reporting(0);

    This doesn't work in all cases either.

    So I'm turning to our affiliate community. Does anyone have any suggestions as to where we go from here?

    Annoyed of SE London doesn't quite express it
    Karen

  2. #2
    Registered User

    Status
    Offline
    Join Date
    May 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Your best bet is to get that Wordpress upgrade working, so it will be compatible with the new version of PHP. I'm not sure what kind of code you were running anyway that was causing the problem.


    GoWorkIt | Work Instantly

  3. #3
    curiouser and curiouser

    Status
    Offline
    Join Date
    Sep 2003
    Location
    uk
    Posts
    659
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Add this to the top of your wp-config.php file, right after the first <?php line:
    error_reporting(0);

    hope it helps found it here
    WordPress › Support

    andy



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2