Support

UNiTE, Remote CLI, eXtract Wizard

#23712 adminID not being recognized and reports error 'not an integer'

Posted in ‘UNiTE and Remote CLI’
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
n/a
Tool
UNiTE
Tool version
n/a

Latest post by on Wednesday, 16 December 2015 17:20 CST

rhellyer
I was using the section to allow changes to admin password and specifying the adminID as a number per your example code and instructions.

When I ran the tool it reported that adminID was not an integer and continued, falling back I think to the default of not changing the admin info.

I think the error is in the validate method where the value is not being cast as a string before being tested for is_numeric
case 'adminID':
                    if (is_numeric($thisNode))
                    {
                        $structure[$thisNode->getName()] = (int) $thisNode;
                    }
                    else
                    {
                        UUtilLogger::WriteLog('Value of adminID is not numeric: "' . $thisNode . '"');
                    }
                    break



because $thisNode is an object I guess is_numeric fails to force it to be a string before testing. I tried replacing the test with
is_numeric((string)$thisNode))
and it worked OK from what I could see.

Richard

tampe125
Akeeba Staff
Hello Richard,

yes, that's right.
Thank you very much for reporting this!

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!