Not sure which of your plugins provokes this error.
I also have Meow Lightbox and Meow Gallery installed.
Considering CFB was the most recent one I added, decided to post here.
Full error in debug log:MeowCommon_Admin is called too early. Please make sure it is called after the plugins_loaded filter.
Cheers!
]]>Hello @Jordy Meow
Recently I have update the contact form block plugin to the latest version, that is a best contact form plugin(light weight, easy to use and flexible.), I have use it many years.
I know some simple PHP code, and I need to modify the form. After clicking the submit button, I need it to automatically jump to the position of the form, so I change the following code:
Path: wp-content/plugins/contact-form-block/classes/core.php:154
Before modification:
// Final data for this form
$data = array( 'success' => $success, 'error' => $error, 'form' => $form );
// If Success and URL Redirect, then redirect
$redirect_url = apply_filters( 'mcfb_redirect_url', get_option( 'mcfb_redirect_url', '' ), $success, $error, $form );
if ( $success && !empty( $redirect_url ) ) {
wp_safe_redirect( $redirect_url );
return;
}
// Prepare an ID associated with a transcient for the original page
$id = uniqid();
set_transient( "mcfb_{$id}", json_encode( $data ), 60 );
$url = esc_url( add_query_arg( 'mcfb_redirect', $id, $_SERVER["HTTP_REFERER"] ) );
wp_safe_redirect( $url );
After modification:
// Final data for this form
$data = array( 'success' => $success, 'error' => $error, 'form' => $form );
// If Success and URL Redirect, then redirect
$redirect_url = apply_filters( 'mcfb_redirect_url', get_option( 'mcfb_redirect_url', '' ), $success, $error, $form );
if ( $success && !empty( $redirect_url ) ) {
$redirect_url = $redirect_url . '/#formID'; //my code, this section only work when the email send success.
wp_safe_redirect( $redirect_url );
return;
}
// Prepare an ID associated with a transcient for the original page
$id = uniqid();
set_transient( "mcfb_{$id}", json_encode( $data ), 60 );
$url = esc_url( add_query_arg( 'mcfb_redirect', $id, $_SERVER["HTTP_REFERER"] ) );
$url = $url . '/#formID'; //my code
wp_safe_redirect( $url );
I would like to know if the contact form block plugin provides a method to obtain the current form ID.
]]><?php
/*
Plugin Name: Contact Form Block
Plugin URI: https://meowapps.com
Description: An easy, ultra-simple contact form.
Version: 0.3.4
Author: Jordy Meow
Author URI: https://jordymeow.com
Text Domain: contact-form-block
Domain Path: /languages
Dual licensed under the MIT and GPL licenses:
https://www.opensource.org/licenses/mit-license.php
https://www.gnu.org/licenses/gpl.html
Originally developed for two of my websites:
- Jordy Meow (https://offbeatjapan.org)
- Haikyo (https://haikyo.org)
*/
define( 'MCFB_VERSION', '0.3.4' );
define( 'MCFB_PREFIX', 'mcfb' );
define( 'MCFB_DOMAIN', 'contact-form-block' );
define( 'MCFB_ENTRY', __FILE__ );
define( 'MCFB_PATH', dirname( __FILE__ ) );
define( 'MCFB_URL', plugin_dir_url( __FILE__ ) );
require_once( 'classes/init.php' );
?>
]]>
[RESOLVED – solution was to use WP Mail SMTP plugin]
The only issue that I am having, is that all the emails go to the spam folder probably because I have my domain email setup with DKIM and that emails from my domain should be sent by the domain’s email provider, in my case, Titan.
Since the form is sending the email (ie [email protected]) and not the Titan email provider, apparently the Titan email Inbox is flagging all these form messages as spam and it seems as though no amount of clicking “NOT SPAM” is helping to get them back into the inbox.
Any ideas for a solution? I already tried filtering (apparently Titan applies SPAM filters before custom filters) and also tried clicking NOT SPAM a bunch of times for various test messages, and still everything is going to the Spam folder.
]]>Hi,
I read your support information and I’m not quite familiar with coding
https://meowapps.com/contact-form-block/tutorial/#modify-the-receiver-of-the-email
Could you please help a bit more describing more steps to make it a bit easier for non-familiar-to-coding techs?
Thank you
]]>Would it be posible to add an attribute for the “Your message was sent successfully. Thank you!” message? Currently it is hardcoded in the run.php file.
I would like to use it on my danish website ??
]]>The IDs of the input field should include a unique id, for example the one used for the form element. So, for example the id of the name input would be mcfb__name instead of just mcfb_name.
This would ensure valid HTML and that the field labels reference the right input in case more than one instance of the block is used on the same page.
]]>I know it is already possible to override the redirect URL, however I think it would improve usability of the plugin if the plugin would add an anchor referencing the contact form to the redirect URL by default. That way, the user will see the form submission message directly even if the contact form is further down the page.
]]>The settings link on the plugins overview page points to /wp-admin/admin.php?page=mcfb_settings which results in a permission denied error.
The link in the Meo Apps > Contact Form menu entry points to /wp-admin/admin.php?page=mcfb_settings-menu which seems to be the correct location
]]>The reCAPTCHA3 addon currently uses file_get_contents to query the Google API. This requires the PHP setting allow_url_fopen to be enabled, which is not always the case and might not be configurable by users of this plugin.
Instead, the plugin should use the WordPress HTTP API to make the request i.e. with wp_remote_get https://developer.www.ads-software.com/plugins/http-api/#getting-data-from-an-api
]]>It would be very useful to have a new filter/hook, that would allow to add contents just before the first form field.
There is already an ‘mcfb_form_after_name’ hook the new filter could be called ‘mcfb_form_before_name’, ‘mcfb_form_before_first_field’ or something similar.
]]>It looks like the third (priority) and fourth (accepted_args) parameter to the add_filter function are switched. This applies to the following files:
Hi @jordy Meow
Recently WordPress update to 6.2.2, shortcode is no longer available in the block theme template and patterns . I would like to integrate your plugin into my block theme template and display it on the front end through PHP. Is there any way to achieve this?
]]>Uncaught ReferenceError: grecaptcha is not defined
at (index):191:5
(anonymous) @ (index):191
Bonjour Jordy!
Really cool contact form! Thank you for making it!
I’ve encountered 2 issues I’d like to report:
#1 Error after clicking Settings from Plugins page (wp-admin/admin.php?page=mcfb_settings)
#2 Empty admin page (wp-admin/admin.php?page=meowapps-main-menu) Meow Apps -> Dashboard
Cordialement, Sabrina
]]>Hello, is it possible to load recaptcha async as described here? I am getting a warning from Google PageSpeed.
]]>Hey Jordy
This signup form for a trip was made with Caldera Forms (which has been closed). I downloaded Caldera Forms from github but it gives me a fatal error which I am not able to get past. So I am looking for another form to recreate this form: https://gaiatravel.no/pamelding/
Is this something your form plugin can handle?
Thanks!
Just an fyi
I had to alter two php modules (run.php & recaptcha_v3.php) that used the remote form of file_get_contents(). As my hosting provider does not permit php option “allow_url_fopen” to be set to ON (XSS vulnerability). This causes the file_get_contents calls to fail.
In run.php I simply replaced the remote form of file_get_contents to a local form. Used server directory path in call, instead of url path.
In recaptcha_v3.php I replaced the remote file_get_contents with a curl call that works on servers that do not allow php remote code embeds.
Great contact form plugin once I got it working with my hosting service, thanks!
]]>Hi there,
It seems your plugin is missing the folder neko-ui in the root, which is necessary for building the dev environment so I can expand on the plugin…
I want to take the source code and alter it a bit, but am now not able to compile anything due to neko-ui missing.
Where do I get this library from? I’ve tried installing neko-ui from npm, but if I change @neko-ui to neko-ui all sorts of errors occur.
Could you please provide us with the full source code?
Yours truly,
Simbaclaws
Hello Jordy!
Using PHP 8.0
The plugin keeps throwing this erros in my log:
[02-Nov-2022 09:36:51 UTC] PHP Warning: Undefined property: stdClass::$score in /home/arquisp/public_html/wp-content/plugins/contact-form-block/classes/addons/recaptcha_v3.php on line 52
[02-Nov-2022 15:57:14 UTC] PHP Warning: Undefined property: stdClass::$score in /home/arquisp/public_html/wp-content/plugins/contact-form-block/classes/addons/recaptcha_v3.php on line 52
I’m using the recaptcha add-on, and it seems that i am not having any problems receiving messages.
Any idea on that? Should I ignore these warnings?
Thanks!
]]>Hello, is there any way to change the receiver email to other than website admin? Regards.
]]>Hi, I can’t edit this for at all as HTML mode. When I turn this to HTML, it doesn’t matter what I do, one space key for example in attribute gives a typical block error about “unexpected content” and I just can click Try to recover this block. It returns me to a previous situation.
I wan’t to modify:
– translate Phone in Finnish
– modify e-mail recipient
– modify message and title of reply e-mail
– etc.
Hey, thanks for making this plugin. Would love if the button styles could just pull from the defaults of the theme. I think it might need to be wrapped in .wp-block-button and then have .wp-block-button__link and .wp-element-button applied to the actual input button, but not 100% sure. Any way to make an update for this?
]]>Hi,
The plugin is not sending the message and showing error message every time I try to send message via the contact form.
The submission shows this error message every time “To avoid spam and abuse, your message was not sent. We are truly sorry if it is a mistake, and in that case, please try to submit this form again.”
Is there anything wrong with the plugin?
-Thank you
]]>How do I add a facebook tracker to pick up the submit button event?
]]>I just translated the language files (fr_FR) the plugin came with to German, but could not get them to work.
I translated already quite a lot plugins and know most of the caveats which might come with that. I checked the naming multiple times: contact-form-block-de_DE.mo/po
must be the right naming, but I also tried contact-form-block-de_DE_formal.mo/po and even contact-form-block-de.mo/po. The language is correctly set in WordPress Global Settings and on top, I’ve put a ‘WP_LANG’ definition in wp-config.php. Last I’ve put the files into /wp-content/languages/plugins/ – all to no avail. The plugin insists in using English.
Any idea what else could be the problem?
Is there a neutral .pot file where I could do it from scratch?
Else I could try to extract it from source code using poedit.
Hi, when I click on the setting I keep getting this message “Sorry, you are not allowed to access this page.”
It will send me to white page and displays that
]]>I’ve set the contact form up for my site and very impressed! Exactly what I want.
However, the color setting for the button doesn’t take. Here is my shortcode (for a black button color):
[contact-form-block
name_label=”Name”
email_label=”E-mail”
message_label=”Message”
header=”false”
header_image_id=”null”
header_image_size=”50″
header_image_align=”left”
header_title=”Get in Touch”
header_text=”Leave your message and we’ll get back to you shortly.”
button_text=”Send”
button_color=”#000000″
button_text_color=”white”
theme=”default”
message_rows=”5″]
Hello,
When I install this plugin on a fresh install of WP (5.8.3), I get this error message when I try to edit a widget :
wp_enqueue_script() est appelée de la mauvaise manière. “wp-editor” script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets).
Tested on twenty-twenty-one and on a basic custom theme. Widget editor works well until this plugin is installed.
Any clue about the reason?
Thanks!
I’ve received a message, that my mail account is being used for sending a huge amount of spam via a wordpress plugin. Anyone else experiencing that while using the plugin “Contact Form Block”?
]]>