Post by Matty » Wed Dec 14, 2011 2:23 pm

Hi all,

My site is working fine on my local machine with XAMPP.

When I FTP it to the live server and hit the homepage I get 150 lines of PHP errors (followed by store homepage as it should appear).

Here are the first 50 lines...

Code: Select all

Warning: unlink(/home/username/www/store/system/cache/cache.currency.1323782803) [function.unlink]: Permission denied in /home/username/public_html/store/system/library/cache.php on line 14
Warning: fopen(/home/username/www/store/system/logs/error.txt) [function.fopen]: failed to open stream: Permission denied in /home/username/public_html/store/system/library/log.php on line 12

Warning: fwrite(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 14

Warning: fclose(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 16
Warning: unlink(/home/username/www/store/system/cache/cache.language.1323782803) [function.unlink]: Permission denied in /home/username/public_html/store/system/library/cache.php on line 14
Warning: fopen(/home/username/www/store/system/logs/error.txt) [function.fopen]: failed to open stream: Permission denied in /home/username/public_html/store/system/library/log.php on line 12

Warning: fwrite(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 14

Warning: fclose(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 16
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/username/public_html/store/index.php:100) in /home/username/public_html/store/system/library/session.php on line 11
Warning: fopen(/home/username/www/store/system/logs/error.txt) [function.fopen]: failed to open stream: Permission denied in /home/username/public_html/store/system/library/log.php on line 12

Warning: fwrite(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 14

Warning: fclose(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 16
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/username/public_html/store/index.php:100) in /home/username/public_html/store/system/library/session.php on line 11
Warning: fopen(/home/username/www/store/system/logs/error.txt) [function.fopen]: failed to open stream: Permission denied in /home/username/public_html/store/system/library/log.php on line 12

Warning: fwrite(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 14

Warning: fclose(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 16
Warning: imagepng() [function.imagepng]: Unable to open '/home/username/www/store/image/cache/data/banners/banner1-765x100.png' for writing: Permission denied in /home/username/public_html/store/system/library/image.php on line 46
Warning: fopen(/home/username/www/store/system/logs/error.txt) [function.fopen]: failed to open stream: Permission denied in /home/username/public_html/store/system/library/log.php on line 12

Warning: fwrite(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 14

Warning: fclose(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 16
Warning: imagepng() [function.imagepng]: Unable to open '/home/username/www/store/image/cache/data/banners/banner5-765x100.png' for writing: Permission denied in /home/username/public_html/store/system/library/image.php on line 46
Warning: fopen(/home/username/www/store/system/logs/error.txt) [function.fopen]: failed to open stream: Permission denied in /home/username/public_html/store/system/library/log.php on line 12

Warning: fwrite(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 14

Warning: fclose(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 16
Warning: imagepng() [function.imagepng]: Unable to open '/home/username/www/store/image/cache/data/banners/banner3-765x100.png' for writing: Permission denied in /home/username/public_html/store/system/library/image.php on line 46
Warning: fopen(/home/username/www/store/system/logs/error.txt) [function.fopen]: failed to open stream: Permission denied in /home/username/public_html/store/system/library/log.php on line 12

Warning: fwrite(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 14

Warning: fclose(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 16
Warning: imagepng() [function.imagepng]: Unable to open '/home/username/www/store/image/cache/data/banners/banner9-765x100.png' for writing: Permission denied in /home/username/public_html/store/system/library/image.php on line 46
Warning: fopen(/home/username/www/store/system/logs/error.txt) [function.fopen]: failed to open stream: Permission denied in /home/username/public_html/store/system/library/log.php on line 12

Warning: fwrite(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 14

Warning: fclose(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 16
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/home/username/www/store/image/cache/data/O1023-90x90.jpg' for writing: Permission denied in /home/username/public_html/store/system/library/image.php on line 44
Warning: fopen(/home/username/www/store/system/logs/error.txt) [function.fopen]: failed to open stream: Permission denied in /home/username/public_html/store/system/library/log.php on line 12
Can anyone please tell me what would cause this to happen what I can do to fix it?

Any help greatly appreciated! :)

Thanks
Matt

New member

Posts

Joined
Fri Feb 05, 2010 5:56 pm

Post by fido-x » Wed Dec 14, 2011 2:36 pm

Clear your cache folders (system/cache, image/cache, vqmod/vqcache) and your old log files (system/logs/error.txt, vqmod/vqmod.log). You have stale files in there that were created in your XAMPP setup and transferred when you uploaded to your live server. Because the server user does not own these files, it can't delete and replace them or update them.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by martinsstuart92 » Wed Dec 14, 2011 3:26 pm

Looks like you don't have permission to the folder/files you are operating on.

Local installation from AMPPS(http://www.ampps.com) wasn't really a problem for me too. I did not get any errors while ftping :)


Posts

Joined
Tue Dec 06, 2011 2:27 pm

Post by Matty » Wed Dec 14, 2011 7:50 pm

fido-x wrote:Clear your cache folders (system/cache, image/cache, vqmod/vqcache) and your old log files (system/logs/error.txt, vqmod/vqmod.log). You have stale files in there that were created in your XAMPP setup and transferred when you uploaded to your live server. Because the server user does not own these files, it can't delete and replace them or update them.
Thanks for the suggestion Fido. I tried this and now I have 162 error lines and no images on the page.
Warning: mkdir() [function.mkdir]: Permission denied in /home/username/public_html/store/catalog/model/tool/image.php on line 23
Warning: mkdir() [function.mkdir]: No such file or directory in /home/username/public_html/store/catalog/model/tool/image.php on line 23
Warning: imagepng() [function.imagepng]: Unable to open '/home/username/www/store/image/cache/data/banners/facebook-banner-765x100.png' for writing: No such file or directory in /home/username/public_html/store/system/library/image.php on line 46
Warning: fopen(/home/username/www/store/system/logs/error.txt) [function.fopen]: failed to open stream: Permission denied in /home/username/public_html/store/system/library/log.php on line 12
Warning: fwrite(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 14
Warning: fclose(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 16
Warning: mkdir() [function.mkdir]: Permission denied in /home/username/public_html/store/catalog/model/tool/image.php on line 23
Warning: mkdir() [function.mkdir]: No such file or directory in /home/username/public_html/store/catalog/model/tool/image.php on line 23
Warning: imagepng() [function.imagepng]: Unable to open '/home/username/www/store/image/cache/data/banners/qs-wetsuits-765x100.png' for writing: No such file or directory in /home/username/public_html/store/system/library/image.php on line 46
Warning: fopen(/home/username/www/store/system/logs/error.txt) [function.fopen]: failed to open stream: Permission denied in /home/username/public_html/store/system/library/log.php on line 12
Warning: fwrite(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 14
Warning: fclose(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 16
Warning: mkdir() [function.mkdir]: Permission denied in /home/username/public_html/store/catalog/model/tool/image.php on line 23
Warning: mkdir() [function.mkdir]: No such file or directory in /home/username/public_html/store/catalog/model/tool/image.php on line 23
Warning: imagepng() [function.imagepng]: Unable to open '/home/username/www/store/image/cache/data/banners/rc-cortez-765x100.png' for writing: No such file or directory in /home/username/public_html/store/system/library/image.php on line 46
Warning: fopen(/home/username/www/store/system/logs/error.txt) [function.fopen]: failed to open stream: Permission denied in /home/username/public_html/store/system/library/log.php on line 12
Warning: fwrite(): supplied argument is not a valid stream resource in /home/username/public_html/store/system/library/log.php on line 14 ... ... ... ...
This is really odd... I've transferred the site from local to remote locations plenty of times and never seen this :(

Is there anything else I should try to fix the problem?

Thanks
Matt

New member

Posts

Joined
Fri Feb 05, 2010 5:56 pm
Who is online

Users browsing this forum: No registered users and 8 guests