WordPress.org

Forums

WP Photo Album Plus
[resolved] Cannot edit existing albums (5 posts)

  1. runBy
    Member
    Posted 4 years ago #

    Hi, I have loaded the plugin, and have successfully created albums and uploaded pictures to them. The problem is that I can't seem to edit an existing album, and I only get an error. If I try to change any attribute of the album including the title, description, parent etc, I get the error stating simply "Album could not be updated." If I edit the album data directly using phpMyAdmin, there is no problem and the data updates. I have tried unsuccessfully to find any log files, or any further error messages.

    Does anyone else have some light to shed on this problem?

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 4 years ago #

    Do the following:
    Place define('WP_DEBUG', true); in wp-config.php and try again.
    This will most likely produce an informative errormessage.
    Copy the complete errormessage into this forum, and i - again most likely - can fix your problem.

  3. runBy
    Member
    Posted 4 years ago #

    Hi, and thanks for the response. After turning on the debugging and attempting to change the Description field, the following error message was returned:

    WordPress database error: [Incorrect integer value: '' for column 'main_photo' at row 1]
    UPDATE wp_wppa_albums SET name = 'Test2', description = 'A second test. Can I update you? No, I can\\'t.', main_photo = '', a_order = 0, a_parent = 0, p_order_by = '0', cover_linkpage = '0' WHERE id = 4

    I found that once I changed the album cover from random to a specific photo, I could update the album successfully! :) Thanks for leading me to find the workaround!

    runBy

  4. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 4 years ago #

    Thanx for your info. So it is dependant of the sql settings.
    I will fix this in a later rev by supplying a default version there.

  5. runBy
    Member
    Posted 4 years ago #

    No problem, and thank you for a great plugin! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Photo Album Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic