Page 1 of 1

php upgrade

Posted: Mon Dec 11, 2006 11:30 am
by cbrenchley
I have a server that I can only have access to php 5.0 . Is there a work around to be able to get TimeTrex to work with php 5.0?

Re: php upgrade

Posted: Mon Dec 11, 2006 1:10 pm
by shaunw
cbrenchley wrote:I have a server that I can only have access to php 5.0 . Is there a work around to be able to get TimeTrex to work with php 5.0?
TimeTrex should run on PHP v5.0.X for the most part. We have received reports stating that older versions of the v5.0.X branch have bugs that cause TimeTrex to break though.

We always recommend you use the latest possible version of PHP, v5.0.6 should run fine.

Posted: Mon Dec 11, 2006 4:43 pm
by cbrenchley
This is what I'm getting on a plesk server running Fedora with php 5.0 on the Requirments.php page.

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/DateTime.class.php on line 97

Warning: main() [function.main]: open_basedir restriction in effect. File(/Cache.inc.php) is not within the allowed path(s): (/var/www/vhosts/webconnexions.org/httpdocs:/tmp) in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170

Warning: main(Cache.inc.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170

Fatal error: main() [function.require]: Failed opening required 'Cache.inc.php' (include_path='/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/core:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/company:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/users:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/punch:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/schedule:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/department:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/help:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/client:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/ in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170

Posted: Mon Dec 11, 2006 4:46 pm
by cbrenchley
This is what I'm getting on a plesk server running Fedora with php 5.0 on the Requirments.php page.

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /var/www/vhosts/MYDomain.org/httpdocs/admin/time/classes/modules/core/DateTime.class.php on line 97

Warning: main() [function.main]: open_basedir restriction in effect. File(/Cache.inc.php) is not within the allowed path(s): (/var/www/vhosts/MYDomain.org/httpdocs:/tmp) in /var/www/vhosts/MYDomain.org/httpdocs/admin/time/includes/global.inc.php on line 170

Warning: main(Cache.inc.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/MYDomain.org/httpdocs/admin/time/includes/global.inc.php on line 170

Fatal error: main() [function.require]: Failed opening required 'Cache.inc.php' (include_path='/var/www/vhosts/MYDomain.org/httpdocs/admin/time/classes/modules/core/. in /var/www/vhosts/MYDomain.org/httpdocs/admin/time/includes/global.inc.php on line 170

Posted: Mon Dec 11, 2006 4:56 pm
by shaunw
Disable safe_mode in your php.ini file.

Fixed part of it

Posted: Mon Dec 11, 2006 5:08 pm
by cbrenchley
I turned off safe mode and it got ride of the first warning:

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /var/www/vhosts/MYDomain.org/httpdocs/admin/time/classes/modules/core/DateTime.class.php on line 97

The others are still there.

Re: Fixed part of it

Posted: Mon Dec 11, 2006 6:30 pm
by shaunw
cbrenchley wrote:I turned off safe mode and it got ride of the first warning:

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /var/www/vhosts/MYDomain.org/httpdocs/admin/time/classes/modules/core/DateTime.class.php on line 97

The others are still there.
"Safe Mode warning" tells you that Safe Mode must still be on, or at least partially.

Wait!!!

Posted: Mon Dec 11, 2006 6:34 pm
by cbrenchley
You must have missunderstood what I said. I have no more Safe-mode errors, Here is what I get now.

Warning: main() [function.main]: open_basedir restriction in effect. File(/Cache.inc.php) is not within the allowed path(s): (/var/www/vhosts/webconnexions.org/httpdocs:/tmp) in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170

Warning: main(Cache.inc.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170

Fatal error: main() [function.require]: Failed opening required 'Cache.inc.php' (include_path='/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/core:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/company:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/users:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/punch:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/schedule:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/department:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/help:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/client:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/ in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170

Re: Wait!!!

Posted: Mon Dec 11, 2006 7:27 pm
by shaunw
cbrenchley wrote:You must have missunderstood what I said. I have no more Safe-mode errors, Here is what I get now.

Warning: main() [function.main]: open_basedir restriction in effect. File(/Cache.inc.php) is not within the allowed path(s): (/var/www/vhosts/webconnexions.org/httpdocs:/tmp) in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170

Warning: main(Cache.inc.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170

Fatal error: main() [function.require]: Failed opening required 'Cache.inc.php' (include_path='/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/core:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/company:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/users:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/punch:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/schedule:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/department:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/help:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/classes/modules/core/../../../classes/modules/client:/var/www/vhosts/webconnexions.org/httpdocs/admin/time/ in /var/www/vhosts/webconnexions.org/httpdocs/admin/time/includes/global.inc.php on line 170
Your PHP.INI file is much too restrictive. Try disabling open_basedir in it.