Freepbx.log file becoming very large with repeating error

My freepbx.log file is becoming large with this repeated error:

PHP-WARNING] (/var/www/html/admin/libraries/php-asmanager.php:262) - feof(): 170 is not a valid stream resource

Anyone know what it means?

Line 262:

			if (feof($this->socket) || !$this->socket) {

Your error says basically “$this->socket” is not a thing.

Is Asterisk running?

The error was being logged while Asterisk service was running and also when stopped.

@TropicalMango, I’ve seen this sporadically and believe I have a potential fix. The only problem is I haven’t been able to reproduce the issue in order to verify that. If you would be willing to test it, I’ve uploaded a modified php-asmanager.php file to www.schmoozecom.com/temp/php-asmanager.txt. You can follow the steps below to backup your existing php-asmanager.php file and replace it with the modified file.

cd /var/www/html/admin/libraries/
cp php-asmanager.php php-asmanager.php.orig
wget http://www.schmoozecom.com/temp/php-asmanager.txt
mv php-asmanager.txt php-asmanager.php
amportal chown

Note that you will get a notice on the dashboard page that the php-asmanager.php has been tampered with as long as you are using the modified file I posted above.

In any event, feel free to report back here if that fixed your issue or not so we can either continue to track this down or push a fix for everyone.

Your file comes up as blank.

Sorry about that, I’ve updated the instructions above with the correct file ( http://www.schmoozecom.com/temp/php-asmanager.txt instead of http://www.schmoozecom.com/temp/php-asmanager.php.txt )