Tagged: x
-
AuthorPosts
-
June 30, 2016 at 11:35 am #1066918
I have turned on error loging in the functions.php file to troubleshoot another issue and I see this coming up on the home page with this error.
Notice: Undefined variable: fade_duration in /home/splitlig/public_html/newnuca/wp-content/themes/x/vc_templates/vc_column.php on line 27
Notice: Undefined variable: bg_color in /home/splitlig/public_html/newnuca/wp-content/themes/x/vc_templates/vc_column.php on line 88
June 30, 2016 at 1:10 pm #1067079Hello There,
Thanks for writing in!
Please try uninstalling Visual Composer then install again via Addons. If that doesn’t help, would you mind clearing all cache and deactivating all third party plugins while we investigate.
Thanks.
June 30, 2016 at 4:50 pm #1067398Deactivated
Deleted all VC files
Re-installed via addons
Deactivated ALL plugins except for VC and Cornerstone.Problem is still there.
June 30, 2016 at 10:42 pm #1067878Hello There,
There is nothing to worry about. This is just a PHP notices which indicates that some of the variables were undefined. If you want to fix and get rid of the notices, you may turn off the debug mode. If you want turn on the debug mode and still would like to get rid of these notices, please edit the
vc_column.php
and place this code:<?php // ============================================================================= // VC_TEMPLATES/VC_COLUMN.PHP // ----------------------------------------------------------------------------- // Make [vc_column] behave like the [column] shortcode. // ============================================================================= ?> <?php extract( shortcode_atts( array( 'id' => '', 'class' => '', 'style' => '', 'width' => '', 'last' => '', 'fade' => '', 'fade_animation' => '', 'fade_animation_offset' => '', 'fade_duration' => '', 'bg_color' => '', ), $atts ) ); $id = ( $id != '' ) ? 'id="' . esc_attr( $id ) . '"' : ''; $class = ( $class != '' ) ? 'x-column x-sm vc ' . esc_attr( $class ) : 'x-column x-sm vc'; $style = ( $style != '' ) ? $style : ''; $fade_duration = ( $fade_duration != '' ) ? $fade_duration : '750'; switch ( $width ) { case '1/1' : $width = ' x-1-1'; break; case '1/2' : $width = ' x-1-2'; break; case '1/3' : $width = ' x-1-3'; break; case '2/3' : $width = ' x-2-3'; break; case '1/4' : $width = ' x-1-4'; break; case '3/4' : $width = ' x-3-4'; break; case '1/6' : $width = ' x-1-6'; break; case '5/6' : $width = ' x-5-6'; break; } if ( $fade == 'true' ) { $fade = 'data-fade="true"'; $data = ( function_exists( 'cs_generate_data_attributes' ) ) ? cs_generate_data_attributes( 'column', array( 'fade' => true ) ) : ''; switch ( $fade_animation ) { case 'in' : $fade_animation_offset = ''; break; case 'in-from-top' : $fade_animation_offset = ' transform: translate(0, -' . $fade_animation_offset . '); '; break; case 'in-from-left' : $fade_animation_offset = ' transform: translate(-' . $fade_animation_offset . ', 0); '; break; case 'in-from-right' : $fade_animation_offset = ' transform: translate(' . $fade_animation_offset . ', 0); '; break; case 'in-from-bottom' : $fade_animation_offset = ' transform: translate(0, ' . $fade_animation_offset . '); '; break; } $fade_animation_style = 'opacity: 0;' . $fade_animation_offset . 'transition-duration: ' . $fade_duration . 'ms;'; } else { $data = ''; $fade = ''; $fade_animation_style = ''; } $output = "<div {$id} class=\"{$class}{$width}{$last}\" style=\"{$style}{$fade_animation_style}{$bg_color}\" {$data}{$fade}>" . do_shortcode( $content ) . "</div>"; echo $output;
Hope this helps.
-
AuthorPosts