cannot redeclare class lessc, kunena 5.0

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
gnpma100
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Jun 10, 2014 10:10 am

cannot redeclare class lessc, kunena 5.0

Postby gnpma100 » Thu Nov 16, 2017 11:45 am

Environment: joomla 3.8.2, kunena 5.0.11

Calling the front end of the kunena forum component results in a 500 error and "Fatal Error: Cannot redeclare class lessc in libraries/expose/libs/lessc.php on line 40"

at line 40 the content of less.php just starts, before all comments

Code: Select all

class lessc {
   static public $VERSION = "v0.3.9";
   static protected $TRUE = array("keyword", "true");
   static protected $FALSE = array("keyword", "false");
 
   protected $libFunctions = array();
   protected $registeredVars = array();
   protected $preserveComments = false;


I searched for "class lessc" within the installation and found it in different places:
/plugins/system/helix3/core/classes/lessc.inc.php
/libraries/vendor/leafo/lessphp/less.inc.php
/libraries/kunena/external/lessc/lessc.php
/libraries/expose/libs/lessc.php

as I understood the error class lessc has been loaded already by another component/etc. and can not be loaded again (redeclared).

Does anybody have a hint where to start searching? Many Thanks

Return to “Extensions for Joomla! 3.x”

Who is online

Users browsing this forum: No registered users and 3 guests