I'm not sure what I did wrong..

Having trouble installing serendipity?
Robyn

I'm not sure what I did wrong..

Post by Robyn »

My installation said it went OK and now I get this error...

Query failed:
SELECT


e.id,
e.title,
e.timestamp,
e.comments,
e.exflag,
e.authorid,
e.trackbacks,
e.isdraft,
e.allow_comments,
e.last_modified,

a.realname AS author,
a.email

, e.body, e.extended

FROM
serendipity_entries AS e
LEFT JOIN serendipity_authors a
ON e.authorid = a.authorid
LEFT JOIN serendipity_entrycat ec
ON e.id = ec.entryid
LEFT JOIN serendipity_category c
ON ec.categoryid = c.categoryid

WHERE isdraft = 'false' AND e.timestamp <= '1113963784'
GROUP BY e.id
ORDER BY timestamp DESC
LIMIT 15
/ Unknown column 'a.realname' in 'field list'


what can i do to fix it?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: I'm not sure what I did wrong..

Post by garvinhicking »

It seems you performed an upgrade frmo a previous version without executing the upgrading SQL files.

Those should get automatically detected and installed, but your User SQL account needs to have ALTER TABLE (and basically all other) Privileges to perform upgrades.

Either look at sql/db_update_0.8*.sql from your previous version and execute queries manually (by repolacing {...} placeholders) or you edit your serendipity_config_local.inc.php file, insert your old version number and then try the automatic upgrade again. It should show up as soon as you access serendipity_admin.php via browser.

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/
exe

Post by exe »

I need some help too. I've got the same error. My old version was 0.7.1.

I tried to change the version number in the file "serendipity_config_local.inc.php" (I had to chmod the file with a script first - o.O). I tried the automatic upgrade again after that. But serendipity showed me the "Welcome back"-Screen with the version number 0.7.1 - no automatic upgrade. :-(

I can't find a sql/db_update_0.7.1_0.8.sql file, too?

Please help me! I think I am not a n00b, but I can't upgrade my s9y... :-)

--
mfG Björn
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Björn,

if you get a welcome screen with 0.7.1 message, you did not extract the 0.8 release files in your serendipity directory. Please check if you overwrote all files frm the 0.8 release bundle; you can check if the files sql/db_update_0.8* exist.

There is no db_update_0.7.1 sql file, because DB upgrade have only been made starting from 0.8-alpha2 or so. Those files should exist!

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/
Guest

Post by Guest »

So if the MySql database is hosted on the provider's site (in my case aplus.net) then I can't upgrade to the .8 release? I'm a newbie (*hides*) but have spent hours on this forum trying to get my version upgraded because I love all of the new features?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Guest,

you can only upgrade your Serendipity version if you have FTP access to the server where your Serendipity installation is in, and you have a working Serendipity setup which can access the MySQL database.

In this case follow our upgrade guideline at http://www.s9y.org/63.html

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/
Guest

Post by Guest »

Thank you Garvin!
OweH
Posts: 3
Joined: Tue Apr 26, 2005 1:03 am

Re: I'm not sure what I did wrong..

Post by OweH »

Robyn wrote:My installation said it went OK and now I get this error...

Query failed:
SELECT
(...)
/ Unknown column 'a.realname' in 'field list'

what can i do to fix it?
By any chance: is your PHP version 4.1.x?
Meine Gedanken im Netz:
Sven's Netzblog
mini me

'a.realname' in 'field list'

Post by mini me »

Hello,

Is there a posiblity to write a patch?

i have the same problem.

greetings Me
OweH
Posts: 3
Joined: Tue Apr 26, 2005 1:03 am

Re: 'a.realname' in 'field list'

Post by OweH »

mini me wrote: Is there a posiblity to write a patch?
i have the same problem.
As long as Garvin does not ACK the brokeness of the upgrader on PHP 4.1 (as this is only my uneducated quess) and provides a fix, you will have to upgrade your PHP to 4.3, which is of course a good idea nevertheless.

Grüße,
Sven.
Meine Gedanken im Netz:
Sven's Netzblog
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: 'a.realname' in 'field list'

Post by garvinhicking »

We are not going to provide a patch for this, as it is a PHP issue. This also forces users to upgrade to PHP 4.3, which is a VERY good thing in many other issues, so we encourage this upgrade.

I'm realy sorry for the inconvenience, but I think this is the best possible way. I updated the NEWS on www.s9y.org to tell about this issue.

Thanks a lot for your feedback,
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/
mini me

upgrade mysql

Post by mini me »

I will upgrade mysql

first thank you for your help

greetings Me
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: upgrade mysql

Post by garvinhicking »

Mini me: In fact you should upgrade PHP and not MySQL! :-)

Best 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/
mini me

quick and dirty solution

Post by mini me »

Patch:

update table: weblog_tabelauthors

Add field type: Varchar(128) -> realname


It works for now, have not tested it for the entire site......

Mini Me
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: quick and dirty solution

Post by garvinhicking »

Mini me, by doing this you are patching the most obvious issue. But there are MANY many other database upgrade from 0.7.1 to 0.8 which you are now missing and which will create other woes.

The only real solution is to upgrade PHP to at least 4.2 (I think) and then do the serendipity upgrade again; or patch the ISUP2DATE definition like posted earlier in this topic.

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