Поддержка Проблемы и решения Не загружаются изображения с компьютера

  • Решено pua-nn

    (@pua-nn)


    Доброго времени суток

    За 2 года использования Word Press ни разу не удавалось загружать изображения с компьютера прямиком на сайт ни через стандартный, ни через Flash-загрузчик

    Приходилось идти в обход через FTP-сервер

    При обновлении версии Word Press проблема осталась

    Сейчас сменил дизайн и в качестве теста пробовал заргужать картинки с другого компа — результат тот же, а именно:

    при желании добавить миниатюуру, впрочем, как и любого изображения, система выдаёт следующую ругаловку:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/sharkov/domains/4realman.ru/public_html/wp-content/uploads/2011/04) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2051

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/sharkov/domains/4realman.ru/public_html/wp-content/uploads/2011) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2060

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/sharkov/domains/4realman.ru/public_html/wp-content/uploads/2011) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2051

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/sharkov/domains/4realman.ru/public_html/wp-content/uploads) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2060

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/sharkov/domains/4realman.ru/public_html/wp-content/uploads) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2051

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/sharkov/domains/4realman.ru/public_html/wp-content) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2060

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/sharkov/domains/4realman.ru/public_html/wp-content) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2051

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/sharkov/domains/4realman.ru/public_html) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2060

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/sharkov/domains/4realman.ru/public_html) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2051

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/sharkov/domains/4realman.ru) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2060

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/sharkov/domains/4realman.ru) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2051

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/sharkov/domains) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2060

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/sharkov/domains) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2051

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/sharkov) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2060

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/sharkov) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2051

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2060

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2051

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2060

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2051

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/syscp/users/sharkov/4realman.ru/:/tmp/:/usr/local/Zend/:/usr/share/roundcubemail/) in /var/syscp/users/sharkov/4realman.ru/wp-includes/functions.php on line 2060

    Не могу создать директорию /home/sharkov/domains/4realman.ru/public_html/wp-content/uploads/2011/04. Проверьте, доступна ли родительская директория для записи.

    Пробовал открыть требуемый фалйл в скачанном архиве wp-includes/functions.php — не понятно, где строчки 2051 и 2060

    Подскажите, пожалуйста, что нужно изменить

    Спасибо

Просмотр 5 ответов — с 1 по 5 (всего 5)
  • Модератор Yuri

    (@yube)

    Смотрите, движок хочет писать в директорию
    /home/sharkov/domains/4realman.ru/public_html/wp-content/uploads/2011/04

    а в конфиге php разрешены
    /var/syscp/users/sharkov/4realman.ru/
    /tmp/
    /usr/local/Zend/
    /usr/share/roundcubemail/

    Видите похожие пути? Я — нет.

    что нужно изменить

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

    не понятно, где строчки 2051 и 2060

    После 2050-й и 2059-й соответственно 🙂

    Спасибо,

    закинул инфу админами сервера

    жду радостной вести

    другая пришла весть от админа:

    «>Смотрите, движок хочет писать в директорию

    >/home/sharkov/domains/4realman.ru/public_html/wp-content/uploads/2011/04

    в этом то вся и соль, что такой директории нет. А движек хочет туда писать.

    Я проверил, в конфигурационных файлах этого домена ссылок на такой путь нет,

    вероятно, данные настройки где-то в БД движка данного сайта.

    Может какой-то из плугинов захардкоден таким образом».

    Эхм..

    Народ, что мне делать, просто не понимаю, кто и что и где должен сделать, чтобы картинки заливались на сайт напрямую с компа

    Помогите пли-и-и-из, уж все сроки у меня летят из-за отсутствия этой базовой функции

    Модератор Yuri

    (@yube)

    что мне делать, просто не понимаю

    Искать, разумеется.

    уж все сроки у меня летят

    Судя по датам постов — медленно ползут.

    юрий, по-видимому, моя неточность побудила вас написать такой ответ

    инфа была закинута админу сервера ещё 3 недели назад, я просто отпостил об этом позже, ожидая его ответа и теряя время

    и вот, когда ответ админа получен, как можно получить с вашей стороны такой же конструктивный ответ, какой вы дали перед этим

    я действительно в затруднительном положении, я не являюсь программистом

    спасибо

Просмотр 5 ответов — с 1 по 5 (всего 5)
  • Тема «Не загружаются изображения с компьютера» закрыта для новых ответов.