Akeeba Admin Tools throws odd Regularlabs...

Search
Other Bug Reports questions
Forum

Akeeba Admin Tools throws odd Regularlabs connected error

Dan Atrill's Avatar Dan Atrill
Hello,
I'm using Akeeba AdminTools and tried to create an htaccess with their htaccessMaker. There may be an error in my file but it keeps throwing this error:

Parse error: syntax error, unexpected '?' in /home/public_html/plugins/system/regularlabs/regularlabs.php on line 188

If I turn off error checking it shows a blank page. I have also completely reset my htaccessmaker settings. Regular Labs is up to date and I'm using the latest Joomla 3.10.5

Anybody else seen this?

Thanks

Dan
Peter van Westen's Avatar Peter van Westen ADMIN
What PHP version are you running on?
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Also that error doesn't make much sense, as line 188 of that file is empty.
Try re-installing the latest version of the Regular Labs extension(s) you use.
Please post a rating at the Joomla! Extensions Directory
Dan Atrill's Avatar Dan Atrill
OK, so I re-installed my Regular Labs extensions and now when I run the htaccessmaker I get:

Parse error: syntax error, unexpected '=' in /home/pub;ic_html/libraries/regularlabs/src/Document.php on line 538

PHP version is 7.4.27
Peter van Westen's Avatar Peter van Westen ADMIN
These errors seem to suggest that files are not being written to your server correctly, and are broken/corrupt.

Try deleting these folders:
/plugins/system/regularlabs
/libraries/regularlabs
(You will get other errors now).

Then reinstall the latest version of the extension you installed.

If that doesn't solve it:
Can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
Dan Atrill's Avatar Dan Atrill
Attached is a screenshot of line 188 of that file along with the error.
Peter van Westen's Avatar Peter van Westen ADMIN
I think you will find that your Joomla setup is actually running on PHP 5 and not 7.
Check this page in your admin:
/administrator/index.php?option=com_admin&view=sysinfo
Please post a rating at the Joomla! Extensions Directory
Dan Atrill's Avatar Dan Atrill
No, I've checked and Akeeba agrees, it's PHP 7.4

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
That is weird.
The errors you are getting are on code that is supported in PHP 7.
In this case the 'Null coalescing operator'.

There is nothing wrong with the code.
It seems your server's PHP version is having some issues with things.
I recommend you ask your host about this.
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Also that Akeeba alert seems to be confused.
It is advising PHP 7.4 or higher, while it also says you have that.
All in all: server PHP issues.
Please post a rating at the Joomla! Extensions Directory
Dan Atrill's Avatar Dan Atrill
OK. Thanks for the advice. I'll speak to the hosts.
You can only post on this forum if you log in