Rev 6799 can't add or modify snapin, blank page
-
Hi
When I want to add or modify a snapin, I see a blank page.
In apache error log I have these lines:[Fri Mar 18 09:54:19.887823 2016] [:error] [pid 2559] [client 172.20.40.1:55816] PHP Fatal error: Call to a member function chdir() on null in /var/www/html/fog/lib/fog/fogbase.class.php on line 73, referer: http://crim-fog.pu-pm.univ-fcomte.fr/fog/management/index.php?node=snapin&sub=list
[Fri Mar 18 09:54:22.237175 2016] [:error] [pid 2604] [client 172.20.40.1:55818] PHP Strict Standards: Accessing static property FOGPageManager::$FOGSubMenu as non static in /var/www/html/fog/lib/fog/fogpagemanager.class.php on line 35, referer: http://crim-fog.pu-pm.univ-fcomte.fr/fog/management/index.php?node=snapin
-
I have been unable to replicate this issue. First, the chdir function isn’t used during a snapin list/search page. The error you’re seeing appears that the FTP Connection is not existing, but it’s requesting data from an area that it has NO reason to be asking for to begin with. While I don’t think the error is while you’re listing/searching snapins, it’s just odd to see the “referer” part state so. With all of that said, can you verify your server’s FTP information?
I was able to fix the issue with the second error you see (FOGPageManager::$FOGSubMenu), but that is unlikely the thing causing your blank screen.
-
I also can not use snapins now after updating, if i select an existing snapin i get server error 500
-
@theWizard What have you tried? Do you have anything in error logs?
-
@Tom-Elliott
I’m not sure what to try except checking permissions and fog credentials which seemed ok, log consists of the following entries[Fri Mar 18 11:26:11.753589 2016] [:error] [pid 4166] [client 135.100.92.153:52730] PHP Parse error: syntax error, unexpected ‘$FOGCore’ (T_VARIABLE) in /var/www/fog/service/Post_Stage3.php on line 80
[Fri Mar 18 11:25:47.515339 2016] [:error] [pid 4351] [client 135.100.0.3:50110] PHP Strict Standards: Accessing static property FOGPageManager::$FOGSubMenu as non static in /var/www/fog/lib/fog/fogpagemanager.class.php on line 35, referer: http://135.100.5.9/fog/management/index.php?node=about
[Fri Mar 18 11:25:13.122801 2016] [:error] [pid 4111] [client 135.100.0.3:50081] PHP Strict Standards: Accessing static property FOGPageManager::$FOGSubMenu as non static in /var/www/fog/lib/fog/fogpagemanager.class.php on line 35, referer: http://135.100.5.9/fog/management/index.php?node=snapin&sub=list
[Fri Mar 18 11:25:04.685751 2016] [:error] [pid 4259] [client 135.100.0.3:50080] PHP Strict Standards: Accessing static property FOGPageManager::$FOGSubMenu as non static in /var/www/fog/lib/fog/fogpagemanager.class.php on line 35, referer: http://135.100.5.9/fog/management/index.php?node=snapin
[Fri Mar 18 11:21:17.673032 2016] [:error] [pid 4165] [client 135.100.0.3:50024] PHP Fatal error: Call to a member function chdir() on null in /var/www/fog/lib/fog/fogbase.class.php on line 73, referer: http://135.100.5.9/fog/management/index.php?node=snapin&sub=list -
Can you update and see if this is still happening? I found the line 80 issue and fixed that as well.
-
@Tom-Elliott
Just updated logs now consist ofPHP Strict Standards: Accessing static property MySQL::$info as non static in /var/www/fog/lib/fog/fogbase.class.php on line 145
[Fri Mar 18 11:48:39.837968 2016] [:error] [pid 9357] [client 192.168.220.138:53284] PHP Strict Standards: Accessing static property Module::$info as non static in /var/www/fog/lib/fog/fogbase.class.php on line 145
[Fri Mar 18 11:48:39.834386 2016] [:error] [pid 6566] [client 135.100.90.121:51631] PHP Strict Standards: Accessing static property User::$debug as non static in /var/www/fog/lib/fog/fogbase.class.php on line 129
[Fri Mar 18 11:48:39.834197 2016] [:error] [pid 9356] [client 135.100.92.23:50115] PHP Strict Standards: Accessing static property Image::$info as non static in /var/www/fog/lib/fog/fogbase.class.php on line 145
[Fri Mar 18 11:48:39.834010 2016] [:error] [pid 9356] [client 135.100.92.23:50115] PHP Strict Standards: Accessing static property MACAddressAssociation::$info as non static in /var/www/fog/lib/fog/fogbase.class.php on line 145
[Fri Mar 18 11:48:39.833238 2016] [:error] [pid 9356] [client 135.100.92.23:50115] PHP Strict Standards: Accessing static property Host::$info as non static in /var/www/fog/lib/fog/fogbase.class.php on line 145
[Fri Mar 18 11:48:39.831689 2016] [:error] [pid 9307] [client 135.100.21.41:51611] PHP Strict Standards: Accessing static property User::$debug as non static in /var/www/fog/lib/fog/fogbase.class.php on line 129 -
@theWizard Both the info and debug are now updated.
-
I’m sure this will drive you crazy lol
[Fri Mar 18 12:10:38.780928 2016] [:error] [pid 10927] [client 135.100.0.3:50864] PHP Fatal error: Call to a member function chdir() on null in /var/www/fog/lib/fog/fogbase.class.php on line 73, referer: http://135.100.5.9/fog/management/index.php?node=snapin&sub=list
[Fri Mar 18 12:07:46.554378 2016] [:error] [pid 10942] [client 135.100.5.9:35770] PHP Fatal error: Call to a member function chdir() on null in /var/www/fog/lib/fog/fogbase.class.php on line 73, referer: http://135.100.5.9/fog/management/index.php?node=snapin&sub=list
[Fri Mar 18 12:07:17.674296 2016] [:error] [pid 11050] [client 135.100.5.9:35286] PHP Strict Standards: Only variables should be passed by reference in /var/www/fog/lib/pages/dashboardpage.class.php on line 71, referer: http://135.100.5.9/fog/management/index.php?node=home
[Fri Mar 18 12:05:04.283275 2016] [mpm_prefork:error] [pid 10874] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
[Fri Mar 18 12:04:52.829301 2016] [core:notice] [pid 10874] AH00094: Command line: ‘/usr/sbin/apache2’[Fri Mar 18 12:04:00.880604 2016] [:error] [pid 9554] [client 135.100.28.240:50890] PHP Strict Standards: Accessing static property Module::$info as non static in /var/www/fog/lib/fog/fogbase.class.php on line 145
[Fri Mar 18 12:04:00.883634 2016] [:error] [pid 9672] [client 135.100.90.46:52465] PHP Strict Standards: Accessing static property User::$debug as non static in /var/www/fog/lib/fog/fogbase.class.php on line 129
[Fri Mar 18 12:04:01.242404 2016] [mpm_prefork:notice] [pid 6260] AH00169: caught SIGTERM, shutting down
[Fri Mar 18 12:04:52.829262 2016] [mpm_prefork:notice] [pid 10874] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured – resuming normal operations
[Fri Mar 18 12:04:52.829301 2016] [core:notice] [pid 10874] AH00094: Command line: ‘/usr/sbin/apache2’
[Fri Mar 18 12:05:04.283275 2016] [mpm_prefork:error] [pid 10874] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
[Fri Mar 18 12:07:17.674296 2016] [:error] [pid 11050] [client 135.100.5.9:35286] PHP Strict Standards: Only variables should be passed by reference in /var/www/fog/lib/pages/dashboardpage.class.php on line 71, referer: http://135.100.5.9/fog/management/index.php?node=home
[Fri Mar 18 12:07:46.554378 2016] [:error] [pid 10942] [client 135.100.5.9:35770] PHP Fatal error: Call to a member function chdir() on null in /var/www/fog/lib/fog/fogbase.class.php on line 73, referer: http://135.100.5.9/fog/management/index.php?node=snapin&sub=list -
I have a similar problem. Clicking at “Create New Snapin” brings a sever error 500.
Apache log show the following error:[Fri Mar 18 14:53:59.605058 2016] [:error] [pid 17646] [client 10.xx.xx.xx:52947] PHP Fatal error: Call to a member function chdir() on null in /var/www/html/fog/lib/fog/fogbase.class.php on line 73, referer: http://10.xx.xx.xx/fog/management/index.php?node=snapin
I did not created any snapins so i can not test if “List All Snapins” brings a error 500 too.
(Without snapins “List All Snapins” is working so far)Running latest Version 6811.
What i noticed since a few updates: When i follow the instructions during the update i get no possibility to update the db schema.
I only get the normal log screen. Is this correct?* You still need to install/update your database schema. * This can be done by opening a web browser and going to: http://10.xx.xx.xx/fog/management * Press [Enter] key when database is updated/installed.
-
@jayphizzle It will only show a database update screen if there’s a database update to be performed. The warning you see there is just to ensure that you check the browser. You can just add the -y argument to the installer and it will do everything without prompting you (including updating db if there is a db update.)
-
Please update again and let me know if things are any better. I moved the ftpfilesonly function to the snapin management page. When it’s called it should have it’s proper variables set then.
-
@Tom-Elliott
Confirmed i can now access the snapins to edit, thank you very much -
@theWizard said:
@Tom-Elliott
Confirmed i can now access the snapins to edit, thank you very muchIt is working for me too!
Thx @tom-elliot for another quick fix!
-
Yes it’s ok for me too.
But I don’t know if you wanted that, now when I create or modify a snapin, I have no more choice box, for choosing what file present on server I want to use.
I can only upload.
so I can’t create a snapin from another one without downloading file, then reuploading it -
@Claude-Girard Does the file actually exist on the node master that it’s uploaded too?
-
@Tom-Elliott Yes. It exist.
On this screen capture is what I can see.
And when I create or update the snapin, if I download the file on my computer, and choose it for re-upload, on my server group owner for this file become “fog”, before it was “www-data” -
I may have made a bit of regression into this issue. I only state this because I’m trying to maintain the list and make the functions that handle it work properly.
-
Fairly sure this is still fixed, and with the added benefit of properly getting the snapins from all nodes within.
-
@Tom-Elliott said:
Fairly sure this is still fixed, and with the added benefit of properly getting the snapins from all nodes within.
Sorry but Rev 6885, again blank page in create snapin and edit snapin.
Apache error log (same error in crating or in editing snapin):
[Mon Mar 21 08:33:21.445380 2016] [:error] [pid 2066] [client 172.20.40.1:39732] PHP Fatal error: Call to a member function chdir() on null in /var/www/html/fog/lib/fog/fogbase.class.php on line 74, referer: http://crim-fog.pu-pm.univ-fcomte.fr/fog/management/index.php?node=snapin&sub=list