• Resolved miquelpontes

    (@miquelpontesgmailcom)


    Hi,

    One of the last Zotpress updates (can’t tell exactly which, but I’m actually in version 7.1.2) introduced a new error when using the shortcode in certain pages:

    [zotpress tag="Eubranchus vittatus" style="entomological-society-of-america" sortby="author" order="asc" target="new"]

    When I clear the cache it works just fine, but when I reload the page it renders the following message:

    {"status":"empty","instance":"zotpress-3670f58df4370b09883837bf68506924","meta":{"request_last":0,"request_next":0},"data":"0"}
    There was a Zotpress error: No items found.

    Not all pages render this error (for instance tag=”Goniodoris castanea”) always works fine. My guess is the error is related to some kind of Zotero content it is trying to display.

    My WordPress is fully updated (version 5.2.2) with Tempera Theme (also fully updated to version 1.7.2).

    Any help is welcome. Thank you for this wonderful plugin.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Katie

    (@kseaborn)

    I’ve made some changes to tags and the cache in the upcoming 7.1.3. I copied the shortcode (and tag) and tested on my end, and it seems to be working … but if you update and it’s still showing this error, please let me know.

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    Hi Katie,

    I updated to the last version of Zotpress (7.1.3), cleared the cache and tried the shortcode:

    [zotpress tag="Eubranchus vittatus" style="entomological-society-of-america" sortby="author" order="asc" target="new"]

    First time I load the page, it loads and displays the Zotero entries with no problem.
    When I reload the page, the error that appeared before the update does no longer display but no Zotero entries are displayed, I get “There was a Zotpress error: No items found” message instead.
    Clear the cache, Zotero entries display, reload, No Items found.

    Pages that worked before (tag=”Goniodoris castanea”) still work fine all the times.

    Any ideas?

    Plugin Author Katie

    (@kseaborn)

    Hmmm … this is working on my end. Can you provide some examples of shortcodes that are working for you? Maybe we can compare and pinpoint the issue.

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    This shortcode only works after clearing the cache, failing upon reload:

    [zotpress tag="Eubranchus vittatus" style="entomological-society-of-america" sortby="author" order="asc" target="new"]

    (active at URL: https://opistobranquis.info/en/guia/nudibranchia/cladobranchia/fionoidea/eubranchus-vittatus/ )

    And this one (with far more bibliographic references than the first) works always:

    [zotpress tag="Goniodoris castanea" style="entomological-society-of-america" sortby="author" order="asc" target="new"]

    (active at URL: https://opistobranquis.info/en/guia/nudibranchia/doridina/doridoidei/onchidoridoidea/goniodoris-castanea/ )

    It’s not a matter of shortcode formatting, but on contents display. Some contents on the first “tag” provokes an error.

    Thanks !

    • This reply was modified 5 years, 7 months ago by miquelpontes.
    Plugin Author Katie

    (@kseaborn)

    I think I found the culprit. You have a lot of tags for each item, correct? The tags are saved together with the item right now, but it’s too big for the cache, so it’s not saved to the database. That’s why it loads first but can’t load second (from the cache). This is going to take some refactoring so please stay tuned for now …

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    Yes, there are references with lots of tags (in the hundreds at times), your assumption is right. I look forward for a solution. Thank you for your support and dedication along the years.

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    After upgrading to version 7.1.4 it works perfectly.

    Thank you very much Katie.

    Plugin Author Katie

    (@kseaborn)

    Great! Thanks for confirming.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Zotpress error in certain cases’ is closed to new replies.