pdfernhout / narrafirma

Single-page web app for Participatory Narrative Inquiry (PNI)
25 stars 8 forks source link

Narrafirma Webapp Not Loading #36

Closed sfqua closed 3 years ago

sfqua commented 3 years ago

Hi hi, The webapp for Narrafirma on Wordpress doesn't seem to be loading any more. It was working last week, and I can't tell if an update has gone through? The menu of projects now is arranged differently than before - it previously was more vertically oriented... so that's my only clue that maybe something changed? Could it be my actual Wordpress installation? Or something else?

Here are screenshots:

Sorry and thank you! -Fisher

cfkurtz commented 3 years ago

Hi Fisher, I am sorry I did not notice this right away. Yes, that's version 1.5.0, and you must have the auto-update version turned on.

The spinning wheel appeared after you clicked on "Start NarraFirma," I am guessing. Could you open your browser's development console and tell me what it says there (or show me a screenshot)? That should help me understand what is happening.

sfqua commented 3 years ago

Hi Cynthia, Thank you so much for the help!

Here's a screenshot. -Fisher [image: Screenshot 2021-10-03 185238.png]

On Sun, Oct 3, 2021 at 6:14 PM Cynthia Kurtz @.***> wrote:

Hi Fisher, I am sorry I did not notice this right away. Yes, that's version 1.5.0, and you must have the auto-update version turned on.

The spinning wheel appeared after you clicked on "Start NarraFirma," I am guessing. Could you open your browser's development console and tell me what it says there (or show me a screenshot)? That should help me understand what is happening.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pdfernhout/narrafirma/issues/36#issuecomment-933042720, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCA454JRVPELPKLHXHJ73LUFDPXHANCNFSM5FAQQZAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- S. Fisher Qua ​206-734-7385 | back-loop.com | upcoming in-person and virtual learning sessions http://www.alpinistaconsulting.com/upcoming-events

pdfernhout commented 3 years ago

Hi Fisher. The screenshot is not visible for some reason.

sfqua commented 3 years ago

Hmm strange. I'll try again tomorrow if I can. Supposed to be driving for the full day to deep west Texas!

On Sun, Oct 3, 2021, 9:28 PM Paul D. Fernhout @.***> wrote:

Hi Fisher. The screenshot is not visible for some reason.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pdfernhout/narrafirma/issues/36#issuecomment-933095267, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCA456VRZCATABVI7WUKBDUFEGNPANCNFSM5FAQQZAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

sfqua commented 3 years ago

Try this?

Also - Cynthia - your new book is fantastic!

Saw your note and Finite and Infinite Games. A personal favorite, too.

On Sun, Oct 3, 2021, 9:33 PM S Fisher Qua @.***> wrote:

Hmm strange. I'll try again tomorrow if I can. Supposed to be driving for the full day to deep west Texas!

On Sun, Oct 3, 2021, 9:28 PM Paul D. Fernhout @.***> wrote:

Hi Fisher. The screenshot is not visible for some reason.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pdfernhout/narrafirma/issues/36#issuecomment-933095267, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCA456VRZCATABVI7WUKBDUFEGNPANCNFSM5FAQQZAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

cfkurtz commented 3 years ago

Still no screenshot. How did you post the first two screenshots? Try doing that again?

Thanks for the kind words on the book :) The only fan letter I ever sent in my life was to James P. Carse. HE RESPONDED!

sfqua commented 3 years ago

I know what happened. I was just replying to this thread by email and attaching the screenshot to it.

Screenshot

My only experience writing to an author of note was Mary Stewart the British mystery novelist who wrote the Merlin books using old Welsh myths. She wrote back A LOT. It was pretty sweet.

cfkurtz commented 3 years ago

That's essentially a 404 (resource not found) error. I didn't change how the NF choose-a-project page loads, and that page works on both of the WP installations I've been testing on. It could be a conflict with another plugin you have installed, or something else unique to your installation. The best way to troubleshoot the issue is probably over a Zoom call. I will contact you via email to see if you can schedule it.

cfkurtz commented 3 years ago

In case anyone else has this problem: we worked it out. @sfqua's BlueHost plugin was returning an HTML-format error message in the XMLHttpRequest "responseText" field, instead of the JSON-format data NarraFirma was expecting, and NF was hanging while trying to parse the content as JSON. (We could see the HTML error message by looking in the browser's debugger at the value of "httpRequest.responseText").

Apparently the BlueHost plugin did not like it that we were setting a new field ("archived") within the "narrafirma_admin_settings" field of the "wp_options" database field. I have no idea why the BlueHost plugin didn't like that. I have not seen any documentation saying that adding a new field within a wp_options data structure is a security problem. The field contains only minimally serialized data; it's an array with one thing in it: a JSON string that the settings page parses. So it should not be an issue. But who knows.

Anyway, disabling the BlueHost plugin allowed NarraFirma to go ahead and set its new "archived" field, after which the (restarted) plugin no longer complained and NF started up normally. So if you happen to run into this error, try disabling any security-related plugins, restart NarraFirma once, and then turn them back on again. (And if it still happens, create a new issue here with a screenshot of the development console.)

I have made a change to our JSON parsing of "httpRequest.responseText" that will fail more gracefully (by showing you an error message instead of just hanging) when and if this happens again. (It will be in the next release.)