Closed mathetos closed 1 year ago
I enabled WP_DEBUG and got a slightly different error:
Then in debug.log I see two issues that are most likely related:
PHP Notice: Trying to get property 'livePublishableKey' of non-object in C:\Users\reach\Local Sites\750words\app\public\wp-content\plugins\donation-block-for-stripe-by-givewp\src\DonationBlock.php on line 54
PHP Notice: Trying to get property 'testPublishableKey' of non-object in C:\Users\reach\Local Sites\750words\app\public\wp-content\plugins\donation-block-for-stripe-by-givewp\src\DonationBlock.php on line 56
Hmm, I actually fixed those noticed in the repo version. I'm assuming you're using WP.org to download, which does have the PHP notices but shouldn't be causing what you're seeing. If you have time let's hop on a call soon to review.
I found this JS error occurs on fresh install from the WP.org plugin directory:
I believe I've already fixed this, just need to test it out to make sure.
I'm seeing a different error now that we've released 1.0.3
:
Digging into the error more it points to:
Which I believe, in the uncompiled version, has to do with these lines:
Gutenberg releases since this was posted have fixed this issue.
When you install the block from within the block editor you get a fata error message and can't use the block.
Instead, when installing this way, the block should immediately be available.