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

undefined function check_extension_exists()

    XMLWordPrintable

Details

    • Help
    • Resolution: Not A Bug
    • Major
    • None
    • Professional Edition
    • API
    • 18.5.9221 (stable)
      Ubuntu 16.04 LTS
      PHP 7.0.30

    Description

      Dear Support team,

      Today I have updated to the new stable version 18.5.9221, and I found a bug while trying to run an external script (Weathermap)

      /opt/observium/html/weathermap$ sudo ./map-poller.php -d

      Fatal error: Uncaught Error: Call to undefined function check_extension_exists() in /opt/observium/includes/definitions.inc.php:87

       

      According to the PHP documentation, it seems the most appropriate function for this situation is: "extension_loaded}}()"  http://php.net/manual/en/function.extension-loaded.php

       

      So, I have replaced on  /opt/observium/includes/definitions.inc.php, both lines 81 and 87 from "{{check_extension_exists()
      }}" to "{{extension_loaded
      ()".

      After this, the script works again, and I don't see any other issues on the observium side.

      Could you please check if this is a viable solution?

      Best regards,

       

       

      Attachments

        Activity

          People

            adama Adam Armstrong
            acidcooler Sergio Fernandes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: