Little bug (and solution) on the last release :)
-
Hi.
I’ve noticed a little bug when there is more than one form on a page.
The message says:
Fatal error: Cannot redeclare dsm_filter_caldera_forms_get_style_includes() (previously declared in /path/to/website/wp-content/plugins/supreme-modules-for-divi/includes/modules/CalderaForms/CalderaForms.php:971) in /path/to/website/wp-content/plugins/supreme-modules-for-divi/includes/modules/CalderaForms/CalderaForms.php on line 970
So to correct it (waiting for the next release ;)) you have to go to line 970 and replace:function dsm_filter_caldera_forms_get_style_includes( $style_includes ) { $style_includes = wp_parse_args( array( 'grid' => false, 'alert' => false, 'form' => false ) ); return $style_includes; }; add_filter( 'caldera_forms_get_style_includes', 'dsm_filter_caldera_forms_get_style_includes', 10, 1 );
by:
if(!function_exists('dsm_filter_caldera_forms_get_style_includes')) { function dsm_filter_caldera_forms_get_style_includes( $style_includes ) { $style_includes = wp_parse_args( array( 'grid' => false, 'alert' => false, 'form' => false ) ); return $style_includes; }; } add_filter( 'caldera_forms_get_style_includes', 'dsm_filter_caldera_forms_get_style_includes', 10, 1 );
Pierre.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Little bug (and solution) on the last release :)’ is closed to new replies.