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

Не отображаются картинки при переезде на новый хостинг


zypper
 Share

Recommended Posts

Здравствуйте. Переехал на хостинг от fozzy, но столкнулся с такой проблемой, что не отображаются картинки на сайте и в админке. Права на папках 777, на картинках 644. При попытке загрузить картинку или создать файл из админки я вижу предупреждение: Warning: Directory does not exist! На сайте доступно лого, фавикон и еще одна картинка, которая просто переименована и из-за этого не отображается на сайте. Версия PHP: 5.6. В config.php: 

define('DIR_IMAGE', '/home/bitcoi14/www/image/');
define('DIR_CACHE', '/home/bitcoi14/www/system/storage/cache/');

Куда смотреть?
Сайт: bitcoin-hardware.eu

Link to comment
Share on other sites


/home/bitcoi14/www/image/

это правильный путь?

Link to comment
Share on other sites


вот так попробуй

define('DIR_IMAGE', $_SERVER['DOCUMENT_ROOT'].'/image/');

define('DIR_CACHE', $_SERVER['DOCUMENT_ROOT'].'/system/storage/cache/');

Link to comment
Share on other sites


13 часов назад, php сказал:

define('DIR_IMAGE', $_SERVER['DOCUMENT_ROOT'].'/image/');

define('DIR_CACHE', $_SERVER['DOCUMENT_ROOT'].'/system/storage/cache/');

Это помогло. Спасибо вам большое. Теперь интересно узнать почему так произошло.

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.