Page MenuHomePhabricator

PHP Warning: Use of undefined constant data - assumed 'data' (this will throw an Error in a future version of PHP)
Open, MediumPublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   PHP Warning: Use of undefined constant data - assumed 'data' (this will throw an Error in a future version of PHP)
error.stack_trace
from /home/saisuman/account_vanishing_emailer.php(75)
#0 /home/saisuman/account_vanishing_emailer.php(75): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.42.0-wmf.25/maintenance/includes/MaintenanceRunner.php(698): MediaWiki\Extension\MyExtension\Maintenance\VanishingMailer->execute()
#2 /srv/mediawiki/php-1.42.0-wmf.25/maintenance/run.php(51): MediaWiki\Maintenance\MaintenanceRunner->run()
#3 /srv/mediawiki/multiversion/MWScript.php(158): require_once(string)
#4 {main}
Impact
Notes

Event Timeline

hashar triaged this task as Medium priority.Thu, Apr 11, 3:07 PM
hashar created this task.

Hi @SCherukuwada you have a script account_vanishing_emailer.php running on mwmaint1002 which has some PHP fault and ends up emitting php warning in production :) Can you please fix it? It might be wise to send the script to some git repository :)