Error after upgrade from 0.32 to 1.0.1 Upload task failed to create for with image
-
[COLOR=#393939][LEFT][SIZE=2][error] [client 192.168.1.65] PHP Warning: current() expects parameter 1 to be array, string given in /var/www/fog/lib/fog/Host.class.php on line 1159, referer: [url]http://192.168.1.200/fog/management/index.php?node=host&sub=delete&id=0[/url] [Wed May 21 18:16:14 2014] [error] [client 192.168.1.65] PHP Fatal error: Call to a member function isValid() on a non-object in /var/www/fog/lib/fog/Host.class.php on line 1159, referer: [url]http://192.168.1.200/fog/management/index.php?node=host&sub=delete&id=0[/url][/SIZE][/LEFT][/COLOR]
-
Tom, any suggestions?
-
when you ran the install script, did you use the sudo command?
also, did you have any scheduled or active tasks when you ran the installer? -
Yes I ran sudo for the installer, not aware of any scheduled tasks. Changed the MySql password in config.php file, and I can log into the GUI successfully.
-
Guys, anything? This is very frustrating! I have images now that I cannot use, and new images to create that cannot be created.
-
i’m still trying to look into what could be causing the problem. maybe make a backup of your server and try the latest svn trunk. i suspect that something has an invalid value in your mysql database, with regard to either hosts or tasks, but i can’t be certain.
-
What is a svn trunk?
-
the svn trunk is the repository of pre-release code. it is the “bleeding-edge” of the software, and is not considered final release quality, generally. however, it does contain bug-fixes, updates, and features not included in the official releases. in general, it is not recommended to use the developmental versions in production environments. however, your system isn’t working right now anyway.
updating to the svn trunk version may fix your problem, i can’t be certain. It is also vital that you backup your server’s data before you update, as the code is not officially supported, and may contain bad bugs we haven’t found yet.
[url]http://www.fogproject.org/wiki/index.php/SVN[/url] -
I’m using Webmin. Will using that backup option work ok? Have no experience with it. Just installed it two days ago.
-
i’m not familiar with webmin. but if it can make a full database backup, i don’t see why it wouldn’t work. you may also want to backup the files in the root of your web folder, just in case.