Hello,
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.
syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST) (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)
in /var/www/vhosts/la-vie.paris/httpdocs/LAVIEPARIS/libraries/regularlabs/src/Cache.php (line 23)
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)
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.
syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST) (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
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;
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)