Page 1 of 1

PHP problem upgrading from OC 1.5.6 to 3.0.2.0

Posted: Thu Nov 08, 2018 8:53 pm
by Runecaster
Hello,

Because my domain provider doesn't support PHP below 7.1 at the end of this month (7.2 is the new standard at my domain provider), I chose for upgrading OC 1.5.6 to 3.0.2.0. There is an instruction how to do this. After upgrading I'm getting a few PHP errors which I can't seem to fix.

Warning: fopen(/customers/e/f/d/toveratelier.nl/system/storage/logs/openbay.log): failed to open stream: No such file or directory in /customers/e/f/d/toveratelier.nl/httpd.www/system/library/log.php on line 22
Warning: fopen(/customers/e/f/d/toveratelier.nl/system/storage/logs/openbay.log): failed to open stream: No such file or directory in /customers/e/f/d/toveratelier.nl/httpd.www/system/library/log.php on line 22
Warning: fclose() expects parameter 1 to be resource, boolean given in /customers/e/f/d/toveratelier.nl/httpd.www/system/library/log.php on line 39
Warning: fopen(/customers/e/f/d/toveratelier.nl/system/storage/logs/error.log): failed to open stream: No such file or directory in /customers/e/f/d/toveratelier.nl/httpd.www/system/library/log.php on line 22
Warning: include_once(/customers/e/f/d/toveratelier.nl/system/storage/vendor/scss.inc.php): failed to open stream: No such file or directory in /customers/e/f/d/toveratelier.nl/httpd.www/admin/controller/startup/sass.php on line 7
Warning: include_once(): Failed opening '/customers/e/f/d/toveratelier.nl/system/storage/vendor/scss.inc.php' for inclusion (include_path='.:/usr/share/php') in /customers/e/f/d/toveratelier.nl/httpd.www/admin/controller/startup/sass.php on line 7


I checked the paths and files and they excist. I checked permissions on 755 or 777 and I added the following lines (at first only the first line and later on the second line) to my config.php and admin/config.php files (I blanked the domain address).

define('DIR_STORAGE', 'DOMAIN NAME/system/storage/');
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');


Anybody has a clue? Thanks in advance.

Re: PHP problem upgrading from OC 1.5.6 to 3.0.2.0

Posted: Thu Nov 08, 2018 10:34 pm
by ADD Creative
Have you tried just the following if you storage directory is located at '/customers/e/f/d/toveratelier.nl/storage'?

Code: Select all

define('DIR_STORAGE', '/customers/e/f/d/toveratelier.nl/storage/');

Re: PHP problem upgrading from OC 1.5.6 to 3.0.2.0

Posted: Sat Nov 10, 2018 9:00 pm
by Runecaster
Thanks for the suggestion, but the define line allready has that address.

Re: PHP problem upgrading from OC 1.5.6 to 3.0.2.0

Posted: Sun Nov 11, 2018 1:08 am
by ADD Creative
Runecaster wrote:
Thu Nov 08, 2018 8:53 pm
Warning: fopen(/customers/e/f/d/toveratelier.nl/system/storage/logs/openbay.log): failed to open stream: No such file or directory in /customers/e/f/d/toveratelier.nl/httpd.www/system/library/log.php on line 22
It's just your post above referred to "/customers/e/f/d/toveratelier.nl/system/storage" not "/customers/e/f/d/toveratelier.nl/storage". If you used the storage directory move, it would not include the system directory.

Re: PHP problem upgrading from OC 1.5.6 to 3.0.2.0

Posted: Fri Nov 23, 2018 11:10 pm
by Runecaster
Thank you, I checked all the lines, altered a few and it's working. Thanks!