dsifford / academic-bloggers-toolkit

WordPress plugin providing an all-in-one solution for effective academic blogging.
https://wordpress.org/plugins/academic-bloggers-toolkit/
GNU General Public License v3.0
120 stars 38 forks source link

Autocite Not Working in Block Editor #563

Closed bockal closed 4 years ago

bockal commented 5 years ago

ABT Version: academic-bloggers-toolkit.5.1.0

PHP Version: Running PHP version: 7.2.18

Theme: GeneratePress

https://cinci360.com/wp-content/uploads/2019/05/broken.png **Plugin List:** - Plugin 1 - Plugin 2

Browser: Google Chrome (Version: xxx) Chrome 74.0.3729.131 (Official Build) (64-bit)

Expected behavior: Autocite function to populate reference data based on URL

Nothing **Actual behavior:**

Console messages: No JS errors. https://cinci360.com/2019/05/14/1628-ltd/

// Paste messages here
dsifford commented 5 years ago

Which URL are you attempting to cite?

The URL autocite is hit or miss. On the backend, it just crudely scrapes the page you enter for metadata information using a handful of known common metadata tags. If they don't exist, nothing will return besides (IIRC) just the accessed date.

bockal commented 5 years ago

It wouldn't cite any of the academic URLs I tried today. https://cinci360.com/2019/05/14/excel-supplements/

Or any I tried to re-add here: https://cinci360.com/2019/05/14/1628-ltd/

Wish I had a bigger brain to help on the backend. Unfortunately, I just make messy websites.

dsifford commented 5 years ago

Hm. What specifically did you enter and specifically which search box did you enter it?

Can you list the steps so that I can try to reproduce?

Thanks

mrvinceo commented 5 years ago

Hi @dsifford ,

I seem to be having the same issue on a multi-site network; everything was working, right up until I demoed it to our subject academics the other week 🙄. I've had the same issue once before, which came down to a conflict with the development version of the Gutenberg editor still being enabled (despite running in core), but that's now deleted, which seemed to fix it for a while, and no new plugins have been added or updated since... it's odd that this has now come back.

To clarify, I can add new items (journals, books, websites etc. either manually or via the doi number), and they appear fine under un-cited items. When I position the cursor and add it, it goes into the cited items list, but nothing else happens in the paragraph block or reference list. From the console, it looks like the issue is here:

Uncaught (in promise) TypeError: Cannot read property 'rebuildProcessorState' of undefined at t.value (processor.ts:87) at actions.ts:107 at s (runtime.js:45) at Generator._invoke (runtime.js:271) at Generator.t.<computed> [as next] (runtime.js:97) at redux-routine.min.js?ver=3.0.4:1

I'm not good with js, but perhaps this means something to you? Full log also attached if it helps.

I love that this issue hasn't broken any existing citations though - very nice, and many thanks for your excellent work on this!

spaces.oca.ac.uk-1560845251751.log

dsifford commented 5 years ago

@mrvinceo Hm, difficult to tell what might be going on without being able to reproduce this. Any chance you might be able to record your screen with this happening or something?

mrvinceo commented 5 years ago

No problem; here it is: https://youtu.be/_BKMsQaV5vo

Not sure if it might be related to some issues I've seen around Gutenberg (https://github.com/WordPress/gutenberg/issues/12324) as that issue also references the redux-runtime.min.js but I've been through the steps in that issue queue and the same issue occurs.

dsifford commented 5 years ago

Thanks. I'll look into this soon.

dsifford commented 5 years ago

In the meantime, try disabling all your other plugins to make sure it's not a conflict with one of those.

mrvinceo commented 5 years ago

Thanks, I'll give that a go!

dsifford commented 5 years ago

Report back either way to let me know what happens :+1:

dsifford commented 4 years ago

Are any of you still experiencing this issue? Sorry for the radio silence.

bockal commented 4 years ago

To be honest I haven't had time to publish any cited blog work in the last six months. It's not you, it's me. You should sell this tool to genealogy bloggers on wordpress though - it's amazing. Most groups have funds to pay for this sort of thing too. There are thousands of genealogy researchers and they all convene in about 10 different facebook groups. If you were drumming up business, that would be my starting point for this plugin.

Aubrey Backscheider, (513) 800-7366 Cinci360.com http://cinci360.com/ 3D Modeling Company GOOGLE Business Partner

On Tue, Oct 22, 2019 at 7:47 PM Derek Sifford notifications@github.com wrote:

Are any of you still experiencing this issue? Sorry for the radio silence.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dsifford/academic-bloggers-toolkit/issues/563?email_source=notifications&email_token=AFTE52E2XU3NWYMJHDL5S5LQP6GIPA5CNFSM4HM3L2IKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB7SDGY#issuecomment-545202587, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTE52FACZXQZR2XZ2PGFYDQP6GIPANCNFSM4HM3L2IA .

dsifford commented 4 years ago

No worries. I'm gonna go ahead and close this issue then until someone else can drum it up again since I can't seem to reproduce it anymore. Reopen if you run into it again.

bockal commented 4 years ago

I spoke too soon - just today I had to deactivate the toolkit to allow new page creation in WP. Here is the error Wordpress said to pass along:

the culprit is the Academic blogger's toolkit plugin

deactivating that allows the editor to load :)

I also found an error, that you'll want to pass on to that plugin's developers :)

TypeError: Object(...) is not a function at render (https://cinci360.com/wp-content/plugins/academic-bloggers-toolkit/bundle/editor.js?ver=4147b3b641bd0e2de06c389d6f0dd8f6:15:127817 https://cinci360.com/wp-content/plugins/academic-bloggers-toolkit/bundle/editor.js?ver=4147b3b641bd0e2de06c389d6f0dd8f6:15:127817) at Td (https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:82:11 https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:82:11) at hi (https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:102:385 https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:102:385) at Qg (https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:144:217 https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:144:217) at Rg (https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:145:76 https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:145:76) at Sc (https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:158:109 https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:158:109) at Z (https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:156:492 https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:156:492) at Kc (https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:155:52 https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:155:52) at ya (https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:153:159 https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:153:159) at Object.enqueueSetState (https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:202:409 https://c0.wp.com/c/5.2.4/wp-includes/js/dist/vendor/react-dom.min.js:202:409)

Aubrey Backscheider, (513) 800-7366 Cinci360.com http://cinci360.com/ 3D Modeling Company GOOGLE Business Partner

On Tue, Oct 22, 2019 at 11:47 PM Aubrey Backscheider bockal@gmail.com wrote:

To be honest I haven't had time to publish any cited blog work in the last six months. It's not you, it's me. You should sell this tool to genealogy bloggers on wordpress though - it's amazing. Most groups have funds to pay for this sort of thing too. There are thousands of genealogy researchers and they all convene in about 10 different facebook groups. If you were drumming up business, that would be my starting point for this plugin.

Aubrey Backscheider, (513) 800-7366 Cinci360.com http://cinci360.com/ 3D Modeling Company GOOGLE Business Partner

On Tue, Oct 22, 2019 at 7:47 PM Derek Sifford notifications@github.com wrote:

Are any of you still experiencing this issue? Sorry for the radio silence.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dsifford/academic-bloggers-toolkit/issues/563?email_source=notifications&email_token=AFTE52E2XU3NWYMJHDL5S5LQP6GIPA5CNFSM4HM3L2IKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB7SDGY#issuecomment-545202587, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTE52FACZXQZR2XZ2PGFYDQP6GIPANCNFSM4HM3L2IA .

dsifford commented 4 years ago

This is a separate issue. See #582