Post by quango » Mon Sep 14, 2009 6:11 am

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

New member

Posts

Joined
Fri Aug 21, 2009 10:36 pm

Post by Qphoria » Mon Sep 14, 2009 6:18 am

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.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by quango » Mon Sep 14, 2009 7:37 pm

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?

New member

Posts

Joined
Fri Aug 21, 2009 10:36 pm

Post by quango » Tue Sep 15, 2009 6:02 am

Ok,

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

Happy days

New member

Posts

Joined
Fri Aug 21, 2009 10:36 pm
Who is online

Users browsing this forum: No registered users and 125 guests