I have checked the issue by removing 3rd party plugins and default theme. That is not a problem.
The error in inspect happens when toolset plugins are enabled. Not the other way around.
Spinner shows because I am using AJAX and this script: custom_redirect_message.php. I disabled it and tested without, still the same issue.
IMPORTANT: the issue is happening on multiple forms where I am using the toolset form level redirection. It seems like, for some reason, the form is picking up the redirection setting in the toolset form. If I a not using toolset for redirection and just showing a message, the form works just fine.
What would cause such setting to be overridden? I have checked the custom code snippets, but no cred_success_redirect is global i.e. it only works on specific forms. All the forms where it does not work are failing.
I am trying to disable the custom code snippets in wp-config but it does make any changes.
I am adding the following code at the bottom of the file:
define( 'TOOLSET_DISABLE_CODE_SNIPPETS', true );
define( 'TOOLSET_DISABLE_CODE_SNIPPETS_GUI', true );
But it does disable the snippets or hides the GUI.
<?php
define( 'WP_CACHE', true ); // Added by WP Rocket
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the
* installation. You don't have to use the web site, you can
* copy this file to "wp-config.php" and fill in the values.
*
* This file contains the following configurations:
*
* * MySQL settings
* * Secret keys
* * Database table prefix
* * ABSPATH
*
* @link https://codex.wordpress.org/Editing_wp-config.php
*
* @package WordPress
*/
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'name' );
/** MySQL database username */
define( 'DB_USER', 'name' );
/** MySQL database password */
define( 'DB_PASSWORD', 'name' );
/** MySQL hostname */
define( 'DB_HOST', 'name' );
/** Database Charset to use in creating database tables. */
define( 'DB_CHARSET', 'name' );
/** The Database Collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );
/**
* Authentication Unique Keys and Salts.
*
* Change these to different unique phrases!
* You can generate these using the {@link <em><u>hidden link</u></em> WordPress.org secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
*
* @since 2.6.0
*/
auth details removed
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = 'wp_';
ini_set('log_errors',FALSE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
define('DISABLE_WP_CRON', true);
/* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname( __FILE__ ) . '/' );
}
/** Sets up WordPress vars and included files. */
@include_once('/var/lib/sec/wp-settings-pre.php');
require_once ABSPATH . 'wp-settings.php';
define( 'TOOLSET_DISABLE_CODE_SNIPPETS', true );
define( 'TOOLSET_DISABLE_CODE_SNIPPETS_GUI', true );
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
@include_once('/var/lib/sec/wp-settings.php');