Page 1 of 1

PHP 5.3 Upgrade issues

Posted: Mon Sep 14, 2009 6:11 am
by quango
PHP 5.2.7 on my server has just been upgraded to PHP 5.3

Since the upgrade here is the error i get:

Code: Select all

PHP Warning:  fopen(C:\domains\viewtheshop.co.uk\wwwroot\shop/system/logs/error.txt): failed to open stream: Permission denied in C:\domains\viewtheshop.co.uk\wwwroot\shop\system\library\logger.php on line 12
PHP Warning:  fwrite() expects parameter 1 to be resource, boolean given in C:\domains\viewtheshop.co.uk\wwwroot\shop\system\library\logger.php on line 14
PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in C:\domains\viewtheshop.co.uk\wwwroot\shop\system\library\logger.php on line 16
PHP Warning:  fopen(C:\domains\viewtheshop.co.uk\wwwroot\shop/system/logs/error.txt): failed to open stream: Permission denied in C:\domains\viewtheshop.co.uk\wwwroot\shop\system\library\logger.php on line 12
PHP Warning:  fwrite() expects parameter 1 to be resource, boolean given in C:\domains\viewtheshop.co.uk\wwwroot\shop\system\library\logger.php on line 14
PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in C:\domains\viewtheshop.co.uk\wwwroot\shop\system\library\logger.php on line 16
PHP Warning:  fopen(C:\domains\viewtheshop.co.uk\wwwroot\shop/system/logs/error.txt): failed to open stream: Permission denied in C:\domains\viewtheshop.co.uk\wwwroot\shop\system\library\logger.php on line 12
PHP Warning:  fwrite() expects parameter 1 to be resource, boolean given in C:\domains\viewtheshop.co.uk\wwwroot\shop\system\library\logger.php on line 14
PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in C:\domains\viewtheshop.co.uk\wwwroot\shop\system\library\logger.php on line 16
Can anybody shed any light on this matter?

Clean install- was working near perfectly before the upgrade

Many thanks

Re: PHP 5.3 Upgrade issues

Posted: Mon Sep 14, 2009 6:18 am
by Qphoria
Looks like your host disabled fopen and write access to your local drive.

Have them reenable it or try adding

Code: Select all

allow_url_fopen = On;
to your php.ini file in the root

Or try adding:

Code: Select all

php_flag allow_url_fopen on
to your .htaccess file

That might only work for urls but try it.

Re: PHP 5.3 Upgrade issues

Posted: Mon Sep 14, 2009 7:37 pm
by quango
Ok the settings were correct at the administrators end.

It turned out the problem was (after a server reset) the permissions had been changed. Making them writable sorted it but I am now left with this error at the top of all my pages:

Warning: unlink(C:\domains\viewtheshop.co.uk\wwwroot\shop/system/cache/cache.language.1252440142): Permission denied in C:\domains\viewtheshop.co.uk\wwwroot\shop\system\library\cache.php on line 13Warning: unlink(C:\domains\viewtheshop.co.uk\wwwroot\shop/system/cache/cache.manufacturer.1252440143): Permission denied in C:\domains\viewtheshop.co.uk\wwwroot\shop\system\library\cache.php on line 13Warning: unlink(C:\domains\viewtheshop.co.uk\wwwroot\shop/system/cache/cache.product.latest.1.12.1252440138): Permission denied in C:\domains\viewtheshop.co.uk\wwwroot\shop\system\library\cache.php on line 13

Any ideas now?

Re: PHP 5.3 Upgrade issues

Posted: Tue Sep 15, 2009 6:02 am
by quango
Ok,

I cleared the opencart cache folder (/system/cache) which sorted it.

Happy days