• I’m unable to edit forms. I can create an unamed form, but it won’t show it to me in the editor, so I’m unable to edit it.

    I’m running WordPress 5.6 and MailPoet (New) 3.56.0 and MailPoet Premium (New) 3.56.0. I am using Gutenberg.

    I followed the debug instructions, but rather than using debug mode, I just disabled all other plugins, put Cloudflare in development mode, and cleared the browser cache. The form edit screen is still blank.

    I also performed the reinstall from scratch process and repeated with no other plugins active. Btw, thanks for the notification that this would delete my subscriber list. I downloaded so I wouldn’t lose anyone. πŸ™‚

    The browser’s console shows a couple of errors:

    Uncaught SyntaxError: Unexepected token ';'   admin.php? page;mailp...orm-editor&id=1:231
    
    Uncaught TypeError: Cannot read property 'map' of undefined   form editor.066ea637.js:2
      at module.exports (form editor.066ea637.js:2)
      at form editor.066ea637.js:2
      at form editor.066ea637.js:2

    I wold add a screen capture, but I don’t see a way to upload images.

    • This topic was modified 5 years, 7 months ago by Brent Logan. Reason: Added console error info
    • This topic was modified 5 years, 7 months ago by Brent Logan.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Brent Logan

    (@bl)

    Version 3.56.1 did not fix this.

    Thread Starter Brent Logan

    (@bl)

    Version 3.56.2 did not fix this.

    Also, I’m getting the same 2 errors in the browser console.

    Hi @bl,

    We’ve seen a similar issue happening to another user who had an accented character in wrong encoding in the confirmation page’s title. It broke PHP’s JSON encoding function in places where MailPoet needed to load a list of pages, such as the form editor.

    Can you please check if that could be the case?

    Do you have any page title containing unsupported UTF-8 encoding?

    Thread Starter Brent Logan

    (@bl)

    Hi, @wysija!

    I’m currently using the default MailPoet Page for the Sign-up Confirmation page. (I’m also using the default MailPoet Page for the manage Subscription page and both Unsubscribe pages.)

    Looking at the page drop-down list, I see the following characters that are not purely alphanumeric and that are included in page titles:

    — (2 hyphens in a row)
    @
    !
    ?

    I have no accented characters in page titles. I assume you’re not asking about post titles.

    As an experiment, I either deleted the page or edited these characters out of their names and then tried to edit the MailPoet subscription form. I still get a blank form.

    • This reply was modified 5 years, 7 months ago by Brent Logan.
    Thread Starter Brent Logan

    (@bl)

    The error message I mentioned above can be seen here:

    https://brentlogan.com/wp-content/uploads/2020/12/Screenshot-2020-12-28-170011.png

    Maybe this indicates that MailPoet is having problems with encoding my posts. I went through them, looking for potential UTF-8 encoding issues, but didn’t find any.

    I wonder if there is a capacity limit that I’m running into. I have 2,610 published posts on my blog.

    Thread Starter Brent Logan

    (@bl)

    I just updated both the plugin and the premium plugin to version 3.57.0. I still have a blank edit form. To debug this, I have:

    • Cleared all server caches
    • Disabled all plugins except MailPoet plugins
    • Switched to the Twenty Twenty-one theme
    • Put CloudFlare into developer mode
    • Cleared the browser cache, and used an incognito browser

    As best I can guess, there’s something wrong with my post data, resulting in an unassigned var mailpoet_all_wp_posts (see my screencap, linked in my previous comment). Unfortunately, I don’t know where to look at this point. I can’t find any MailPoet logs on my server that might assist. I would love some direction.

    Thanks!

    Tagging @wysija because you responded before. Hoping you can help now.

    Thread Starter Brent Logan

    (@bl)

    Since my last message, I reviewed all the titles of my 2,610 posts (regex is a godsend) for potentially malformed UTF8 and found none. I then reviewed the content of all the posts and found and corrected some.

    The form was still blank.

    I started going through the posts individually, converting the few remaining to Gutenberg and normalizing to my preferred formating. After going through less than 20 of my oldest posts, my site crashed, no idea why. A quick reboot of the server and all is well, including the form editor. Strange. I typically update/upgrade my server weekly and reboot, so this shouldn’t have been what resolved the issue. I have to assume that what resolved the issue was resolving the UTF8 errors and then clearing the caches with the reboot.

    Anyways, if UTF8 sensitivity is indeed the issue, it would be a nice feature for those of us with thousands of posts to set the PHP JSON encoder to ignore UTF8 errors.

    https://www.php.net/manual/en/function.json-encode.php

    I’m going to mark this as resolved.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Mailpoet form editor is blank’ is closed to new replies.