WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Galleries LOST in WP 3.0 upgrade... (14 posts)

  1. windyweather
    Member
    Posted 4 years ago #

    I had a small site that I was working on, and I just upgraded to WP 3.0. ALL THE GALLERIES ARE LOST.
    THey still appear in the post as edited, but they galleries are empty when the posts are displayed. THe Media Libraries do not contain any pictures. The pictures are still on the site.

    MAJOR BUG IN WP 3.0, RIGHT?????

    THIS IS A SHOW STOPPER RIGHT???

    Yes, I'm shouting. I'm only glad that I found this before I upgraded my own site or another clients REAL site. Sigh...

    Anybody else seen this??

    How do I back out of WP 3.0?

    And the real question is: How do I rebuild these galleries?

    The pictures are still up on the server under uploads/2010/02... So I need to rebuild the galleries by having WP recognize these files are being in the "media Library". I don't see a way to add files on the server to the media library and I don't see a way to make a gallery for a post from files in the media library once I get the files to show up there.

    HELP!!!

    thanks,
    ww

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    MAJOR BUG IN WP 3.0, RIGHT?????

    No such bug has been confirmed yet. It's more likely that there's an issue in your particular installation.

    Have you checked your uploads path in Settings/Media? Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-specific problems?

    - resetting the plugins folder by FTP or phpMyAdmin? Sometimes, an apparently inactive plugin can still cause problems.

    - increasing the available memory?
    http://wordpress.org/extend/plugins/memory-bump/
    http://wordpress.org/support/topic/253495#post-1017842

    - reviewing http://wordpress.org/support/topic/411649

  3. windyweather
    Member
    Posted 4 years ago #

    Wait a sec.......

    Did you understand that I can create NEW GALLERIES...???

    The problem is that after the upgrade, all galleries that were already there are LOST when the upgrade occurred.

    Aren't all plugins automatically disabled during the upgrade???
    Then re-enabled after??

    - ww

  4. windyweather
    Member
    Posted 4 years ago #

    Let me clarify. Galleries are still there. But are not displayed and the MEDIA galleries for each post are empty.

    I can easily create new galleries by uploading files, but the files are stil on the server.
    Doesn't sound like a MEMORY or plugin problem to me, since galleries still work fine. It's just that they were lost on the upgrade.

    Can someone tell me how galleries are stored so I can check those tables to see if they are ok.

    Thanks,
    ww

  5. windyweather
    Member
    Posted 4 years ago #

    Changing to default plugins and theme does not fix the problem.

  6. Aren't all plugins automatically disabled during the upgrade???
    Then re-enabled after??

    Unfortunately, no.

    What esmi suggested is what we like to call "basic troubleshooting," they're quite literally the first step in solving almost every problem. Try all of esmi's suggestions, then let us know how it went. Believe it or not, you may actually find the cause. If not, it will certainly make further troubleshooting much easier by process of elimination.

  7. windyweather
    Member
    Posted 4 years ago #

    Have I not reported doing all that he suggested?

    I guess I could build a site of the previous version and do a test. No plugins and no themes. I'll get back to you on that.

    Then we could call it a bug, right??

    - ww

  8. Have I not reported doing all that he suggested?

    No, you only reported, "Changing to default plugins and theme does not fix the problem." You have yet to report on resetting the plugins (not the same as deactivating) and increasing the available memory.

    I guess I could build a site of the previous version and do a test. No plugins and no themes. Then we could call it a bug, right??

    Not necessarily. That still wouldn't rule out a problem with your blog.

    If you still want to test for the existence of an actual bug, download and install a fresh copy of WordPress 2.9.2 into a new directory and database with only the Default theme and no plugins active. Create a page or a post with a gallery and verify that it works. Then, upgrade to 3.0 via the automated upgrader and check the gallery again.

  9. windyweather
    Member
    Posted 4 years ago #

    Can you spell "Fetch a rock". I may get around to doing some of this, but don't be surprised if someone else reports this problem.
    I have updated WP faithfully for many releases using the automatic method and never had a problem before. Now WP has destroyed my faith since this problem is DISASTROUS and is VERY HARD TO RECOVER FROM, even with backups.

    Please provide a URL to a clean copy of WP 2.9.2. ooooooo.. Look at that. someone just updated the release archives to include it when it wasn't there an hour ago... How fortuitous...... hehehehehehe........

    I have build a spanking clean site with 2.9.2, no themes and no plugins [other than that provided] and then added one post with a gallery and then upgraded it. It did not destroy the gallery, but I had to upgrade manually since the machine timed out after 60 seconds during the upgrade. So it's not simple to cause the failure. I may get around to testing some more cases... What if the pictures are a month old, for example..

    BUT I STILL NEED HELP HERE.

    The pictures are still up on the server, but the media library has forgotten them. So the table for the media library has clearly been trashed, or deleted or something.

    How can I add entries to he media library without uploading new images???

    They are in the uploads/2010/02, /03 .. standard convention, but gone from the media library.

    I see the Attach function, which will allow me to get them back in the postings once I get them back in the library.

    What's the table name and is there only one table that I have to RESTORE??

    Have a good one.
    - ww

  10. @mercime
    Volunteer Moderator
    Posted 4 years ago #

    @windyweather - some things I would do:

    1. Run Settings > Permalinks

    2. Go to Settings > Miscellaneous and
    a) see if any changes have been made to structure of your uploads folder e.g. default is wp-content/uploads - you might have made changes there before, so restore to your structure, OR
    b) did you check or not the feature to "Organize my uploads into month- and year-based folders" - you might or might have not done it before, so restore settings there

  11. windyweather
    Member
    Posted 4 years ago #

    Thanks.

    Checking settings:
    Permalinks: /%year%/%monthnum%/%postname%/ no change made by the upgrade.

    Media: Still set to he default of wp-content/uploads, checkbox is still checked.

    Of course any changes here will not get the table fixed that relates media to posts. Still no way to add media that is already on the server to this table [whatever it is] to allow me to attach media to posts? I only see the new media that I added today after the upgrade and before I noticed that the table was trashed.

    Thanks,
    ww

  12. @mercime
    Volunteer Moderator
    Posted 4 years ago #

    3. Tools > Export XML and save to computer. Open up the XML file and find:
    <content:encoded><![CDATA[<img src="http://yoursiteyrl.com/wp-content/uploads/2007/11/imagetitle.jpg" alt="At text" />
    to check URL of your galleries. Should be many of those img src's in XML file

    - Create free account at WordPress.com and import XML file there PLUS check Include Attachments. If you had those img src's correct, then you will have generated Galleries in your new account. Tools Export > XML and save file to computer and then Backup Database before you do next step.
    - Import XML from WP.com account to your WordPress install, again you must check "Include attachments" when you import. No worries about duplicate posts since WP will check on this. What we're doing is recreating the links to the attachments.
    - Remember to delete new WP.com account

    Did this way back WP 2.3 when something happened to client's media library files. I hope it works for you.

  13. windyweather
    Member
    Posted 4 years ago #

    Thanks.. I get it now. I actually just imported it in place. The second blog is not required. Just edit the XML file to replace all instances of the previous URL with the new one and then import.

    After importing a previously edited and fixed XML file, the galleries are all apparently fixed now. I just re-imported the file that I used to move the blog to it's new URL in the first place. Not sure why the galleries had disappeared, but they are back now. And I didn't lose the work that I had done in the mean time.

    Thank you,
    ww

  14. @mercime
    Volunteer Moderator
    Posted 4 years ago #

    "Just edit the XML file to replace all instances of the previous URL with the new one and then import."
    - OK, you did not reveal that important small tidbit that you moved your WP install to new domain ... Glad you had it resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic