Support

Admin Tools

#41296 Cannot Create or Edit Users

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
5.2.0
PHP version
8.3.13
Admin Tools version
7.6.2

Latest post by akirwin on Tuesday, 05 November 2024 09:49 CST

akirwin

Since the Joomla 5.2.0 upgrade, I am unable to edit or create users for client sites. I get
An error has occurred.
0 Call to a member function get ip() on null.
This occurs across all my sites, so I will only go over the common components/software:

PHP Built On Linux server 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Database Type mysql
Database Version 8.0.37
Database Collation latin1_swedish_ci
Database Connection Collation utf8mb4_0900_ai_ci
Database Connection Encryption None
Database Server Supports Connection Encryption Yes
PHP Version 8.3.13
Web Server Apache
WebServer to PHP Interface fpm-fcgi

JSitemap Pro, JCE Editor Pro, YooTheme Templates and Admin Tools Pro.
I believe the problem is in Admin Tools, but have looked at all the settings regarding new user creation, and they should be set for Administrators and Users to make changes (such as passwords). However ... not happening. Any thoughts, suggestions or slaps upside the head are welcome

nicholas
Akeeba Staff
Manager

As I usually say, code doesn't care what you believe; it's a cold machine, not a welcoming God :)

More seriously now, I can tell you that it's not Admin Tools because our software does not have any kind of get_ip() call anywhere in its code – remember, that's the error message you get.

You can easily determine where the problem comes from by going to Global Configuration and setting Debug Site to Yes and Error Reporting to Maximum. This will make the error message a lot more verbose, including a stack trace. The stack trace shows you how you ended up with the error message, including files and line numbers. I am pretty sure you have a third party system or user plugin which makes the unfortunate call to $something->get_ip().

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!

akirwin

Thank you, that did the trick. I had turned on debug, but forgot to turn reporting to maximum. Thank you, again.

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!