Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-17044

session_start(): setting option use_cookies failed

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 4.4.3
    • Frontend (F)

      Steps to reproduce:

      1. Upgraded server and agent from 2.4 to 3.4, everything seemed to work fine.
      2. Login
      3. Displays error at bottom off dashboard and top or bottom of all other pages I tried.
        session_start(): Setting option 'use_cookies' failed [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → local_showMessage() → CSession::keyExists() → CSession::open() → session_start() in include/classes/core/CSession.php:145]
        session_start(): Setting option 'use_cookies' failed [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → local_showMessage() → CSession::keyExists() → CSession::open() → session_start() in include/classes/core/CSession.php:145]
      1. So I tried the latest version...  Upgraded server and agent from 3.4 to 4.4, everything seemed to work fine.
      2. Login
      3. Still displays error at bottom off dashboard and top or bottom of all other pages I tried.

      Result:

      Expected:

      No session_start() errors.

      I was able to disable this error message by modifying /usr/share/zabbix/include/classes/core/CSession.php and commenting out line 148, ($options = ['use_cookies' => 0]).  I don't understand the use of a static variable in a private static function .

       

       

        1. image-2019-12-05-14-59-56-523.png
          image-2019-12-05-14-59-56-523.png
          26 kB
        2. zabbix_hostinventoriesoverview.php#debug.html
          98 kB
        3. zabbix-debug.jpeg
          zabbix-debug.jpeg
          170 kB
        4. zabbix-debug.txt
          6 kB
        5. zabbix-debug-1.jpeg
          zabbix-debug-1.jpeg
          168 kB
        6. zabbix-debug-1.txt
          6 kB

            rvaliahmetovs Renats Valiahmetovs (Inactive)
            jamesj2 James Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: