Errors on clean install
-
Hey,
After installing the plugin and setting up a carousel with one slide I had the following two issues:
1.
Notice: Undefined variable: width in /var/www/citimark-properties-multisite-network/wp-content/plugins/ultimate-carousel-for-visual-composer/render/carousel_father.phpThe carousel was looking for a width value. In the carousel_father.php file, the width param on line 130 had been commented out. If I removed the comments and add the width to the shortcode params in the extract function, it fixes the error as it now has a width value.
2.
Notice: A non well formed numeric value encountered in /var/www/citimark-properties-multisite-network/wp-content/plugins/ultimate-carousel-for-visual-composer/render/carousel_son.phpWhen adding a CTA button its default height and width are 20px and 60px, but the px being included is causing the error. If I wrap each variable in str_replace (like this (str_replace(‘px’, ”, $btn_height)) it fixes the issue.
I’m just flagging this as not sure if it is an issue for others too. I would rather not edit the plugin as it makes updating it in the future an issue.
- The topic ‘Errors on clean install’ is closed to new replies.