Search
Other Cache Cleaner questions
Forum

ParseError in /var/www/vhosts/la-vie.paris/h​ttpdocs/LAVIEPARIS/libraries/r​egularlabs/src/Cache.php (line 23)

José BALART's Avatar José BALART
Hello

I would like please to know if this error in caused by cache cleaner

I use LiteSpeed Web Server (Plesk Version 6.1.1) with Joomla 4.2.9 and i have this error when i try to access to mysite after switching from Apache to LiteSpeed.
ParseError in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/regularlabs/src/Cache.php (line 23)
(see after for detail in debug mode)

I use LiteSpeed LSCache Package 1.5.1 for Joomla.
Thanks for your help

Regards
Arnaud

System Information for my site before switching to LiteSpeed Web Server
System InformationSetting Value PHP Built On Linux s22095112 4.19.0-17-amd64 #1 SMP Debian 4.19.194-2 (2021-06-21) x86_64Database Type mysqlDatabase Version 10.3.38-MariaDB-0+deb10u1Database Collation utf8mb4_general_ciDatabase Connection Collation utf8mb4_general_ciDatabase Connection Encryption NoneDatabase Server Supports Connection Encryption NoPHP Version 8.0.28Web Server ApacheWebServer to PHP Interface fpm-fcgiJoomla! Version Joomla! 4.2.9 Stable [ Uaminifu ] 14-March-2023 15:00 GMTUser Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)

Exceptions 2
Stack Traces 2
ParseError
in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/regularlabs/src/Cache.php (line 23)
use Joomla\CMS\Cache\Controller\OutputController as JOutputController;
use Joomla\CMS\Factory as JFactory;

class Cache
{
static array $cache = [];
/**
* @var [JOutputController]
*/
private array $file_cache_controllers = [];
private bool $force_caching = true;
in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/vendor/composer/ClassLoader.php Composer\Autoload\includeFile (line 428)
ClassLoader->loadClass('RegularLabs\\Library\\Cache')in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Autoload/ClassLoader.php (line 59)
ClassLoader->loadClass('RegularLabs\\Library\\Cache')
spl_autoload_call('RegularLabs\\Library\\Cache')in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/regularlabs/src/Document.php (line 123)
Document::isAdmin(true)in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/modules/mod_cachecleaner/mod_cachecleaner.php (line 30)
include('/var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/modules/mod_cachecleaner/mod_cachecleaner.php')in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Dispatcher/ModuleDispatcher.php (line 52)
ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}('/var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/modules/mod_cachecleaner/mod_cachecleaner.php', null)in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Dispatcher/ModuleDispatcher.php (line 55)
ModuleDispatcher->dispatch()in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Helper/ModuleHelper.php (line 281)
ModuleHelper::renderRawModule(object(stdClass), object(Registry), array())in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Helper/ModuleHelper.php (line 161)
ModuleHelper::renderModule(object(stdClass), array())in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Document/Renderer/Html/ModuleRenderer.php (line 99)
ModuleRenderer->render(object(stdClass))in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/templates/atum/html/layouts/status.php (line 27)
include('/var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/templates/atum/html/layouts/status.php')in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Layout/FileLayout.php (line 128)
FileLayout->render(array('modules' => 'status'))in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Layout/LayoutHelper.php (line 76)
LayoutHelper::render('status', array('modules' => 'status'))in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/templates/atum/error_full.php (line 79)
require('/var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/templates/atum/error_full.php')in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/templates/atum/error.php (line 23)
require('/var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/templates/atum/error.php')in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Document/HtmlDocument.php (line 736)
HtmlDocument->_loadTemplate('/var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/templates/atum', 'error.php')in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Document/HtmlDocument.php (line 791)
HtmlDocument->_fetchTemplate(array('template' => 'atum', 'directory' => '/var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Document/HtmlDocument.php (line 608)
HtmlDocument->parse(array('template' => 'atum', 'directory' => '/var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Document/HtmlDocument.php (line 626)
HtmlDocument->render(false, array('template' => 'atum', 'directory' => '/var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Document/ErrorDocument.php (line 139)
ErrorDocument->render(false, array('template' => 'atum', 'directory' => '/var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Error/Renderer/HtmlRenderer.php (line 78)
HtmlRenderer->render(object(ParseError))in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Exception/ExceptionHandler.php (line 121)
ExceptionHandler::render(object(ParseError))in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Exception/ExceptionHandler.php (line 72)
ExceptionHandler::handleException(object(ParseError))in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/src/Application/CMSApplication.php (line 323)
CMSApplication->execute()in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/includes/app.php (line 61)
require_once('/var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/includes/app.php')in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/administrator/index.php (line 32)
ParseError
syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
Peter van Westen's Avatar Peter van Westen ADMIN
Try updating your PHP version. Looks like you are using an older end-of-life version.
Please post a rating at the Joomla! Extensions Directory
José BALART's Avatar José BALART
I just tried with
PHP Version 8.1.18
or
PHP Version 8.2.5
and i have always the same error
Thanks for your help
regards
Peter van Westen's Avatar Peter van Westen ADMIN
Can you give me (super) admin and (s)ftp access so I can take a look?
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
José BALART's Avatar José BALART
Hello
Many Thanks
Here you have the infos to log
Confidential information:
(hidden)

Best regards
Peter van Westen's Avatar Peter van Westen ADMIN
I made a test file on your server which calls phpinfo.
This states that you are running on PHP Version 7.3.33.
You need at least PHP 7.4.
Please post a rating at the Joomla! Extensions Directory
José BALART's Avatar José BALART
Hello

I don't understand, PLESK explain me that i use PHP 8.1.18
(see screen capture here)
www.screencast.com/users/extonjaez/folde...b1-ab76-da5cf701d834
Many Thanks
Peter van Westen's Avatar Peter van Westen ADMIN
You'll have to ask your host about this. Somehow your site is running on PHP 7.3
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription