Support » Plugin: Book Review Library » Problems With Permalinks

  • Resolved Tristano Ajmone

    (@tristano-ajmone)


    Dear Chris,
    first of all, thanks for this great plugin! I am testing it on localhost before installing it on a client’s website. I’ve encountered a problem related to PERMALINK settings: if I chose to set permalinks to display the posts titles, book reviews links to authore, reviewer, genre, ecc., point to non-existing “pages” (ie: non existing URLs).
    For example, I have created a book review at this url:

    http://localhost/localhost/WordPress31/book-review/the-men-who-stare-at-goats/

    (which points to my local AppServ; the double “localhost” is correct, it’s due to the folders structure, and my local WordPress is running fine)

    If I then click on the reviewers’ name I am addressed to a non-existing URL (“requested page unavailable”):

    http://localhost/localhost/WordPress31/?review-author=trix/

    The above URL is where the plugin-generated link actually points to; but after clicking, the browser is redirect to this page:

    http://localhost/localhost/WordPress31/review-author/trix/

    As you can see from the URL, even though I’ve set WordPress to use article name as permalink, the plugin generates a link ignoring this setting. Same issue with genre, illustrators, and all the rest.

    My client’s website is set to permalink by article title, and I can’t change that option. Is there a way I can work around this issue and make it work?

    Maybe it’s just me that I haven’t understood clearly how to use the plugin. If I can solve this issue (testing it locally first) I’ll propose the plugin to my client.

    http://wordpress.org/plugins/book-review-library/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Chris Reynolds

    (@jazzs3quence)

    The link URLs are correct. Are you saying that those links don’t actually go to the review author archive?

    With “pretty permalinks” enabled, WordPress will automatically change ?review-author=trix to /review-author/trix/. If that’s not happening, or if that page is not loading, then that is the problem, not the URLs in the reviews.

    Thanks for your prompt reply!

    Exactly, as you said: the URL in the link is “?review-author=trix” and when I click on it it gets converted to “/review-author/trix/”.

    The final doc-URL being:

    http://localhost/localhost/WordPress31/review-author/trix/

    Where I get the error message that the page doesn’t exist.

    I’ve tried switching themes, changing permalink settings and saving them again, but still: it only works when permalinks are set to default.

    I have also disabled all other plugins.

    The point is that when I set permalinks to default it works fine. All other permalinks settings end up pointing to non-existing page when I click on reviewer, author, series, ecc.

    Could it be something to do with other WP settings? or the fact that the localhost URL is long? I can’t really experiment with it on my client’s website online because the website is fully running and I can’t mess about with it.

    I’m determined to try to overcome this issue and then use the plugin. I’ll also translate it into Italian (I am Italian and so is the website I want to install it onto).

    Thanks a lot for your support!

    Plugin Author Chris Reynolds

    (@jazzs3quence)

    Let me do some testing this week and get back to you. I haven’t had this issue in my dev environment, so I’m going to try a fresh install. This is something that’s come up a couple times so I want to try to nail the issue once and for all.

    Thanks for reporting it. 🙂

    Thanks a lot Chris! I hope it’s something easy to solve.
    Bare in mind I’m using the Italian translation of WordPress — shouldn’t really be an issue, but you never know.
    Best regards,
    Tristano

    Plugin Author Chris Reynolds

    (@jazzs3quence)

    Yeah, that shouldn’t make a difference, but I’ll keep it in mind. Let me know if you’d like to help translate the plugin into Italian 🙂

    Hi Chris,

    I’ve finished the translation in Italian (using Poedit).
    How should I send you the files?

    After installing my translation file in my localhost test WordPress (I’ve just addedd the .mo and .pot file in the lang folder of the plugin, adding “-it_IT” at the end of the filenames, and it reckognized them automatically, ignoring the English files), I’ve encountered some menu voices which don’t translate:

    In the WP Admin sidebar “Book Reviews” of the plugin, the first three menu voices (Book Reviews/Add New/Review Authors) remain in English even though all items in the pot file were translated!

    As for the rest, it’s all in Italian now.

    One question: I’ve notice that you can add a New Rating but then you can’t delete it. I was just testing with it, unsure about what to expect (is it for adding stars, or even different type of ratings?) — then realized I can’t delete from the Admin side.

    Plugin Author Chris Reynolds

    (@jazzs3quence)

    re: italian translation —
    Let me fix the menus that you found that were untranslatable and then you can email me the files. My first name at jazzsequence dot com.

    re: ratings —
    So here’s the deal with the ratings: in theory, a rating system could be easier to handle with post meta rather than using taxonomies for it. The reason I used a taxonomy is because when I originally wrote this plugin (for two librarians), one of the requests was that you be able to sort/search by rating, and taxonomies are the easiest ways to group things together (you can do it with post meta, too, but it’s trickier and you need to alter the loop to do so). When the plugin is activated, the 5 star ratings (which are taxonomy terms) get created and the menu gets hidden. It’s still there if you go directly to wp-admin/edit-tags.php?taxonomy=rating&post_type=book-review — which I suggest doing otherwise you’ll get some unexpected results since the rating corresponds with the stars that display on the front end — if you use a rating that isn’t 0 – 5, the front-end display won’t know how to handle that. How did you add a new rating, by the way? I’ll need to address that so it doesn’t happen again.

    Plugin Author Chris Reynolds

    (@jazzs3quence)

    I’ve found the permalink issue. Working on a fix now.

    Plugin Author Chris Reynolds

    (@jazzs3quence)

    Permalink issue should be resolved in 1.4.3.

    So should the untranslated strings. I’ve also removed the link to add a new rating from the New Book Review page.

    Thanks a lot Chris! I’ve sent you the translation files (hope I got the address correct, shold though!).

    Hopefully, the Italian files could be inserted in the new edition of the Plugin — I’ve renamed them “book-review-library-it_IT.mo” and “book-review-library-it_IT.pot” and the Italian edition of Word Press automatically picks them ignoring the standard English files. So Word Press in other languages should ignore the Italian files and go for the standard lang files (or their localized language, if found).

    As for the Ratings, I was just experimenting on localhost, no real expectations. I was wondering what it could be used for along with the 5 Star ratings. I think is better that you removed it, it might generate confusion (especially the “temptation” to fiddle with it 😉

    Tristano

    V 1.4.3 WORKING !!

    No more issues with permalink. Italian translation working fine.

    One last admin-menu voice left untraslated: “Review Authors”. All other admin voices translate into Italian.

    Thanks a lot. I’ll be inserting it in my client’s blog and post you the link as soon as it’s running!

    Plugin Author Chris Reynolds

    (@jazzs3quence)

    I got the language files. Thanks!
    I’ve got another language file that’s 100% complete that I want to include in the next update as well.

    I’ll take a look at the Review Authors strings. Probably I just forgot to fix that one.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Problems With Permalinks’ is closed to new replies.