Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Product Carousel (SKU# FLEX-00009)

TOPIC: [SOLVED]Use of undefined constant FlexibleCarousel

[SOLVED]Use of undefined constant FlexibleCarousel 11 years 6 months ago #436

Hi,

I have just purchased and installed the module but even though it is displayed correctly , i get the following error befor the module apperas :


Notice: Use of undefined constant FlexibleCarousel - assumed 'FlexibleCarousel' \modules\mod_flexible_vm_carousel\tmpl\default.php on line 42

Any ideas?
Last Edit: 11 years 5 months ago by Support.
The topic has been locked.

ERROR: Use of undefined constant FlexibleCarousel 11 years 6 months ago #440

Hi,

did you check this PHP lines? (42th line in \modules\mod_flexible_vm_carousel\tmpl\default.php)

It is; $FlexibleCarouselUniqueID = uniqid(FlexibleCarousel);

It lets the generate Unique DIV id in order to load multiple module in a single page. Uniqid is very basic PHP function, i don't know how your server doesn't support it. (php.net/manual/en/function.uniqid.php)

But; if you are not planing to load multiple carousel modules in a single page, then you won't need this function and you can change this 42th line:
$FlexibleCarouselUniqueID = uniqid(FlexibleCarousel);
to
$FlexibleCarouselUniqueID = "flexibleCarouselConstantID";

You won't see the error message.
Last Edit: 9 years 11 months ago by Support.
The topic has been locked.

ERROR: Use of undefined constant FlexibleCarousel 11 years 6 months ago #441

no im not going to have multiple carousels. I have changed it to $FlexibleCarouselUniqueID = "flexibleCarouselConstantID"; and now it works great!

great support, thank you!
The topic has been locked.

ERROR: Use of undefined constant FlexibleCarousel 11 years 5 months ago #443

your welcome ;)
The topic has been locked.
Time to create page: 0.159 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo