Last modified: 2013-04-11 10:33:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T49061, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47061 - Abuse Filter Log details shows PHP error
Abuse Filter Log details shows PHP error
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
AbuseFilter (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-09 23:26 UTC by Thomas Jones-Low
Modified: 2013-04-11 10:33 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Thomas Jones-Low 2013-04-09 23:26:46 UTC
Whenever I view the Abuse Filter Log for a specific log entry (e.g. log entry 11), I get the following three errors at the top of the page. 

<b>Warning</b>:  popen() has been disabled for security reasons in <b>/home/travwiki/public_html/includes/GlobalFunctions.php</b> on line <b>2980</b><br />
<br />
<b>Warning</b>:  fread() expects parameter 1 to be resource, null given in <b>/home/travwiki/public_html/includes/GlobalFunctions.php</b> on line <b>2985</b><br />
<br />
<b>Warning</b>:  pclose() has been disabled for security reasons in <b>/home/travwiki/public_html/includes/GlobalFunctions.php</b> on line <b>2993</b><br />

I know why these error occur. The PHP external functions have been disabled by my host for security purposes. And the log entry detail is trying to use the external diff programs for the page changes. 


My request is can we get the the Abuse Filter Log detail page to check if the php extern functions are disabled without having to generate these errors.
Comment 1 Alex Monk 2013-04-09 23:31:49 UTC
If this bug is valid anywhere it's going to be in core, so moving products/components.
Comment 2 Sam Reed (reedy) 2013-04-09 23:42:24 UTC
(In reply to comment #0)
> My request is can we get the the Abuse Filter Log detail page to check if the
> php extern functions are disabled without having to generate these errors.

No. Change your php error reporting level, we don't need to re-implement the wheel.

error_reporting(E_ERROR | E_PARSE);
Comment 3 Thomas Jones-Low 2013-04-11 00:03:45 UTC
The rest of the diff processing in the Mediawiki works correctly without errors and without changing the php reporting level.  So why does the error appear just, and only, in the AbuseLog diffs? 

Is this another affect of bug 36478?
Comment 4 Andre Klapper 2013-04-11 10:33:24 UTC
[Please either keep bug resolutions, or explain why you change them.]

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links