Support

Admin Tools

#23299 PHP errors when running CLI scripts

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 tampe125 on Wednesday, 23 September 2015 01:42 CDT

erkan
When I run the admintools-update.php script in a command window I get several errror messages like this one:

Warning: fwrite() expects parameter 1 to be resource, string given in /home/quadcopterforum/domains/quadcopterforum.se/libraries/vendor/joomla/application/src/Cli/Output/Xml.php on line 34

Also when I run the script admintools-dbrepair.php I get a similar error message:

Warning: fwrite() expects parameter 1 to be resource, string given in /home/quadcopterforum/domains/quadcopterforum.se/libraries/vendor/joomla/application/src/Cli/Output/Xml.php on line 34

Anyone know the cause of these errors or if they are anything to worry about?

The exact commands are:

lsphp /home/quadcopterforum/domains/quadcopterforum.se/cli/admintools-dbrepair.php

lsphp /home/quadcopterforum/domains/quadcopterforum.se/cli/admintools-update.php

tampe125
Akeeba Staff
Hello Erik,

I suspect your server did not define the constant STDOUT, required to output messaged to the console.
You should contact your host and ask him to 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!

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!