FOG 1.0.1 Snapin Client disabled
-
Albatros, if you’re daring, can you try from the latest svn?
I found an easier, and probably, more accurate way to find the state of a module.
Before I was just looping through everything and having it print out the status as it looped through. It turns out, we don’t even need to verify the state or validity of the module. When you uncheck the service modules within the host services settings, it actually removes the reference from the database. This makes the state part of the database not really needed and makes it simpler to find out if the modules are active on a host or not.
I’ve made these corrections in SVN 1706 and tested. All seems correct on my side and hopefully will correct this on your side:
[code]wget -O /var/www/fog/service/servicemodule-active.php https://svn.code.sf.net/p/freeghost/code/trunk/packages/web/service/servicemodule-active.php[/code] -
Update to revision 1706 and if the services are enabled, then it works.
If I disable the services I get an internal server error. This is in the apache log file
[CODE][Mon May 19 13:16:12 2014] [error] [client 192.168.9.14] PHP Warning: mysqli_close(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 45, referer: http://192.168.9.13/fog/management/index.php?node=host&sub=edit&id=14[/CODE] -
Try upgrading to SVN 1708 and see if it still occurs. I moved to mysqli functions and was finally able to get them class based as well.
-
Updated to rev 1708 tested it and if no services selected this error appears.
[CODE]PHP Fatal error: Call to a member function get() on a non-object in /var/www/fog/service/servicemodule-active.php on line 37[/CODE] -
Will push fix for that shortly. Sorry.
-
svn 1709 should address that error as well as remove mysql_ functions and use the $this->DB calls for database purely where needed.
-
The error is gone and now FOG Services works fine
Ty very much
-
How can I get the svn versions you mentioned? I cannot get snapins to deploy at all.
-
Here is a nice tutorial on the wiki
[url]http://fogproject.org/wiki/index.php/SVN[/url] -
[quote=“Tom Elliott, post: 27440, member: 7271”]svn 1709 should address that error as well as remove mysql_ functions and use the $this->DB calls for database purely where needed.[/quote]
Nice, upgraded to revision 1710 and everything works now. So far.
Thx.