Jump to content

Recommended Posts

Друзья, прошу помощи.
В логах на хостинге постоянно фигурирует такая ошибка:
 

Spoiler

2017/03/19 13:38:01 [error] 26953#0: *465013186 openat() "/home/my-account/my-domen.ru/image/http:/my-domen.ru/image/cache/no_image-100x100.png" failed (2: No such file or directory), client: 94.227.197.227, server: my-domen.ru, request: "GET /image/http:/my-domen.ru/image/cache/no_image-100x100.png HTTP/1.1", host: "my-domen.ru"
2017/03/19 13:38:10 [error] 26953#0: *465013956 openat() "/home/my-account/my-domen.ru/image/http:/my-domen.ru/image/cache/no_image-100x100.png" failed (2: No such file or directory), client: 94.227.197.227, server: my-domen.ru, request: "GET /image/http://my-domen.ru/image/cache/no_image-100x100.png HTTP/1.1", host: "my-domen.ru"
2017/03/19 13:50:28 [error] 30886#0: *465082388 openat() "/home/my-account/my-domen.ru/image/http:/my-domen.ru/image/cache/no_image-100x100.png" failed (2: No such file or directory), client: 94.227.197.227, server: my-domen.ru, request: "GET /image/http://my-domen.ru/image/cache/no_image-100x100.png HTTP/1.1", host: "my-domen.ru", referrer: "https://my-domen.ru/"


Файл /my-domen.ru/image/cache/no_image-100x100.png на сервере присутствует. Хостер пока ничего внятного ответить не может. 

Share this post


Link to post
Share on other sites

Где-то в коде генерируется некорретная ссылка на картинку. Посмотрите сами внимательно на лог ошибок - http воткнут куда-то в середину.

Share this post


Link to post
Share on other sites

Да, обратил на это внимание, но так как с кодом дружу не сильно, то пришлось повозиться:). 

Для тех, кто возможно столкнется с проблемой. Решил следующим образом [Шаблон Fastfood 2]:

В файле /catalog/view/theme/fastfood/template/common/header.tpl ищем код:

<body <?php if ($background_image) { ?>style="background:url('../image/<?php echo $background_image; ?>') repeat"<?php } ?>>

И меняем на:

<body <?php if ($background_image) { ?>style="background:#fff('<?php echo $background_image; ?>') repeat"<?php } ?>>

 

Share this post


Link to post
Share on other sites

Что за .... Вы хоть понимаете что вы сделали?

 

Надо просто выяснить откуда берется

background_image

И обратиться к автору шаблоеа

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

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.