Server 500 error after upgrading to 0.33b
-
Since I upgraded my 0.32 to 0.33b, I’ve had an internal server error. Turning on display errors for php shows the following:-
Notice: Use of undefined constant WEB_ROOT - assumed ‘WEB_ROOT’ in /var/www/html/fog/commons/system.php on line 54 Warning: require_once(/var/www/html/commons/config.php): failed to open stream: No such file or directory in /var/www/html/fog/commons/base.inc.php on line 7 Fatal error: require_once(): Failed opening required ‘/var/www/html/commons/config.php’ (include_path=‘.:/usr/share/pear:/usr/share/php’) in /var/www/html/fog/commons/base.inc.php on line 7
Hope this is a quick fix, or something you can assist withhhhhhhhhhhhhh.
Cheers
Iain
-
Give me a minute or two and I’ll try to fix it now. It looks like the call is trying to reference /var/www/html/commons/config.php but it should be referencing /var/www/html/fog/commons/config.php
-
It looks like my internet is out at the moment. So it may have to wait until later today. I hope this is okay.
-
Also, it looks like your webroot is only referencing /var/www/html and not /var/www/html/fog
Are you accessing this server as an alias:
E.G. (fog.domain.com)
Or are you referencing as:
-
Thanks Tom,
I’ll try a new download tomorrow morning to see if that fixes it
-
We are accessing as [url]http://192.168.3.13/fog/management/index.php[/url]
-
Sorry about the delay,
r916 is out!
My power at the house went down so I couldn’t access the file for edits. I found the issue, and another issue, and it should be corrected now, please keep me posted.Thank you,
-
r917 is out, please give this a shot and see if this helps you out.
-
I’ve re-downloaded it this morning from [url]https://mastacontrola.com/fog_0.33b.tar.bz2[/url] and tried again but am still getting the same error.
Can you please confirm that is the correct download location?
-
Use the svn for the update. The fog_0.33b.tar.bz2 is valid and I’ll fix that, I haven’t since I’ve had SVN access and can commit my changes live.
It’ll be up in the next hour or so.
-
Thanks Tom,
The site now redirects to [url]http://192.168.3.13/fog/commons/schemaupdater/index.php?redir=1[/url]
this then gives the following:-
Warning: mysql_query() expects parameter 2 to be resource, boolean given in /var/www/html/fog/lib/db/MySQL.class.php on line 115 Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/fog/lib/db/MySQL.class.php on line 191 Warning: mysql_query() expects parameter 2 to be resource, boolean given in /var/www/html/fog/lib/db/MySQL.class.php on line 115 Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/fog/lib/db/MySQL.class.php on line 191 Unable to connect to Database
-
do you have a fog database already?
-
I have not made any changes to the MySQL.class.php files.
-
yes - it’s upgrading an existing installation,
-
I don’t know how well that method will work as there’s quite a few changes to the new setup. You might try making a backup and start with a new database.
-
How will that work for all my existing hosts and images?
-
That’s still an issue in question. I have to figure out the variants between the db tables. So a simple export/import won’t work at the moment. I haven’t had time to try that out yet.
Major difference, if you’re not afraid of db inserts, is for hosts, there is no hostOS on fog 0.33 but there is on 0.32.
-
OK, I’ve gone for it and dropped the database, then re-installed.
Next issue is that half of the menu options appear chines/taiwanese
-
You have to choose the language options. Make sure en_US is chosen when logging in.
-
Doh! Schoolboy error.
Thanks so much for your help. I think I’ve a long way to go to get 0.33b up ad running to the same standard as 0.32 but if it means I can back up 64bit editions of Windows, it’s worth the graft.