Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inability to save or publish non-text blocks in Campaigns inline prompt #1048

Open
plixels opened this issue Feb 2, 2023 · 0 comments
Open

Comments

@plixels
Copy link

plixels commented Feb 2, 2023

When trying to add a new inline prompt in Campaigns, I cannot save or publish any non-text blocks. I can only publish with text blocks such as a paragraph or the Newsletter Subscription Form block.

Error Message
I receive the error "403" on /wp-json/wp/v2/newspack_popups_cpt/162281?_locale=user.

I also get the "Updating failed. The response is not a valid JSON response." message inside of the editor.

Log:

"WordPress database error Table 'mysite.wp_newspack_campaigns_readers' doesn't exist for query SELECT * from wp_newspack_campaigns_readers WHERE client_id = 'fdbf0x72je0h' made by include('plugins/newspack-popups/api/campaigns/class-maybe-show-campaign.php'), Maybe_Show_Campaign->__construct, Lightweight_API->get_reader"

Steps to Reproduce

  1. Go to Newspack->Campaigns
  2. Click Add New Prompt
  3. Create a new inline prompt.
  4. Try to add a non-text block, such as an image or a button.
  5. Save as a draft or publish the block.
  6. Observe the error message.

Environment
WordPress version: 6.1.1
Newspack Theme version: 1.13
Newspack version: 1.100.0
Newspack Campaigns version: 2.11.0

Note: This somehow works on our dev environment after being cloned from live.

We do have a newspack-popups-config.php in wp-content, edited with the correct details from wp-admin.php

I also noticed that popups.js does NOT load on the live version but does on the dev version when creating a new prompt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant