[email protected]
Forum Replies Created
-
Forum: Plugins
In reply to: [Zotpress] Zotpress 6.0: FeedbackKatie,
I had to put this in my header.php javacript to fix my issue with zotpressLib shortcode failing.
jQuery.ajaxSetup({ xhrFields: { withCredentials: true } });
The issue was that the ajax URL was https, but the script itself was http so it was treated as cross-domain. The cookies weren’t sent so the nonce check was failing. You might want to update your javascript to handle the -1 result in data when check_ajax_referer fails.
Forum: Plugins
In reply to: [Zotpress] Zotpress 6.0: FeedbackHi Katie,
I just upgraded to the latest version 6.0.3. We are using a group account. The zotpressLib shortcode no longer works. I’m using it without any attributes. There is a javascript error in zotpresslib.dropdown.js. You can confirm that here: https://oscar-apti.org/bibliography/
The group type is private. Is that an issue?
On the admin side the rendering of the tag/item browser is messed up in Chrome. The highlighted blue box under the dropdown is covering up the item list below it.
I noticed there is no option to sync with the zerver. Are you talking to the zotero server now versus keeping a local copy of the data?
I found the issue. zopress.frontend.js is not enqueued.
A workaround to this issue is to comment out line 283 of zotpress.php
//if ( $GLOBALS['zp_is_shortcode_displayed'] === true )
this global variable is set in shortcode.php at line 969, but the shortcode class is not instantiated on every page (cacheing?). I don’t have time to study the life-cycle of shortcode construction to give a better answer at the moment, and I’m not concerned about extra javascript downloaded.
I have the same issue. Changing the collection dropdown does not refresh data in that collection.