Ошибка на сайте

Тема в разделе "OpenCart", создана пользователем kuklev, 28 сен 2014.

  1. kuklev

    kuklev

    Регистрация:
    31 дек 2012
    Сообщения:
    171
    Симпатии:
    6
    Добрый день!

    Сегодня утром вылезла вот такая ошибка на сайте benkoni.com

    Warning: session_start(): open(/var/lib/php/session/sess_ptopvccsova9nintasbkc5dlj4, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/benkoni.com/httpdocs/system/library/session.php on line11

    В админку не пускает. С сайтом ничего не делал. В чем может быть проблема?
     
  2. crist

    crist

    Регистрация:
    2 окт 2013
    Сообщения:
    269
    Симпатии:
    504
    1. remove the php.ini from the root directory
    2. clear cache folder in the system directory
    3. index.php in your admin folder

    #a: Write ob_start() after <?php. As ob_start() turn on output buffering means no output sent to script and it stores the output in internal buffer.
    #b: scroll down until end of file Write ob_flush(); before ?>

    4. make sure that nothing gets sent to the browser before session_start() statement. This happens in case there is a white space or some charactors before session_start() or even before <?php tag. If this is the case, please remove spaces or characters.
    5. try to set the encoding from UTF-8. UTF-8 encoding add some characters before <?php tag which is the same case as # 2 and you have removed those characters.

    as those characters automatically output in page, you can solve this by using UTF-8 encoding WITHOUT BOM (Byte Order Mark). “Don’t save your UTF-8 files with BOM as it creates issues”.
    if you facing an issue as above when you’ve moved opencart website from one provider to another:
    6. try to remove ?> at the end of the config.php files (root and under admin)

    7. empty cache from system folder
    8. empty tmp folder if exists

    9. last try
    Contact your host. You're not able to create a session
     
  3. kuklev

    kuklev

    Регистрация:
    31 дек 2012
    Сообщения:
    171
    Симпатии:
    6
    Если честно, половину не понял... А может быть проблема связана с хостером? Ведь если ничего на сайте не делалось, логично предположить что это его косяк?
     
  4. web2us

    web2us

    Регистрация:
    10 мар 2013
    Сообщения:
    18
    Симпатии:
    1
    проблема на стороне сервера
    настройки php.ini не прописаны пути для сессий либо проблемы с правами