1.1 and Media Library, can't see my pics

Found a bug? Tell us!!
Post Reply
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

1.1 and Media Library, can't see my pics

Post by PerfectCr »

I cannot manage, or even see any of my pictures or thumbnails any more since upgrading. 1.0.4 was fine. Below is the error message. Help! :cry:

Code: Select all

SELECT  i.id, '' AS orderkey, i.name, i.extension, i.mime, i.size, i.dimensions_width, i.dimensions_height, i.date, i.thumbnail_name, i.authorid, i.path, i.hotlink, i.realname,
                     a.realname AS authorname
                     FROM serendipity_images AS i
       LEFT OUTER JOIN serendipity_authors AS a
                    ON i.authorid = a.authorid
                       

                       WHERE 1=1  AND i.path LIKE 'pics/%'

                     GROUP BY i.id
            ORDER BY i.date DESC  LIMIT 0, 9

/ Unknown column 'i.realname' in 'field list'
mattsches
Regular
Posts: 440
Joined: Sat Nov 05, 2005 9:35 pm
Location: Wiesbaden, Germany
Contact:

Post by mattsches »

Looks like your upgrade was not performed correctly, i.e. your database has note been updated. The column 'realname' was only added with version 1.1-alpha5 (as far as I can tell). Please try to upgrade again.

Alternatively, you can execute the respective statements given in the sql/db_update*mysql.sql files yourself. But only do that if you know what you're doing :wink:
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

mattsches wrote:Looks like your upgrade was not performed correctly, i.e. your database has note been updated. The column 'realname' was only added with version 1.1-alpha5 (as far as I can tell). Please try to upgrade again.

Alternatively, you can execute the respective statements given in the sql/db_update*mysql.sql files yourself. But only do that if you know what you're doing :wink:
I actually did run the install again and I got the same thing. What could have changed? Yeah I have no idea how to update mysql files on my own, my database is hosted with Godaddy.com.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You only write "I did run the install again".

What *EXACTLY* did you do? Please perform upgrades exactly as outlined in the FAQ on www.s9y.org.

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/
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

garvinhicking wrote:Hi!

You only write "I did run the install again".

What *EXACTLY* did you do? Please perform upgrades exactly as outlined in the FAQ on www.s9y.org.

Best regards,
Garvin
I've been using S9Y for over a year now and performed many upgrades. I extracted the files over the old files on the server exactly as outlined in the FAQ.

This is the first time I have done the upgrade where I did not see the "upgraded screen". I just went to the admin panel and it DOES say I am running 1.1.

I've followed the FAQ, as far as I can tell, all it says to do is simply extract the new files and copy them over the old ones on the server. I've done this for every upgrade I've run.

I reinstalled v1.1 twice and I still have no access to my Media Library :(
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

This is the first time I have done the upgrade where I did not see the "upgraded screen". I just went to the admin panel and it DOES say I am running 1.1.
A-ha! (Well, kinda.) It sounds like S9Y never recognized that it needed to do an upgrade. What I'm about to recommend is a little unorthodox, so back up your database before you try it!

Edit your serendipity_config_local.inc.php. Find the $serendipity['Version'] variable. Change it to "1.0.4". Visit the admin screen again, and it should run the updates and modify your tables for you.

If it doesn't, try "1.0.3", and let us know: it'll give us an idea of where to look.
Judebert
---
Website | Wishlist | PayPal
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

judebert wrote:
This is the first time I have done the upgrade where I did not see the "upgraded screen". I just went to the admin panel and it DOES say I am running 1.1.
A-ha! (Well, kinda.) It sounds like S9Y never recognized that it needed to do an upgrade. What I'm about to recommend is a little unorthodox, so back up your database before you try it!

Edit your serendipity_config_local.inc.php. Find the $serendipity['Version'] variable. Change it to "1.0.4". Visit the admin screen again, and it should run the updates and modify your tables for you.

If it doesn't, try "1.0.3", and let us know: it'll give us an idea of where to look.
Ok, as soon as I can get access to my site again I will run the backup plugin. I also have access to PHPMyAdmin to perform a backup there, but the inferface is very confusing and I have no idea how to perform a proper backup :(
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

judebert wrote:
This is the first time I have done the upgrade where I did not see the "upgraded screen". I just went to the admin panel and it DOES say I am running 1.1.
A-ha! (Well, kinda.) It sounds like S9Y never recognized that it needed to do an upgrade. What I'm about to recommend is a little unorthodox, so back up your database before you try it!

Edit your serendipity_config_local.inc.php. Find the $serendipity['Version'] variable. Change it to "1.0.4". Visit the admin screen again, and it should run the updates and modify your tables for you.

If it doesn't, try "1.0.3", and let us know: it'll give us an idea of where to look.
THAT WORKED!! Thanks you so much! The Media Library is now working! Thank you again! :)
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Finally, I got something fixed. I was starting to think I was in a slump!
Judebert
---
Website | Wishlist | PayPal
eddyjunior
Regular
Posts: 11
Joined: Wed Jan 17, 2007 7:42 am

Post by eddyjunior »

judebert wrote:
This is the first time I have done the upgrade where I did not see the "upgraded screen". I just went to the admin panel and it DOES say I am running 1.1.
A-ha! (Well, kinda.) It sounds like S9Y never recognized that it needed to do an upgrade. What I'm about to recommend is a little unorthodox, so back up your database before you try it!

Edit your serendipity_config_local.inc.php. Find the $serendipity['Version'] variable. Change it to "1.0.4". Visit the admin screen again, and it should run the updates and modify your tables for you.

If it doesn't, try "1.0.3", and let us know: it'll give us an idea of where to look.
Thank you very much, this worked perfectly.
francistill
Regular
Posts: 30
Joined: Mon Apr 17, 2006 4:45 am
Location: Wellington New Zealand

Post by francistill »

Just to let you know, I encountered the same problem and followed this procedure successfully. I ran into a bit of an obstacle after the upgrade because the system wanted to run some sql files that it couldn't. I revised the config file to show I was running 1.1 and FTPd it to the site and all was well. Thanks very much!
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

How about that? Maybe it's time to add this to the Expert.

Interesting; francistill, do you remember what those SQL errors were? If they were trivial, you'll have no problems. If they were important, you might start getting weird errors.

Most likely your user didn't have the "create index" right, or something similar. You may want to grant him the appropriate privileges, and run the upgrade again. Of course, if it's working, what the heck.
Judebert
---
Website | Wishlist | PayPal
francistill
Regular
Posts: 30
Joined: Mon Apr 17, 2006 4:45 am
Location: Wellington New Zealand

Post by francistill »

I suspect they were trivial but didn't keep a record. As soon as I reverted the config file to the proper version number (after the update ran) the website worked perfectly. Until I did that, I was caught in a virtuous circle - the script indicated there were sql files to run but said I had successfully upgraded and the "visit your website" link was visible. Once clicked, however, it went back to the upgrade install page.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Well, good job, and good luck! At least it's working.

If you DO have any problems, let us know.
Judebert
---
Website | Wishlist | PayPal
Post Reply