Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4515

PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string

    XMLWordPrintable

Details

    • Help
    • Resolution: Not A Bug
    • Major
    • None
    • Professional Edition
    • Discovery

    Description

      After upgrading OS, the WebUI is blank and does not display anything, all PHP scripts are failing. Please assist me with getting things back up and running. Let me know what further information you require. Here are the errors that get returned when running some of the php scripts from cron, device rename / add for example.

       

      [root@crilobservium observium]# /opt/observium/discovery.php -u
      PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /opt/observium/includes/functions.inc.php:2449
      Stack trace:
      #0 /opt/observium/includes/sql-config.inc.php(157): load_sqlconfig()
      #1 /opt/observium/discovery.php(19): include('...')
      #2 {main}
        thrown in /opt/observium/includes/functions.inc.php on line 2449
      [root@crilobservium observium]# /opt/observium/discovery.php -h all
      PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /opt/observium/includes/functions.inc.php:2449
      Stack trace:
      #0 /opt/observium/includes/sql-config.inc.php(157): load_sqlconfig()
      #1 /opt/observium/discovery.php(19): include('...')
      #2 {main}
        thrown in /opt/observium/includes/functions.inc.php on line 2449
      [root@crilobservium observium]# /opt/observium/discovery.php -h all
      PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /opt/observium/includes/functions.inc.php:2449
      Stack trace:
      #0 /opt/observium/includes/sql-config.inc.php(157): load_sqlconfig()
      #1 /opt/observium/discovery.php(19): include('...')
      #2 {main}
        thrown in /opt/observium/includes/functions.inc.php on line 2449
      [root@crilobservium observium]# /opt/observium/housekeeping.php -ysel
      PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /opt/observium/includes/functions.inc.php:2449
      Stack trace:
      #0 /opt/observium/includes/sql-config.inc.php(157): load_sqlconfig()
      #1 /opt/observium/housekeeping.php(18): include('...')
      #2 {main}
        thrown in /opt/observium/includes/functions.inc.php on line 2449
      [root@crilobservium observium]# /opt/observium/housekeeping.php -yrptb
      PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /opt/observium/includes/functions.inc.php:2449
      Stack trace:
      #0 /opt/observium/includes/sql-config.inc.php(157): load_sqlconfig()
      #1 /opt/observium/housekeeping.php(18): include('...')
      #2 {main}
        thrown in /opt/observium/includes/functions.inc.php on line 2449
      [root@crilobservium observium]# ./rename_device.php
      PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /opt/observium/includes/functions.inc.php:2449
      Stack trace:
      #0 /opt/observium/includes/sql-config.inc.php(157): load_sqlconfig()
      #1 /opt/observium/rename_device.php(19): include('...')
      #2 {main}
        thrown in /opt/observium/includes/functions.inc.php on line 2449
      [root@crilobservium observium]# ./add_device.php 
      PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /opt/observium/includes/functions.inc.php:2449
      Stack trace:
      #0 /opt/observium/includes/sql-config.inc.php(157): load_sqlconfig()
      #1 /opt/observium/add_device.php(21): include('...')
      #2 {main}
        thrown in /opt/observium/includes/functions.inc.php on line 2449
      [root@crilobservium observium]

       

       

      Attachments

        Activity

          People

            landy Mike Stupalov
            eric.anderson Eric Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: