[ad_1]
Hello,
I’ve just set up a Fastspring demo account to test a single page buy button with this plugin. Both on a local development setup and a remote test site (added to the whitelist) I am seeing the same error. I’m on WP 6.0.2 and I’ve tested with the library (and also with 0.8.6 after fresh install of the plugin).
In the admin, adding a “FastSpring Product Catalog” works, but blocks like “FastSpring Buy Buttons” or “FastSpring Checkout Button” give me this error in the admin in the developer console (Firefox 104.0.1):
TypeError: window.prods[Object.keys(...)[0]] is undefined
edit
ct
os
Ur
Ir
Dr
Pr
Nn
unstable_runWithPriority
xn
Nn
_n
ua
pe
Ye
Ke
qe
qe
er
Vr
Ur
Ir
Dr
Pr
Nn
unstable_runWithPriority
xn
Nn
_n
ua
pe
Ye
Ke
qe
qe
pl
_reactRootContainer
ml
render
ha
_wpLoadBlockEditor
n
_wpLoadBlockEditor
<anonymous>
<anonymous>
react-dom.min.js:9:64017In the Gutenberg editor it simply says: “This block has encountered an error and cannot be previewed.” In the frontend, nothing renders.
In my PHP error logs I get these, presumably as a result of the block trying to render stuff it couldn’t properly save in the admin:
[Tue Sep 06 15:46:36.643586 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 397, referer:
[Tue Sep 06 15:46:36.643703 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 397, referer:
[Tue Sep 06 15:46:36.643710 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 398, referer:
[Tue Sep 06 15:46:36.643715 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 398, referer:
[Tue Sep 06 15:46:36.643725 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 406, referer:
[Tue Sep 06 15:46:36.643729 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 406, referer:
[Tue Sep 06 15:46:36.643733 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 407, referer:
[Tue Sep 06 15:46:36.643737 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 407, referer:
[Tue Sep 06 15:46:36.643757 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "PPProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 516, referer:
[Tue Sep 06 15:46:36.643762 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "PPProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 519, referer:
[Tue Sep 06 15:46:36.643766 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "PPProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 521, referer:
[Tue Sep 06 15:46:36.643770 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "PPProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 522, referer:
[Tue Sep 06 15:46:36.643774 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "PPProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 522, referer:
[Tue Sep 06 15:46:36.643805 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 397, referer:
[Tue Sep 06 15:46:36.643810 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 397, referer:
[Tue Sep 06 15:46:36.643814 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 398, referer:
[Tue Sep 06 15:46:36.643818 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 398, referer:
[Tue Sep 06 15:46:36.643822 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 406, referer:
[Tue Sep 06 15:46:36.643825 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 406, referer:
[Tue Sep 06 15:46:36.643829 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 407, referer:
[Tue Sep 06 15:46:36.643832 2022] [php:warn] [pid 72411] [client 127.0.0.1:59514] PHP Warning: Undefined array key "BuyButtonProduct" in /Users/johannes/Projects/gron/dev/wp-content/plugins/fastspring/includes/fastspring_init.php on line 407, referer: Not off to a great start… any suggestions on what to debug or where this error is originating from?
-Johannes
