Reply To: Error with frontend form


Ernest Marcinko


I've tried to log-in to check on the error, but the admin details seem to be incorrect, can you please check that? The FTP details are okay.

Based on the error message I'm guessing the problem is coming from your theme, from this file public_html\wp-content\themes\chow\inc\submitpost.php from line 111, which is this:

do_action('wp_insert_post', 'wp_insert_post');

This is not correct, as the 'wp_insert_post' action requires 3 arguments. I've disabled that line, and copied the correct version below it:

do_action('wp_insert_post', $pid, $new_post, false);

Now this error should not appear anymore, hopefully.

Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)