[Solved] Upgrade 1.6.2 => 1.7 Config. BaseURL lost

Having trouble installing serendipity?
Post Reply
User avatar
johncanary
Regular
Posts: 116
Joined: Mon Aug 20, 2007 4:00 am
Location: Spain
Contact:

[Solved] Upgrade 1.6.2 => 1.7 Config. BaseURL lost

Post by johncanary » Sun May 26, 2013 3:27 am

Hi,
I just have upgrade two blogs from a fresh 1.6.2. installation to 1.7.
I noticed the following in the Admin Interface, Configuration, Path: The field for
"URL to blog Base URL to your serendipity installation" was empty.

However the correct URL is still in the database table config::BaseURL.

But when you update/save the configuration without writing the correct value in that filed the old value in the database gets overwritten with an empty string and subsequently the corresponding smarty variable is empty, too.

Update: I just saw a new parameter in the db.config table: "defaultBaseURL". That's the one the admin interface seems to write to. "BaseURL" is untouched.

There might be a variable name mismatch somewhere. Seems to me like "defaultBaseURL" is inserted the first time the configuration is saved in 1.7.
(autodetect_baseURL is false in my blogs)
[end of update]

Which, at least in the case of my blog, has a negative side-effect.

Hope that helps.
Yours
John

Setup: Serendipity 1.7 and PHP 5.3.14 In the brand new 2k11 template (with default admin interface) and also a custom template based on the older competition theme with its own admin style. Screenshots available on request.
Last edited by johncanary on Sun May 26, 2013 11:32 am, edited 2 times in total.
Yours John
: John's Google+ Profile
: John's E-Biz Booster Blog powered by Serendipity 1.7/PHP 5.3.14

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Upgrade 1.62 => 1.7 Config. BaseURL lost

Post by Timbalu » Sun May 26, 2013 9:27 am

Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

User avatar
johncanary
Regular
Posts: 116
Joined: Mon Aug 20, 2007 4:00 am
Location: Spain
Contact:

[Solved] Re: Upgrade 1.62 => 1.7 Config. BaseURL lost

Post by johncanary » Sun May 26, 2013 11:28 am

Oh, thanks, Timbalu.
Yours John
: John's Google+ Profile
: John's E-Biz Booster Blog powered by Serendipity 1.7/PHP 5.3.14

Moder_20
Posts: 3
Joined: Tue Nov 04, 2014 2:28 pm

Re: [Solved] Upgrade 1.6.2 => 1.7 Config. BaseURL lost

Post by Moder_20 » Tue Nov 04, 2014 2:30 pm

Ye that works fine

Post Reply