Hi @guicmazeredo,
I have installed an “Under Construction” plugin page that has some page templates already created.
I wanted to add the form plugin by modifying one of the HTML template. When I have added the plugin via PHP (no documentation followed). When a new form is created by going to shortcode, Mailpoet shows me a code for implementing the form via PHP or iFrame.
Example:
$form_widget = new \MailPoet\Form\Widget();
echo $form_widget->widget(array('form' => 4, 'form_type' => 'php'));
<iframe width="100%" height="100%" scrolling="no" frameborder="0" src="https://website.com?mailpoet_form_iframe=4" class="mailpoet_form_iframe" id="mailpoet_form_iframe" vspace="0" tabindex="0" onload="if (window['MailPoet']) MailPoet.Iframe.autoSize(this);" marginwidth="0" marginheight="0" hspace="0" allowtransparency="true"></iframe>
By using the PHP example, when a new user registers the email address, it givess me that error. By doing it with iFrame, no error is shown. I guess it’s an error when initializing the form with PHP.
P.S.
I have also called the php form widget constructor before loading the whole HTML page (first row) and echoed the form later in the document but it did not worked either.
Thanks.
-
This reply was modified 3 years, 6 months ago by
radulepy.