Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Sign Up

Всплывающее окно "Важное сообщение безопасности!"


Recommended Posts

Подскажите как убрать
при переносе кнопкой у меня всё посыпалось
 

Warning: fopen(/h/storage/logs/openbay.log): failed to open stream: No such file or directory in /h/domain/htdocs/system/library/log.php on line 22Warning: fopen(/h/storage/logs/openbay.log): failed to open stream: No such file or directory in /h/domain/htdocs/system/library/log.php on line 22Warning: fclose() expects parameter 1 to be resource, boolean given in /h/domain/htdocs/system/library/log.php on line 39Warning: fopen(/h/storage/logs/error.log): failed to open stream: No such file or directory in /h/domain/htdocs/system/library/log.php on line 22

 

Link to post
Share on other sites

есть
 

<?php
/**
 * @package		OpenCart
 * @author		Daniel Kerr
 * @copyright	Copyright (c) 2005 - 2017, OpenCart, Ltd. (https://www.opencart.com/)
 * @license		https://opensource.org/licenses/GPL-3.0
 * @link		https://www.opencart.com
*/

/**
* Log class
*/
class Log {
	private $handle;
	
	/**
	 * Constructor
	 *
	 * @param	string	$filename
 	*/
	public function __construct($filename) {
		$this->handle = fopen(DIR_LOGS . $filename, 'a');
	}
	
	/**
     * 
     *
     * @param	string	$message
     */
	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);
	}
}

 

Link to post
Share on other sites

проверить наличие и права на файлы

storage/logs/openbay.log

storage/logs/error.log

 

+ права на саму папку storage/logs/

+ смотреть что в самих конфигах прописано

 

ну и непонятно что за перенос кнопкой

18 часов назад, Dozent сказал:

при переносе кнопкой у меня всё посыпалось

 

Link to post
Share on other sites
  • 2 years later...

Здравствуйте ! У меня похожайя проблема ! Помогиту пожалуйста .  
Подскажите пожалуйста как решить данную ошибку ? Текст который указан ниже появляется после того как я пытаюсь зайти на свой домен ! Появилась она после установки движка Opencart , а именно после браузерного всплывающего окна бещопасности (перемести каталог storage за пределы веб-каталога ). Прошу помогите Warning: fopen(/var/www/vipka2/storage/logs/openbay.log): failed to open stream: No such file or directory in /var/www/vipka2/vipka.com.ua/system/library/log.php

 

on line 22Warning: fopen(/var/www/vipka2/storage/logs/openbay.log): failed to open stream: No such file or directory in /var/www/vipka2/vipka.com.ua/system/library/log.php

 

on line 22Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/log.php

 

on line 39Warning: Cannot modify header information - headers already sent by (output started at /var/www/vipka2/vipka.com.ua/system/framework.php:42)

 

in /var/www/vipka2/vipka.com.ua/catalog/controller/startup/session.php

 

on line 25Warning: fopen(/var/www/vipka2/storage/cache/cache.catalog.language.1599994498): failed to open stream: No such file or directory in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 49Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 51Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 53Warning: fflush() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 55Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 57Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 59Warning: fopen(/var/www/vipka2/storage/cache/cache.currency.1599994498): failed to open stream: No such file or directory in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 49Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 51Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 53Warning: fflush() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 55Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 57Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 59Warning: fopen(/var/www/vipka2/storage/logs/openbay.log): failed to open stream: No such file or directory in /var/www/vipka2/vipka.com.ua/system/library/log.php

 

on line 22Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/log.php

 

on line 39Warning: fopen(/var/www/vipka2/storage/logs/error.log): failed to open stream: No such file or directory in /var/www/vipka2/vipka.com.ua/system/library/log.php

 

on line 22

Link to post
Share on other sites

1 час назад, Milliard сказал:

Здравствуйте ! У меня похожайя проблема ! Помогиту пожалуйста .  
Подскажите пожалуйста как решить данную ошибку ? Текст который указан ниже появляется после того как я пытаюсь зайти на свой домен ! Появилась она после установки движка Opencart , а именно после браузерного всплывающего окна бещопасности (перемести каталог storage за пределы веб-каталога ). Прошу помогите Warning: fopen(/var/www/vipka2/storage/logs/openbay.log): failed to open stream: No such file or directory in /var/www/vipka2/vipka.com.ua/system/library/log.php

 

on line 22Warning: fopen(/var/www/vipka2/storage/logs/openbay.log): failed to open stream: No such file or directory in /var/www/vipka2/vipka.com.ua/system/library/log.php

 

on line 22Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/log.php

 

on line 39Warning: Cannot modify header information - headers already sent by (output started at /var/www/vipka2/vipka.com.ua/system/framework.php:42)

 

in /var/www/vipka2/vipka.com.ua/catalog/controller/startup/session.php

 

on line 25Warning: fopen(/var/www/vipka2/storage/cache/cache.catalog.language.1599994498): failed to open stream: No such file or directory in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 49Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 51Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 53Warning: fflush() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 55Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 57Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 59Warning: fopen(/var/www/vipka2/storage/cache/cache.currency.1599994498): failed to open stream: No such file or directory in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 49Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 51Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 53Warning: fflush() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 55Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 57Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/cache/file.php

 

on line 59Warning: fopen(/var/www/vipka2/storage/logs/openbay.log): failed to open stream: No such file or directory in /var/www/vipka2/vipka.com.ua/system/library/log.php

 

on line 22Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/vipka2/vipka.com.ua/system/library/log.php

 

on line 39Warning: fopen(/var/www/vipka2/storage/logs/error.log): failed to open stream: No such file or directory in /var/www/vipka2/vipka.com.ua/system/library/log.php

 

on line 22

Решил проблему просто переместил папку storage на уровень выше !

Link to post
Share on other sites

Решил проблему просто переместил папку storage на уровень выше !

Link to post
Share on other sites

  • 7 months later...

Решил аналогичную проблему. Нужно в config.php проверить адрес папки storage ( и в админке и в основном сайте). Должно быть так "define('DIR_STORAGE', DIR_SYSTEM . 'storage/');". 

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.