FOGProject / fogproject

An open source computer cloning & management system
https://fogproject.org
GNU General Public License v3.0
1.08k stars 216 forks source link

Problem updating to 1.5.10 with location plugin enabled #561

Closed Sebastian-Roth closed 1 year ago

Sebastian-Roth commented 1 year ago

Describe the bug Cited from the forum topic: https://forums.fogproject.org/topic/16744/problem-updating-to-1-5-10

I had a problem when updating to 1.5.10. The update process went well until it requested to update the database, then the website was unresponsive while the Apache server was running. I observed the following error in the httpd logs (ssl_error_log):

[php7:error] [pid 31427] [client “ip”:60433] PHP Parse error: syntax error, unexpected ‘)’ in /var/www/html/fog/lib/plugins/location/pages/locationmanagementpage.class.php on line 170

To Reproduce Steps to reproduce the behavior:

  1. Install FOG 1.5.9(.x)
  2. Enable Plugins and install Location plugin
  3. Probably not necessary: Setup images/hosts/locations
  4. Update to FOG 1.5.10 and open the web UI when asked to update the schema
  5. See error above

Expected behavior No error should happen!

Software (please complete the following information):