• Resolved doctorproctor

    (@doctorproctor)


    Greetings — Realizing that Katie is busy this fall, I’m posting to Zotpress users who are using WPEngine as their WP host. We run an academic multisite and have long used Zotpress successfully on a number of sites, but at some point in recent past (perhaps the last month?), all references failed to import/sync. On Zotero libraries with fairly stable references that had previously been set up (and thus imported/synced), bibliographies display fine from the Zotpress cache, but with new setups, or if the Zotpress cache is emptied, no luck.

    I am seeing Katie’s recommendations #1 and 2 here, and will forward to my WPEngine support contacts, but it would be helpful if other Zotpress users on WPEngine could confirm the above.

    Btw, the specific error the WPEngine support person passed on to me is below, and for various reasons we are running Zotpress latest (6.1.6) with WP 4.5.1…thanks, Jim P.

    [01-Dec-2016 16:15:29 UTC] PHP Fatal error: Call to a member function getAll() on a non-object in /nas/content/live/lclark/wp-content/plugins/zotpress/lib/request/request.class.php on line 146

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter doctorproctor

    (@doctorproctor)

    I now have more info from WPEngine; apparently they are fully compliant with Katie’s recommendations, and suggested the issue below…ideas welcome…Jim P.

    I talked with Brett a bit on this matter and he summarized the problem down to these two lines in the code block he sent earlier....
    
    $response = wp_remote_get( $url, array ( 'headers' => $headers_arr ) );
    
    $headers = json_encode( wp_remote_retrieve_headers( $response )->getAll() );
    
    To be more specific about what Brett was indicating with these two lines above; The second line is trying to decode the json that is being returned by the request above it on that first line.
    It's attempting to grab headers and failing to do so. Not something that we could dictate or control, platform wise, it would be site specific, and how it is or has been configured differently.
    Plugin Author Katie

    (@kseaborn)

    Sorry I’ve been awol! Could it be the version of WP? I released an update a little while ago that addressed the change in WP’s request protocol, but it may not work with earlier versions of WP.

    Thread Starter doctorproctor

    (@doctorproctor)

    Yes, possible! I will ask our consultant if there are remaining issues with certain plugins/themes, then we will update asap to latest WP v, and I’ll let you know if that fixes it.

    Hope all is well, Katie!

    Jim P.

    Thread Starter doctorproctor

    (@doctorproctor)

    Yup, we were finally able to upgrade to WP 4.6.1 and Zotpress works again!…sorry for the bother, all.

    Jim P.

    Plugin Author Katie

    (@kseaborn)

    Glad it was a simple solution!

    I have the exact same issue now. WP 4.7.1 and Zotpress 6.1.6. Is that still just a matter of incompatible versions? Kind regards, Marc

    Fatal error: Call to a member function getAll() on a non-object in /home/elcont6/public_html/wp-content/plugins/zotpress/lib/request/request.class.php on line 146

    I tried downgrading the plugin, so far without success (I can’t downgrade WP, I’m afraid ?? )

    • This reply was modified 7 years, 10 months ago by marcchehab.
    Thread Starter doctorproctor

    (@doctorproctor)

    We just upgraded today to 4.7.1 and are using ZP 6.1.6, and I just checked (heart stopped a beat, as we use ZP extensively across our multisite) and no incompatibilities I can see, at least for us. So, thankfully we are not experiencing this issue.

    Jim P.

    Plugin Author Katie

    (@kseaborn)

    @marcchehab Hmm, that’s strange. What happens if you empty the cache or reset Zotpress?

    Hey Katie,

    I did both multiple times, used my user or a group to connect, created a new key and checked my citation style (apa) is on that list over at zotero.org. All check out. I also reinstalled different versions of Zotpress. Also, I do see the categories and tags, just the main list of the citations never works.

    The error it throws up is the following:

    https://www.elcontexto.org/wp-admin/admin-ajax.php?action=zpRetrieveViaShort…=&update=false&request_start=0&request_last=0&zpShortcode_nonce=16dbb06f31 Failed to load resource: the server responded with a status of 500 (Internal Server Error)

    Earlier in the console I see the tags/categories being extracted, and they work:

    https://www.elcontexto.org/wp-admin/admin-ajax.php?action=zpRetrieveViaShortcode&api_user_id=1237186&item_type=tags&is_dropdown=true&maxtags=&request_start=0&request_last=0&update=false&zpShortcode_nonce=16dbb06f31

    Kindest regards, Marc

    Plugin Author Katie

    (@kseaborn)

    Hmm, it’s curious that the tags/collections are working but the items aren’t. I think it’s best if you contact me with your Zotero user id, key, and some shortcodes: https://katieseaborn.com/contact/ I’m going to try to look at Zotpress issues this weekend.

    Thank you so much for your support! I’ll send you a message shortly. Kind regards, Marc

    Involutarily, I could try it again with a fresh WP install because I accidentally deleted my WP-SQL database ?? But it’s good to try this again ?? So, yeah, I still have the exact same problem.

    Might it have something to do with me being Swiss? E.g. book titles I use have Umlauts (??ü) and so on ?? You know, I’m wondering if it’s just a few booktitles it can’t process that stall the process.

    Kind regards,
    Marc

    • This reply was modified 7 years, 10 months ago by marcchehab.
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘import/sync issues on wpengine server’ is closed to new replies.