Error on for submission

I’m submitting a Create Post form and get an error message, but the form submits but doesn’t redirect to the next page. The error is

An error occured. Please contact the site administrator.

Not much to go on. This is part 1 of a 2 part submission. It uploads an image and details of the image.

“An error occured. Please contact the site administrator.” sounds like a 500 Internal Server Error. Could you check your PHP Error Logs and paste the content here?

Daniele, The php error log is empty and the error reporting is set to E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT.
As said, the post is being created, but not redirected.

Every “An error occured. Please contact the site administrator.” should produce error logs if configured correctly :slight_smile: Please check your wp-config.php and see if WP_DEBUG is set to true :slight_smile:

It is set as shown;

*/

if ( ! defined( ‘WP_DEBUG’ ) ) {

define( ‘WP_DEBUG’, true );

}

define( ‘WP_DEBUG_LOG’, true );

define( ‘SCRIPT_DEBUG’, true );

define( ‘WP_DEBUG_DISPLAY’, false );

define( ‘SAVEQUERIES’, true );

Regards
Pete

Sorry Daniele, I was looking in the wrong place.
All the errors point to code snippets of mine. Strangely though, I have an ACF version of the form that works and I get no errors. I will check out the problems showing up, and get back to you when Ive narrowed it down.

Thanks for you patience
Pete

Allright, thanks! :slight_smile: