• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

1.3.5 RC5 + Ubuntu 16.04 : FOGPingHosts.service : PHP Fatal error

Scheduled Pinned Locked Moved Solved
Bug Reports
2
4
1.3k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    FredG
    last edited by Feb 14, 2017, 8:26 AM

    Server
    • FOG Version: 1.3.5 RC5
    • OS: Ubuntu 16.04
    Client
    • Service Version:
    • OS:
    Description

    FOGPingHosts.service : PHP Fatal error: Uncaught Error: Cannot unset string offsets in /var/www/fog/lib/service/pinghosts.class.php:184

    ● FOGPingHosts.service - FOGPingHosts
       Loaded: loaded (/lib/systemd/system/FOGPingHosts.service; enabled; vendor preset: enabled)
       Active: active (running) since mar. 2017-02-14 09:16:15 CET; 4min 45s ago
     Main PID: 1586 (FOGPingHosts)
        Tasks: 2
       Memory: 9.0M
          CPU: 230ms
       CGroup: /system.slice/FOGPingHosts.service
               └─1586 /usr/bin/php -q /opt/fog/service/FOGPingHosts/FOGPingHosts &
    
    févr. 14 09:16:15 fog-test systemd[1]: Started FOGPingHosts.
    févr. 14 09:16:18 fog-test FOGPingHosts[1586]: PHP Warning:  array_key_exists() expects parameter 2 to be array, string given in /var/www/fog/lib/service/pinghosts.class.php on line 172
    févr. 14 09:16:18 fog-test FOGPingHosts[1586]: PHP Fatal error:  Uncaught Error: Cannot unset string offsets in /var/www/fog/lib/service/pinghosts.class.php:184
    févr. 14 09:16:18 fog-test FOGPingHosts[1586]: Stack trace:
    févr. 14 09:16:18 fog-test FOGPingHosts[1586]: #0 /var/www/fog/lib/service/pinghosts.class.php(207): PingHosts->_commonOutput()
    févr. 14 09:16:18 fog-test FOGPingHosts[1586]: #1 /opt/fog/service/FOGPingHosts/FOGPingHosts(34): PingHosts->serviceRun()
    févr. 14 09:16:18 fog-test FOGPingHosts[1586]: #2 {main}
    févr. 14 09:16:18 fog-test FOGPingHosts[1586]:   thrown in /var/www/fog/lib/service/pinghosts.class.php on line 184```
    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Feb 14, 2017, 1:43 PM

      Can you add your pinghosts.class.php file?

      I ask this, because the methods being called to produce the variable that the array_key_exists will always return an array, and this error should not even be possible.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • F
        FredG
        last edited by Feb 14, 2017, 3:08 PM

        0_1487084877870_pinghosts.class.php

        T 1 Reply Last reply Feb 14, 2017, 3:31 PM Reply Quote 0
        • T
          Tom Elliott @FredG
          last edited by Feb 14, 2017, 3:31 PM

          @FredG I’ve added more implicit checking to the working branch to prevent this type of error.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          1 / 1
          • First post
            4/4
            Last post

          165

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project