Forums

Can't delete book (12 posts)

  1. coopersita
    Member
    Posted 3 months ago #

    When book titles have apostrophes (') in the title, the delete button doesn't show up (I get a javascript error):

    http://wordpress.org/extend/plugins/amazonsimpleadmin/

  2. worschtebrot
    Member
    Posted 3 months ago #

    Hi, I will check this and commit the fix in the next update (hopefully within the next couple of days).

    Thanks for your feedback.

  3. worschtebrot
    Member
    Posted 3 months ago #

    PS: could you give me a sample ASIN of a book with an apostrophes in its title?

  4. worschtebrot
    Member
    Posted 3 months ago #

    This problem should be fixed. Get the new version 0.9.2!

  5. coopersita
    Member
    Posted 3 months ago #

    They do show up now, but when you click delete, they're not really deleted (you get the "it was deleted" ajax message, but if you browse the collection again, it's still there).

    With the new version I'm now getting a php error:
    Warning: implode() [function.implode]: Bad arguments. in /home/.../wp-content/plugins/amazonsimpleadmin/AsaCore.php on line 881

    I'm on Dreamhost.

  6. worschtebrot
    Member
    Posted 3 months ago #

    Sorry, my mistake.

    This problem should be fixed by version 0.9.3

    I also added some new placeholders again (AverageRating, TotalReviews, RatingStars)

  7. coopersita
    Member
    Posted 3 months ago #

    Sorry to be a pest, but I still can't delete books. The alert asking for confirmation shows up for all books now, but after clicking delete, they remain in the collection.

    At first you think it was deleted (they disappear from the list when you first delete it), but when you browse the collection again, it's still there. It's just deleted from the page, but not the database. Could it have to do something with my server?

    I really like the plugin. The idea of collections is fantastic.

  8. xmark99
    Member
    Posted 1 month ago #

    I found the bug in version 0.9.3

    Just open this javascript file:
    /wp-content/plugins/amazonsimpleadmin/js/asa.js
    Look for the following line near the bottom of the file:
    ajaxDel.request('http://localhost/ichdigital/wp-content/plugins/amazonsimpleadmin/AsaAjax.php');
    Modify to:
    ajaxDel.request('http://yourblog/wp-content/plugins/amazonsimpleadmin/AsaAjax.php');
    Make sure to provide your blog's root URL instead of the "yourblog" text above.

    I hope this gets fixed to be dynamic so it doesn't require any modification.

  9. worschtebrot
    Member
    Posted 1 month ago #

    this problem (what xmark99 describes) is fixed in version 0.9.3.1

    i hope deleting collection items now works fine for everyone... :-)

  10. coopersita
    Member
    Posted 1 month ago #

    Sorry, but no...

    When I try to delete a book from a collection I get the following error:

    Error: theList is not defined
    Source File: http://www.myblog.com/wp-content/plugins/amazonsimpleadmin/js/asa.js
    Line: 18

  11. worschtebrot
    Member
    Posted 2 weeks ago #

    Maybe this happened because my plugin was not completely compatible with the newest wordpress version (2.5) so far.
    With version 0.9.4 I adapted it to the new wordpress version and deleting collection item works in a different (and better) way now.
    Please get the new version and check if it works now.

  12. coopersita
    Member
    Posted 2 weeks ago #

    It works perfectly now!!! Thanks!!!

    Sorry to be a pest, but I just noticed that {$RatingStars} produces non-valid xhtml code (no alt attribute for the star images). I don't know if that's the plugin or amazon... no biggie.

Reply

You must log in to post.

About this Topic