Support

Site Restoration

#40251 Can't determine what is causing error

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
8.1.27
CMS Type
Joomla!
CMS Version
4.2.1
Backup Tool Version
9.8.4
Kickstart version
8.0.3

Latest post by tampe125 on Tuesday, 06 February 2024 09:41 CST

aimlesslady

I backed up a Joomla 4 site and want to experiment with some changes so I uploaded it to a subdirectory and created a new database. When I ran the kickstart.php file, it ran fine. But when I clicked on the cleanup, and went to the front end, I got the following error:
syntax error, unexpected '|', expecting variable (T_VARIABLE)

I gto a 500 error when I tried to access the administrator bak end.
In the configuration.php file. I changed tthe debug to true and error reporting to maximum. THis is the result:
0

syntax error, unexpected '|', expecting variable (T_VARIABLE)
Home Page
Call stack
# Function Location
1 () JROOT/libraries/regularlabs/src/Parameters.php:27
2 Composer\Autoload\includeFile() JROOT/libraries/vendor/composer/ClassLoader.php:428
3 Composer\Autoload\ClassLoader->loadClass() JROOT/libraries/src/Autoload/ClassLoader.php:59
4 Joomla\CMS\Autoload\ClassLoader->loadClass()
5 spl_autoload_call()
6 class_exists() JROOT/plugins/system/advancedmodules/advancedmodules.php:28
7 require_once() JROOT/libraries/src/Extension/ExtensionManagerTrait.php:217
8 Joomla\CMS\Application\CMSApplication->loadPluginFromFilesystem() JROOT/libraries/src/Extension/ExtensionManagerTrait.php:160
9 Joomla\CMS\Application\CMSApplication->loadExtension() JROOT/libraries/src/Extension/ExtensionManagerTrait.php:99
10 Joomla\CMS\Application\CMSApplication->bootPlugin() JROOT/libraries/src/Plugin/PluginHelper.php:232
11 Joomla\CMS\Plugin\PluginHelper::import() JROOT/libraries/src/Plugin/PluginHelper.php:192
12 Joomla\CMS\Plugin\PluginHelper::importPlugin() JROOT/libraries/src/Application/CMSApplication.php:744
13 Joomla\CMS\Application\CMSApplication->initialiseApp() JROOT/libraries/src/Application/SiteApplication.php:635
14 Joomla\CMS\Application\SiteApplication->initialiseApp() JROOT/libraries/src/Application/SiteApplication.php:226
15 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
16 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
17 require_once() JROOT/index.php:32

I can't determine what is causing the problem, The php version is 8.1.27 (same as the original site). I tried disabling some Regular Labs extensions:
PLG_SYSTEM_REGULARLABS plugin
PKG_REGULARLABS package pkg_regularlabs
Regular Labs Library library regularlabs
one at a time  via phpmyadmin with no success.

Can you help me find the culprit?

tampe125
Akeeba Staff

Hello,

most likely the problem is caused by the PHP version that is running under that subfolder.

If you take a look at your .htaccess file in your root folder, there will be a directive about the PHP version that should be used. Please take a look at the .htaccess file inside your subfolder, is that directive present? If not, please copy paste it at the end of the file. That should do the trick.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

aimlesslady

Thank you for your response. I didn't see anything about the php version in the htaccess file, but I tried to install it again, disabling all the Regular Labs extensions, since it was referred to in the errors. I also noticed that when I was going through the kickstart interface, it showed the existing server php at 7.1.  When I checked it in Siteground, it was set to 8.1, but I reset it anyway. Then  I refreshed the interface and it showed it as 8.1. Apparently, something was messed up. I was able to install it and enabled the Regula Labs extensions one by one and all worked without messing up the site.

So this is resolved now and I have learned to check the server php.

Thanks again for your help.

Ellen

tampe125
Akeeba Staff

You're welcome!

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!