Page 1 of 1

error after update

Posted: Sun Jun 11, 2006 2:38 pm
by Col. Kurtz
I tried to install the latest nightly, something wrent wrong during the upload, so I uploaded everything again. Now I get a error message:
Fatal error: Call to undefined function: serendipity_db_reconnect() in /www/htdocs/w00675d5/blog/include/lang.inc.php on line 12
http://www.photo.marc-gaertner.de/blog

Re: error after update

Posted: Sun Jun 11, 2006 5:18 pm
by garvinhicking
Hi!

Check if your include/db/* files are all proper and up to date. The function is defined and loaded there.

Regards,
Garvin

Posted: Sun Jun 11, 2006 5:49 pm
by Col. Kurtz
I´ve uploaded them again, without any effect.

Posted: Sun Jun 11, 2006 5:54 pm
by garvinhicking
Hi!

Are you using mysql or mysqli? Check your include/db/mysql(i).inc.php file, check if the serendipity_db_reconnect() function is declared?

Regards,
Garvin

Posted: Sun Jun 11, 2006 5:56 pm
by garvinhicking
Hm, maybe this problem only happens when using the multilingual stuff?

Regards,
Garvin

Posted: Sun Jun 11, 2006 6:06 pm
by Col. Kurtz
I have another site that runs with the multilingual plugin and 1.1. fine.

see here: www.humppajugend.com/humppa

mysql

I dont think theres anything wrong with that file...

Posted: Sun Jun 11, 2006 11:29 pm
by garvinhicking
Hi!

So what is the difference of the other 1.1 site with the plugin, and the site were its not working?

Regards,
Garvin

Posted: Mon Jun 12, 2006 8:50 am
by Col. Kurtz
I have no idea. Well the difference is: The other site became multilangual AFTER the update. This one was already bilingual.

As I said in the first post: during the first upload I got into trouble with file permissions and so not everything was uploaded, then I uploaded everything again, this time with sucess. Maybe someone went to the site and pressed the update button while I was still uploading?

Any idea what to do? Save the DB and upload again?

Posted: Mon Jun 12, 2006 10:02 am
by garvinhicking
Hi!

I just patched a "function_exists" check in the lang.inc.php file and committed it, which should fix your problem. The reocnnect() is not really required in this place and it seems to stem from the fact that the language for your blog is indicated by the HTTP Useragent instead of the DB configuration, and thus it is loaded before the DB is initialized.

HTH,
Garvin

Posted: Mon Jun 12, 2006 10:09 am
by Col. Kurtz
so I will use todays snapshot that comes around 3pm?

Posted: Tue Jun 13, 2006 12:31 pm
by Col. Kurtz
I copied over the files from yesterdays nightly. a new error message:
serendipity error: could not include /www/htdocs/w00675d5//blog/serendipity_config_local.inc.php - exiting.
Please create the file yourself or check permissions
After setting it to 777 it works now