Support

Admin Tools

#31806 syntax error, unexpected ')'

Posted in ‘Admin Tools for Joomla! 4 & 5’
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

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Sunday, 27 October 2019 18:17 CDT

hans2103
I get an error message on the Joomla installer page in administrator and found my way back into your code.

OPEN
plugins/installer/admintools/admintools.php
GOTO
line 96
FIND
if (!defined('FOF30_INCLUDED') && !@include_once JPATH_LIBRARIES . '/fof30/include.php'))
REPLACE WITH
if (!defined('FOF30_INCLUDED') && !@include_once JPATH_LIBRARIES . '/fof30/include.php')
SAVE & CLOSE

hans2103
or replace with
if (!defined('FOF30_INCLUDED') && !@include_once(JPATH_LIBRARIES . '/fof30/include.php'))


that's better I think

hans2103
it also appears to happen on plugins/installer/admintools/script.php

tampe125
Akeeba Staff
Hello,

are you sure about your edits?
The first you you proposed is wrong, it should even raise an error since it's missing a closing parenthesis:
if (!defined('FOF30_INCLUDED') && !@include_once JPATH_LIBRARIES . '/fof30/include.php')

The second one... well, it's exactly the original code shipped with our plugins:
if (!defined('FOF30_INCLUDED') && !@include_once(JPATH_LIBRARIES . '/fof30/include.php'))


I can't reproduce it locally, can you please double check if everything is OK?

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!

hans2103
Downloaded Akeeba Admintools, unzipped the files and saw that the code is as it should be.
Going to check my dev tools to find out why the `(` was stripped. That is strange...

thank you... case closed

tampe125
Akeeba Staff
You're welcome!
Let me know if you need further help.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!