• Resolved John Fallows

    (@john-fallows)


    I cannot get the [zotpressInText] shortcode to work in posts or pages. For example, I have the following shortcodes in the same post:

    [zotpress items=”JV8UHUBN” style=”chicago-author-date”] -> WORKS
    [zotpressInText item=”{JV8UHUBN}”] -> FAILS. The wheel just keeps on turning! Forever!

    I am just using shortcodes, no widget on the page.
    Have tried different themes and deactivating other plugins. Have run WordPress in Debug but no errors noted. Zotpress 6.0.3. (WordPress 4.3.1.) I am trying to run off a collection. In the Browse page, when I try to press Default button on the collection I get an undescribed error. But I am not sure if this is related.
    Running out of troubleshooting ideas at this end. Help appreciated.

    https://www.ads-software.com/plugins/zotpress/

Viewing 14 replies - 1 through 14 (of 14 total)
  • I have encountered the same/similar issue that did not happen when I posted the content.

    Have a look at this:

    https://blog.hci4d.org/hanteng/en/2015/09/try/

    It worked before but now the wheels just keep turning without stops…..

    I saw error messages from the console of my chrome browser:

    zotpress.shortcode.intext.js?ver=4.3.1:237 Uncaught TypeError: Cannot read property ‘replace’ of undefined

    237 line goes like this:

    var intext_citation_params = JSON.parse( jQuery(“#”+intext_citation_id, postRef ).attr(“rel”).replace( /’/g, ‘”‘) );

    Hope it is helpful to take the troubleshooting forwards.

    Hello, Just to report that my website has just downgraded the Zotpress plugin to 5.5.5 version and it is working again.

    Thread Starter John Fallows

    (@john-fallows)

    Thanks. I will have to find a previous version and try. I am pretty sure it was working properly before the “update”. Sigh.

    Plugin Author Katie

    (@kseaborn)

    Hi all,

    There was a massive change to the code (moving most of the code from PHP to JavaScript) in order to support auto-updating:

    https://www.ads-software.com/support/topic/zotpress-60-feedback?replies=38

    I tried to test all cases I could think of, but there’s been a few surprises.

    @john Fallows I will test out your shortcodes and hopefully figure out what’s going on.

    @hantengunu Can you post some examples of your shortcodes?

    Plugin Author Katie

    (@kseaborn)

    Question for all — are you including the required [zotpressInTextBib]? If it’s not there, it fails. If it’s there, it works for me.

    [zotpressInTextBib] is there, still,

    “uncaught type error: cannot read property ‘replace’ of undefined” in line 237 (var intext_citation_params)

    Downgrade to 5.5.5 solves the issue.

    Plugin Author Katie

    (@kseaborn)

    @rudfan Can you contact me with your API id and key plus the shortcode (or even full text of the page/post) that you’re using? https://katieseaborn.com/contact

    Thread Starter John Fallows

    (@john-fallows)

    Hi Katie. First, let me thank you for a wonderful plug-in. Zotero is a very useful tool and using it with WordPress is a real bonus.

    Now, I see what you mean. No, I had not been including [zotpressInTextBib] on any particular post. I have a separate bibliography page on the web site. What I would like to be able to do is citations on each post (where needed) that references to a master bibliography for the whole site. Is that possible?
    The web site in question is https://complexity.fallows.ca

    Plugin Author Katie

    (@kseaborn)

    @john Fallows Since the requests are tied to the bib, you’d have to:

    1) Include the [zotpressInTextBib] on every post/page that has in-text citations
    2) Hide the output for this bib with CSS if you don’t want it to be displayed
    3) Manually manage a separate [zotpress] bib on the master page. Maybe tag items or duplicate items in a new collection on the Zotero side so you don’t have to manually change the shortcode every time.

    Hi Katie,

    Thanks for the great plugin. Zotpress solved my problem with dynamic pages of citations. My problem is I had to convert all the pages I created using the [zotpress collection_id=”xxxxxxxxx”] shortcode to posts and they stopped working. Even new posts I create with the shortcode no longer work. Maybe it has something to do with the other plugins I use?

    Any help would be appreciated.

    Links to non-working posts are on this page:
    https://thomaszuckerscharff.com/ransomware-citation-library-from-zotero/alphabetical-list-of-malware-variants/

    On the other hand this is a page that works perfectly:
    https://thomaszuckerscharff.com/ransomware-citation-library-from-zotero/

    Plugin Author Katie

    (@kseaborn)

    @tzucker Can you post an example single page? I clicked through a couple links but couldn’t find anything. What I’m seeing in Firebug is that a lot of your plugins are throwing errors (pdf-print, social-media-icon), so it sounds like it’s a larger issue. You can try deactivating your plugins until it works again.

    This is a post that is not working and was working as a page

    https://thomaszuckerscharff.com/tag/cryptowall-1-4/

    This is a test page that is working which I created just now

    https://thomaszuckerscharff.com/test/

    The plugins you mention have been installed ever since I started using ZotPress. The only ones that are new are:

    • Multi-Column Tag Map
    • Page-List (which I just deactivated)
    • WP Hide Post (which works on both post and pages and seems to work fine with ZotPress shortcodes)

    There are one or two others which are not active, but are installed.

    I have yet to find a good replacement for the pdf print plugin. And I like the floating social media Icons plugin. My son, who is my wordpress guru and one of the writers of PressForward, says there are a couple of problems on my WP site. Some I have fixed others are still problems.

    Plugin Author Katie

    (@kseaborn)

    Did you check out the Options page as recommended on the other thread? I think this may be the issue as I’m not seeing the normal Zotpress files being loaded.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘zotpressInText shortcode not working’ is closed to new replies.