error after update

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

error after update

Post 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
Marc
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: error after update

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

Post by Col. Kurtz »

I´ve uploaded them again, without any effect.
Marc
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hm, maybe this problem only happens when using the multilingual stuff?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

Post 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...
Marc
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

Post 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?
Marc
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

Post by Col. Kurtz »

so I will use todays snapshot that comes around 3pm?
Marc
Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

Post 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
Marc
Post Reply