Support

Admin Tools

#18959 invalidargumentexception in log-file

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 Wednesday, 19 March 2014 18:00 CDT

weboxx
 Hello,

This ticket replaces ticket #18957.
I submitted the former ticket by mistake, i'm sorry for that.

In Log-Files there is an error message reading "Uncaught exception 'InvalidArgumentException' with message 'Invalid URI detected.' in ......./htdocs/Abo/libraries/joomla/environment/uri.php:194"

I think it could be caused by Admin-Tools, because the stack trace reads

Stack trace:
#0 .../htdocs/Abo/libraries/joomla/environment/uri.php(238): JURI::getInstance()
#1 .../htdocs/Abo/plugins/system/admintools/admintools/pro.php(934): JURI::base(true)
#2 /htdocs/Abo/plugins/system/admintools/admintools/pro.php(300): plgSystemAdmintoolsPro->customRouter()
#3 [internal function]: plgSystemAdmintoolsPro->onAfterInitialise()
#4 ...htdocs/Abo/libraries/joomla/event/event.php(71): call_user_func_array(Array, Array)
#5 .....htdocs/Abo/libraries/joomla/event/dispatcher.php(161): JEvent->update(Array)
#6 ....htdocs/Abo/libraries/joomla/application/application.php(642): JDispatcher->trigger('onAfterInitiali...', NULL)
#7 ....htdocs/Abo/libraries/joomla/applic in /ext/www/premium.wetter.net/htdocs/Abo/libraries/joomla/environment/uri.php on line 194
[26-Jan-2014 10:43:13 UTC] PHP Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Invalid URI detected.' in ...../htdocs/Abo/libraries/joomla/environment/uri.php:194

Is this error message crucial for Admin Tools ?

Could you give us a hint what could cause this error ?


best wishes

Chin-Man Choi
 WEBoXX IT-eXperts

nicholas
Akeeba Staff
Manager
This means that you have set up a URL Redirection to an invalid URL.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

weboxx
Hello,

many thanks for your reply.

But i haven't defined any URL redirection rule in the URL redirection section of AdminTools.

I also turned off the URL redirection function of Admin Tools.

best wishes

Chin-Man
 WEBoXX IT-eXperts

nicholas
Akeeba Staff
Manager
I see this line in your debug trace:

#2 /htdocs/Abo/plugins/system/admintools/admintools/pro.php(300): plgSystemAdmintoolsPro->customRouter()


The customRouter() method is the URL Redirection feature. When that feature is disabled this method is not called.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

weboxx
Hello,

many thanks for your reply.
Before switching off URL redirection function of Admin Tools there were no redirection defined, but an error message was thrown.

Then i turned the URL redirection function off.
Up to now no error message was thrown, it is possible that turning off the URL redirection function helped.

Bye

Chin-Man
 WEBoXX IT-eXperts

nicholas
Akeeba Staff
Manager
I am pretty sure there is one record with an empty Existing URL and New URL. This would try to redirect every page to a blank URL which would explain the issue.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

weboxx

Hello,

in the redirection section there are no empty existing urls or empty new urls, there are only input fields with search buttons, and the bottom-section reads:

"No redirections are specified yet. Use the New button to create one."

By the way currently in the log-file there is a warning:

" [06-Feb-2014 01:25:59 UTC] PHP Notice: Undefined offset: 1 in .... /htdocs/Abo/plugins/system/admintools/admintools/pro.php on line 1645"

Is this related to the issue ?

Bye

Chin-Man
 WEBoXX IT-eXperts

nicholas
Akeeba Staff
Manager
I really cannot answer that. On my file, line 1645 reads
$jlang->load('com_admintools', JPATH_ADMINISTRATOR, null, true);

which can't throw the error you report. Moreover, as I already explained, there is absolutely no possible way whatsoever of receiving the original error about plgSystemAdmintoolsPro->customRouter() when the URL Redirect feature is not enabled. It seems that you have a broken installation of Admin Tools. Please do the following:
  • Delete the folders: administrator/components/com_admintools, media/components/com_admintools, components/com_admintools, plugins/system/admintools
  • Download Admin Tools Professional 2.6.0
  • Install it on your site

DO NOT attempt to uninstall the component as this will cause all of your settings to be lost. If you follow my instructions we'll be able to refresh the files on your server without losing your settings.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

weboxx
Hello,

to avoid misunderstandings: After turning off the redirection feature there were no error messages any more, so as i mentioned in a former post it is possible that turning off the URL redirection function helped.

But the mentioned warning message appeared recently

" [06-Feb-2014 01:25:59 UTC] PHP Notice: Undefined offset: 1 in .... /htdocs/Abo/plugins/system/admintools/admintools/pro.php on line 1645"

Anyway, shall I perform the steps you suggested ?

Best wishes

Chin-Man
 WEBoXX IT-eXperts

nicholas
Akeeba Staff
Manager
> Anyway, shall I perform the steps you suggested ?

Yes, please. I believe that the System - Admin Tools plugin's files are out of date. By following my steps you will be able to refresh them.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

weboxx

Hello,

after performing the suggested steps we still get this message in php Logfile:

[17-Feb-2014 11:07:09 UTC] PHP Notice: Undefined offset: 1 in ....../plugins/system/admintools/admintools/pro.php on line 1645

What shall we do now ?

bye

Chin-Man
 WEBoXX IT-eXperts

nicholas
Akeeba Staff
Manager
Right now you can only go to your site's Global Configuration, click on the Server tab and set Error Reporting to None. I've found which line is throwing this notice and will modify it for the next release. FYI, this only happens when an attack is blocked and only under some specific circumstances.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
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!