L
L
londhor2017-07-31 14:17:05
PHP
londhor, 2017-07-31 14:17:05

How to fix error after migrating site to opencart?

Haven't worked with OpenCart before.
The site needed to be moved.
All transferred, connected. The site is working, but when you enter the admin panel, the following errors appear on the login page:
In the header:

Warning: fclose() expects parameter 1 to be resource, boolean given in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 14
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 10
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 14
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 10

And in the footer:
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 14
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 10
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 14
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 10

And also after authorization:
Warning: fopen(/home/ll270511/e-mania.com.ua/www/system/logs/openbay.log): failed to open stream: No such file or directory in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 6

Warning: fopen(/home/ll270511/e-mania.com.ua/www/system/logs/error.log): failed to open stream: No such file or directory in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at /home/ll270511/e-mania.com.ua/www/system/library/log.php:6) in /home/ll270511/e-mania.com.ua/www/system/library/response.php on line 12
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 10
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 14
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 10
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 14
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/ll270511/e-mania.com.ua/www/system/library/log.php on line 10

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
londhor, 2017-08-03
@londhor

I ended up correcting the error myself. Alas, none of the tips helped.
The problem was the missing log files. For some reason, they did not transfer to the server. I had to create the files manually.
If you have the same problem - I advise you to check the paths.

P
Pavel, 2017-07-31
@PavelMonro

Check permissions on files and folders.
It is also worth adding a line to .htaccess:
Or fix php.ini

Y
Yhak, 2017-07-31
@Yhak

Here is the
forum.opencart-russia.ru/threads/oshibka-system-li...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question