this is whats on line 68: unlink($file);
Any ideas how i can fix this?
Its filling up the error logs.
Everything seems to be set correctly in the config files after moving the storage folder so unsure what to do next?
Opencart Expert | voldemaras@gmail.com
Skype - programanija | Gtalk - voldemaras@gmail.com
Extensions for Opencart @ https://www.opencartextensions.eu / or Opencart Marketplace
Need Custom Module? debug third party module or simply have any question related to Opencart? feel free to contact directly for a live chat session:) - INSTANT LIVE CHAT
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Firstly, any ideas how to fix? and secondly is there a way to stop these messages showing to customers?
2018-01-05 14:00:33 - PHP Warning: unlink(/var/sites/f/website.co.uk/storage/cache/cache.catalog.language.1515164407): No such file or directory in /var/sites/f/website.co.uk/public_html/system/library/cache/file.php on line 44
Also:
2018-01-05 11:41:55 - PHP Warning: unlink(/var/sites/f/firesidefabrics.co.uk/storage/cache/cache.manufacturer.0.1515152492): No such file or directory in /var/sites/f/firesidefabrics.co.uk/public_html/system/library/cache/file.php on line 44
Error logs are absolutely full of these errors constantly repeating
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
error message that occasionally pops up in admin above that error is "syntax error: unexpected token < in JSON at position 0
OK
unlink(/var/sites/f/website.co.uk/storage/cache/cache.catalog.language.1515230665): No such file or directory in /var/sites/f/website.co.uk/public_html/system/library/cache/file.php on line 44
Where in the admin do you see this message and how?error message that occasionally pops up in admin above that error is "syntax error: unexpected token < in JSON at position 0
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
the php error however shows up all over the place in admin in various places such as editing products, adding products, viewing products on the main site all sorts. seems to be a continuous error with that particular file.php
Code: Select all
echo 'test123';
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /var/sites/f/website.co.uk/public_html/system/library/cache/file.php on line 3
removed that line you said and when i click on dashboard i got this error:
SyntaxError: JSON Parse error: Unrecognized token '<'
OK
<b>Warning</b>: unlink(/var/sites/f/website.co.uk/storage/cache/cache.manufacturer.0.1515346921): No such file or directory in <b>/var/sites/f/website.co.uk/public_html/system/library/cache/file.php</b> on line <b>44</b>{"ie":{"total":"1","amount":"\u00a374.00"},"gb":{"total":"10","amount":"\u00a397.04"}}
When you see the errors have you check that the file it's trying to delete is actually deleted?
For example in the last error message you posted.
Code: Select all
<b>Warning</b>: unlink(/var/sites/f/website.co.uk/storage/cache/cache.manufacturer.0.1515346921): No such file or directory in <b>/var/sites/f/website.co.uk/public_html/system/library/cache/file.php</b> on line <b>44</b>
Regarding the displaying of errors. It seems that version 3 has an seperate default error handler. To switch this off change $_['error_display'] to false in system\config\default.php or add
Code: Select all
$_['error_display'] = false;
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
if (file_exists($file)) {
unlink($file);
}
Code: Select all
if (is_file($file)) {
@unlink($file);
}
Warning: fopen(/var/sites/f/website.co.uk/storage/logs/): failed to open stream: Is a directory in /var/sites/f/website.co.uk/public_html/system/library/log.php on line 22
That appeared once and haven't been able to see it again.
Im getting loads of this unlink error though, every file it refers to doesn't even exist.
I don't really want to hide it from the logs as id be unsure if it was still happening then...
system/library/cache/file.php.
Code: Select all
if (file_exists($file)) {
unlink($file);
}
Code: Select all
clearstatcache(false, $file);
if (is_file($file)) {
unlink($file);
}
Users browsing this forum: No registered users and 327 guests