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.

Problems after upgrading PHP from 4.4 to 5.2

August 18, 2010 5:56pm

Subscribe [4]
  • #1 / Aug 18, 2010 5:56pm

    I wanted to install Solspace’s Tag module for a site I’m working on.

    I was not able to install it, I would get a white page on the control panel with an error message. After doing some searching I found the solution was to upgrade from PHP 4.4 to PHP 5 which solved that problem.

    I installed the module and started working on setting up the new tagging system to discover my entries are no longer showing up as they were previously. On some weblog pages the entries are not showing up at all even though they still show up in the Control Panel. On other pages the list of short versions works just fine, but when you click the read more the full entry is missing. The pages themselves work, but none of the content is appearing.

    The code in the templates hasn’t been touched. This only seems to be effecting weblog with categories associated to them.

    I uninstalled the Solspace Tag module to see if that was causing the problem and the entries still don’t display. I don’t know if it’s because of the change in PHP or something to do with the Solspace Tag module. I’m also posting this same message at the Solspace forums.

  • #2 / Aug 19, 2010 3:57am

    John Henry Donovan

    12339 posts

    gofreshdesign,

    What version and build of EE are you running?
    Leave the Tag module uninstalled for now as we cannnot support third-party modules.
    Do you have any extensions installed?

  • #3 / Aug 19, 2010 10:32am

    I am using EE 1.6.9

    I do have other extensions installed but everything was fine prior to upgrading to PHP. As I’m still having the problem with entries not appearing on my pages after uninstalling Tag I imagine it has more to do with the PHP upgrade than Tag Module.

    I also have the following Plugins installed: LogMeIN and Image Sizer. I have the following Extensions: File and Required Categories. But again, everything was fine with the site until the PHP upgrade and Tag installation.

  • #4 / Aug 19, 2010 7:15pm

    Ok, so I downgraded back to PHP4 and that was indeed to cause of my problems. My client is hosting with PHPwebhosting and while I don’t love it, that’s what I’m stuck with using for this project. These are the options for PHP:

    Choose your php version :

    php 4.x.x mod_php (scripts run as user nobody)

      *

        This option will run php through the mod_php apache module. This option runs scripts the fastest (and is the way most hosts run php) but it is not the safest method. Running php through mod_php creates files owned by the username “nobody” which you will need help from a staff member to delete. We do not recommend you run php with this option. We may remove this option in the future.

    All of the options below will run php as your username. Your scripts will not need to be world-readable and files owned by username nobody will never be created. We highly recommend you run your scripts with one of these options.

    php 4.4.x

    php 5.2.x

    php 5.3.x

    The php 4.x.x mod_php is the one that works. Is there something other than switching to Php 5 through the hosting control panel that I need to be doing with EE when upgrading the PHP?

  • #5 / Aug 20, 2010 2:02pm

    Ingmar

    29245 posts

    Yes, this sounds like a server configuration issue. I would definitely suggest mod_php if you have the option.

    Is there something other than switching to Php 5 through the hosting control panel that I need to be doing with EE when upgrading the PHP?

    Not as such, no, not that we know. If you want to troubleshoot this further turn on error reporting or check PHP’s error logs to see where your pages fail.

  • #6 / Aug 20, 2010 2:26pm

    I don’t know how to check PHP error logs.

    However mod_php is only available with PHP4 with this host.

  • #7 / Aug 20, 2010 4:47pm

    I had submitted a support ticket with the host as well, though they were less than helpful. The suggest moving the site to a different folder which isn’t helpful, as the site is essentially in it’s own folder. In case this info is pertinent, here is what they had to say:

    Hi,

    It is possible that your old code relies on php4 features that are no longer supported in php5.

    I would recommend you put the new site into it\‘s own folder and then use a .htaccess file to turn php5 on for just that folder. You can use code like:

    AddHandler custom-php .php .pcgi
    Action custom-php /cgi-sys/php5

    inside the .htaccess file to force that folder to run as php5 while the rest runs as mod_php.

    Another option would be to open a new account to work on the new site and then when ready we can switch it all over. It would cost you and extra $9.95 for a month or so (however long it takes you to update) but would be the quickest option. You could park another domain or use a username.phpwebhosting.com subdomain on the new account until the switch over.

    Let me know if you need more help.

    Best regards,

    Jack

    P.S. I would also be careful with your database. If the new code updates the database in a way the old code does not expect it could cause problems.

  • #8 / Aug 22, 2010 1:53pm

    Greg Salt

    3988 posts

    Hi gofreshdesign,

    Is your site working properly now with the PHP4 configuration you have in place? Your hosts should be able to help you with getting access to the error logs.

    Cheers

    Greg

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

ExpressionEngine News!

#eecms, #events, #releases