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.

Template Manager using wrong version of PHP....

March 12, 2011 9:39pm

Subscribe [2]
  • #1 / Mar 12, 2011 9:39pm

    Kurt Deutscher

    827 posts

    This is a first for me.

    You can drop a phpinfo scrip into any actual directory in the hosting account, and it “sees” php5.x

    But… run the phpinfo within EE’s template manager, and it sees php4.

    This is on an older CPanel server that has 2 versions of php installed. There is a .htaccess file that is telling this specific host account to use php5 and if I check in Utilities > PHP Info, it correctly shows PHP Version 5.2.17.

    We’ve got scripts within EE’s templates that need php5 to work and since they are seeing 4.x they are tossing errors. One of them is FreeForm, but I really, really think this is an EE issue because phpinfo should see php5 from the template manager.

    Is there some override I need to add to the config file to set the php version or something?

    I’m stumped.

  • #2 / Mar 14, 2011 2:08am

    John Henry Donovan

    12339 posts

    Kuert,

    How is PHP set up on your server?
    Can you give us any more details on your environment please?
    Where do you tell your server to use PHP5 over PHP5? In the control panel or in a config file?

  • #3 / Mar 14, 2011 1:47pm

    Kurt Deutscher

    827 posts

    Hi John,

    We set php5 in the .htaccess file, and that seems to work for most of EE, but when we put the phpinfo into a template, we did a double-take when php4 info came up.

    This was an empty template too, nothing in it. SolSpace “bridges” is installed, but I sort of think this is some very strange situation where EE is somehow not finding php5.

    We’re moving the site as I write this to a newer server to get this site back up and running.

    This just baffled me, and a few others, and I wondered if anyone in the community has run into this and what the cause was/is?

  • #4 / Mar 15, 2011 5:39am

    John Henry Donovan

    12339 posts

    Kurt,

    Did your host have any comment on this?

    Can you do a test please? Create a phpinfo file and add that to the root. Confirm it pulls back PHP5. Now move the same phpinfo file into your system folder and hit that in your browser. Does it also say PHP5?

    Not overly familiar with setting PHP version via htaccess but would recreating the htaccess in the system folder help?

  • #5 / Mar 15, 2011 1:07pm

    Kurt Deutscher

    827 posts

    Hi John,

    We did those tests, and put phpinfo files all over the place trying to track down what was happening and the only place that showed php4 was when the phpinfo was called from within EE’s template manager. It was one of the stranger things I’ve run into.

    The site is doing just fine on the new host server. It was a 1.7.0 site if that helps any.

    If I get a chance today, I’ll poke around a little more and see (with fresher eyes) if I can spot what was up.

  • #6 / Mar 16, 2011 7:44am

    John Henry Donovan

    12339 posts

    Kurt,

    I ping the devs on this one to see if they can shine any light on it

  • #7 / Mar 22, 2011 3:25am

    John Henry Donovan

    12339 posts

    Kurt,

    was your system folder above the webroot?

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

ExpressionEngine News!

#eecms, #events, #releases