Fatal error with class lessc_formatter_compressed and class lessc_formatter_lessjs ....

More
6 years 10 months ago #71357 by seabird
Hello,

I have a problem with class less ...
My template already use : lessc.inc.php with class lessc and other...

So I have a fatal error Fatal error: Cannot declare class ..... , because the name is already in use.

How correct this ?

Thanks,

Eric

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #71358 by ggppdk
Hello

there can be other extension loading the same class

so we had "namespaced" the class with
Code:
<?php namespace FLEXIcontent;

So this should not happen

which 'FLEXIcontent' version do you have ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago - 6 years 10 months ago #71360 by seabird
Hello,

Yes I see namespace FLEXIcontent; in lessc.inc.php . But there is the fatal error when I change for example category.less in a flexicontent template.
I have the lastest version v3.2.1.7 of flexicontent.

Eric
Last edit: 6 years 10 months ago by seabird.

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #71361 by ggppdk
Hello

are you including the FLEXIcontent 'lessc' class file or other 'lessc' file ?
if you are including the FLEXIcontent 'lessc'
then use 'require_once' instead of include


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #71362 by seabird

ggppdk wrote: Hello

are you including the FLEXIcontent 'lessc' class file or other 'lessc' file ?
if you are including the FLEXIcontent 'lessc'
then use 'require_once' instead of include


No I' m not including the FLEXIcontent 'lessc' class file
So for the moment, I delete folder with less file and I modify category.css.


Eric

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #71363 by ggppdk
Hello


what do you mean with:

I have a problem with class less ...
My template already use : lessc.inc.php with class lessc and other...


are you using some custom code, can you copy it here ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.536 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline