• I am trying to set up ZotPress and I got to the point that WordPress connects to Zotero. THe script tells me everything is fine and when I log in to my Zotero account, I can see that ZotPress made contact with my Zotero bibliography. However, when I go to the browse page in ZotPress, the script seems to hang on loading the bibliography. Or rather, the script seems to have died as I cannot find any ZotPress related processes when this happens. My library is not very large (about 1200 items without any pdf links), so that can hardly be the problem. I am running the most recent WordPress version on a Raspberry Pi running Buster (with PHP 7.3). cUrl comes with Buster by default and I did set the X-Frame-Option as suggested (whatever that was exactly) in .htaccess. The theme I use (Colibri-WP) does not seem to enable jQuery, but as Katie indicated, the ZotPress code should take care of that (which it does with a hook that seems fine to my (admittedly limited) PHP skills). So, what could be going on? I also noticed that there are now four ZotPress generated tables in my wordpress database–one with my user information (wp_zotpress), one with just two columns (id and cache) with entries 1 and empty, respectively (wp_zotpress_oauth), while the remaining two tables are completely empty (including wp_cache, which probably should not be empty)… Any suggestions? I find that I do not really know how to troubleshoot this issue.

    Many thanks,
    Eisso

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter atzemaej

    (@atzemaej)

    Okay, I figured it out (I had the group privileges set to NONE in my Zotero account). Everything works fine now. One question, though. I am using shortcode to set up a searchable bibliography, but I do not seem to be able to limit the search to one toplevel, i.e searching through [zotpressLib userid=”000000″ type=”searchbar” toplevel=”11111111″] seems to ignore the toplevel= … part and still gives me results that are not under toplevel 11111111. Is that by design or would fixing this be an idea for the next version? I have a bibliography that I want to make publicly available, but I would like the rest of my Zotero library to remain private.

    Another thought I had is that the shortcode could be used to generate the list of publications in the online version of a CV (provide that grouping by tag works). For that, however, the code ideally would have to be able to suppress the CV owner’s name. Not sure how many people keep track of their publications in Zotero (I do not right now), but such a cv-mode might be helpful in case someone wants to maintain an online cv as well.
    Thanks,
    Eisso

    Mark

    (@codeispoetry)

    I have also noticed the toplevel option seems to work somewhat shakily. When it does work, it presents a heading that is not crucial but can only be hidden with CSS. Like you, I didn’t want to make available a full library. The workaround solution I have used is to create a new group library in which I place just the publications on the list (a peronal publication list).

    I think the option of suppressing the name won’t be of use to many folks who (also) have co-authored publications on their online CV, so it may be a bit too niche for a CV option?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘ZotPress hangs on loading database’ is closed to new replies.