Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Ошибка после воссиновления бэкапа


evolka
 Share

Recommended Posts

Воссинавливал сайт из бэкапа при захогде на сайт полулил многократуню ошибку ошибку Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/sadovod/web/сайт.ру/public_html/system/library/log.php on line 10

Нашёл исправление ошибки - параметр a заменить на r

<?php
class Log {
	private $handle;

	public function __construct($filename) {
		$this->handle = fopen(DIR_LOGS . $filename, 'r'); <----------вот этот параметр
	}

	public function write($message) {
		fwrite($this->handle, date('Y-m-d G:i:s') . ' - ' . print_r($message, true) . "\n");
	}

	public function __destruct() {
		fclose($this->handle);
	}
}

Всё бы хорошо, но я ж подумал, раз у меня всё рилиило с "а" зачем я буду менять на "r". Начал я сивить бэкапы откатывая назад, докатился до годовалых бэкапов и в них была эи ошибка. Раз раньше всё рилиило с "a" зналит, что то произошло с сервером думаю я.

Кто ни будь силкивался с  икой проблемой, возможно, что это проблема с сервером?

Link to comment
Share on other sites


Немного лога ошипотому чток:

2018-01-25 3:30:58 - PHP Warning:  file_get_contents(/home/sadovod/web/site.ru/public_html/admin/view/template/report/adv_products_profit.tpl): failed to open stream: Permission denied in /home/sadovod/web/site.ru/public_html/admin/controller/extension/modification.php on line 195
2018-01-25 3:31:05 - PHP Warning:  include_once(/home/sadovod/web/site.ru/public_html/admin/controller/report/adv_products_profit.php): failed to open stream: Permission denied in /home/sadovod/web/site.ru/public_html/vqmod/vqcache/vq2-system_storage_modification_system_engine_action.php on line 39
2018-01-25 3:31:05 - PHP Warning:  include_once(): Failed opening '/home/sadovod/web/site.ru/public_html/admin/controller/report/adv_products_profit.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/sadovod/web/site.ru/public_html/vqmod/vqcache/vq2-system_storage_modification_system_engine_action.php on line 39
2018-01-25 3:32:00 - PHP Warning:  include_once(/home/sadovod/web/site.ru/public_html/admin/controller/report/adv_products_profit.php): failed to open stream: Permission denied in /home/sadovod/web/site.ru/public_html/vqmod/vqcache/vq2-system_storage_modification_system_engine_action.php on line 39
2018-01-25 3:32:00 - PHP Warning:  include_once(): Failed opening '/home/sadovod/web/site.ru/public_html/admin/controller/report/adv_products_profit.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/sadovod/web/site.ru/public_html/vqmod/vqcache/vq2-system_storage_modification_system_engine_action.php on line 39
2018-01-25 3:34:18 - PHP Warning:  sha1_file(/home/sadovod/web/site.ru/public_html/admin/controller/report/adv_products_profit.php): failed to open stream: Permission denied in /home/sadovod/web/site.ru/public_html/vqmod/vqmod.php on line 133
2018-01-25 3:34:18 - PHP Warning:  file_get_contents(/home/sadovod/web/site.ru/public_html/admin/controller/report/adv_products_profit.php): failed to open stream: Permission denied in /home/sadovod/web/site.ru/public_html/vqmod/vqmod.php on line 134
2018-01-25 3:37:09 - PHP Warning:  file_get_contents(/home/sadovod/web/site.ru/public_html/admin/view/template/report/adv_products_profit.tpl): failed to open stream: Permission denied in /home/sadovod/web/site.ru/public_html/admin/controller/extension/modification.php on line 195
2018-01-25 3:39:08 - PHP Warning:  file_get_contents(/home/sadovod/web/site.ru/public_html/admin/view/template/report/adv_products_profit.tpl): failed to open stream: Permission denied in /home/sadovod/web/site.ru/public_html/admin/controller/extension/modification.php on line 195

 

Link to comment
Share on other sites


При олистке лога ошипотому чток получаю сообещёние Вы успешно олистили журнал ошипотому чток! но лог не олиещён.

При усиновке дополнений получаю сообещёние Не удается найти файл!

Edited by evolka
Link to comment
Share on other sites


2 hours ago, Strelez said:

Похожая тема

И проверьте права на папки и файлы.

Спасипотому что, ссылка на топик не дала информации для исправления проблемы.

 

На /home/sadovod/web/сайт.ру/public_html/system/library/log.php  стоят права 777 резульии ни какого.

 

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.