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

Ошибка Warning: require_once после переезда на другой хостинг


 Share

Recommended Posts

После переезда на другой хостинг, переноса БД и сайта столкнулся вот с такой проблемой при заходе в админку:

Warning: require_once(/home/womanp/public_html/shop/system/startup.php) [function.require-once]: failed to open stream: No such file or directory in /home/n1neman/public_html/shop.womanparadise.ru/admin/index.php on line 18

Fatal error: require_once() [function.require]: Failed opening required '/home/womanp/public_html/shop/system/startup.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/n1neman/public_html/shop.womanparadise.ru/admin/index.php on line 18

Движок не может найти файл startup.php и обращается по неверному адресу, это как я понял.

Путь /home/womanp/public_html/shop/system/startup.php был на старом хостинге на новом это должно быть /home/n1neman/public_html/shop.womanparadise.ru/system/startup.php

Соответственно хотелось бы узнать откуда берется этот путь, где он прописан, чтобы его исправить на правильный. В БД смотрел, но что то не разобрался, может кто-нибудь точно укажет где исравить, предполагаю что всё таки это в БД.

Link to comment
Share on other sites


  • 4 months later...

у меня была такая же хрень.

и дело было действительно в тех файлах /config.php и /admin/config.php

проверьте внимательней.

для сравнения поставьте еще один магазин, но прям "из коробки", и затем сравните эти файлы.

Link to comment
Share on other sites

  • 2 years later...
  • 3 years later...

jpierre, добрый день, подскажите как решить такую проблему: Warning: require_once(/var/www/vhosts/u0227199.plsk.regruhosting.ru/avtoparts41.ru/system/library/v2pagecache.php): failed to open stream: No such file or directory in /var/www/u0342028/data/www/avtoparts41.ru/index.php on line 15

Fatal error: require_once(): Failed opening required '/var/www/vhosts/u0227199.plsk.regruhosting.ru/avtoparts41.ru/system/library/v2pagecache.php' (include_path='.:') in /var/www/u0342028/data/www/avtoparts41.ru/index.php on line 15

 

Возникла ошибка при переносе на другой хостинг. Установил opencart на этом хостинге, пути другие. Пути в файлах config.php и admin/config.php изменил. Снова ошибки: 1. var/www/vhosts/u0342028.plsk.regruhosting.ru/avtoparts41.ru/system/library/v2pagecache.php указывает на строку: 15 (private $addcomment=true  ; // set to true to add a comment to the bottom
  // of cached html pages with info+expire time)

2.  /var/www/vhosts/u0342028.plsk.regruhosting.ru/avtoparts41.ru/system/library/v2pagecache.php' (include_path='.:') строка 15 в обох ошибках указывает в скрине: /var/www/u0342028/data/www/avtoparts41.ru/index.php on line 15  (require_once(DIR_SYSTEM . 'library/v2pagecache.php'); ) Может, что подскажите. Заранее благодарен

Screenshot_2.jpg

Edited by avtoparts41
Дополнение
Link to comment
Share on other sites


  • 3 years later...

Для будущих поколений добавлю пример ошибки. 

Путь с ошибкой: 

define('DIR_APPLICATION', '/var/www/u1100076/data/www/xn----9sbdk7bcdbbthkk3b8f.xn--p1ai/');
define('DIR_SYSTEM', '/var/www/u1100076/data/www/xn----9sbdk7bcdbbthkk3b8f.xn--p1ai/');
define('DIR_IMAGE', '/var/www/u1100076/data/www/xn----9sbdk7bcdbbthkk3b8f.xn--p1ai/');

 

А вот правильный путь: 

define('DIR_APPLICATION', '/var/www/u1100076/data/www/xn----9sbdk7bcdbbthkk3b8f.xn--p1ai/catalog/');
define('DIR_SYSTEM', '/var/www/u1100076/data/www/xn----9sbdk7bcdbbthkk3b8f.xn--p1ai/system/');
define('DIR_IMAGE', '/var/www/u1100076/data/www/xn----9sbdk7bcdbbthkk3b8f.xn--p1ai/image/');

НУ КАК, НАШЛИ ОШИБКУ?

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.