Last modified: 2014-06-18 20:26:51 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 T67175, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65175 - RevisionDelete - Cannot inherit previously-inherited or override constant READ_LATEST from interface IDBAccessObject in Revision.php on line 26
RevisionDelete - Cannot inherit previously-inherited or override constant REA...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Revision deletion (Other open bugs)
1.22.6
All Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
aklapper-moreinfo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-11 06:47 UTC by Kenneth Burgener
Modified: 2014-06-18 20:26 UTC (History)
2 users (show)

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


Attachments
LocalSettings file (5.32 KB, text/plain)
2014-05-11 06:47 UTC, Kenneth Burgener
Details

Description Kenneth Burgener 2014-05-11 06:47:51 UTC
Created attachment 15344 [details]
LocalSettings file

When I enable RevisionDelete, select a revision in the history, Select "Change Visibility", select a "restriction option", and finally click "Apply to selected revision", I get a blank page and a PHP Fatal error in the logs.

I am enabling RevisionDelete with:
 $wgGroupPermissions['sysop']['deleterevision'] = true;
 $wgGroupPermissions['sysop']['deletelogentry'] = true;

Syslog error:
 PHP Fatal error:  Cannot inherit previously-inherited or override constant READ_LATEST from interface IDBAccessObject in /www/wiki/includes/Revision.php on line 26, referer: http://******/index.php?title=Test&action=revisiondelete&ids%5B17%5D=1

URL:
 http://*****/index.php?title=Special:RevisionDelete&action=submit
Comment 1 Andre Klapper 2014-05-11 10:40:40 UTC
Thanks for reporting this! 
Which PHP version and which database backend and version are this?
Comment 2 Kenneth Burgener 2014-05-11 14:12:49 UTC
I believe the relevant packages are:

php-5.3.28-1.5.amzn1.x86_64
php-mysql-5.3.28-1.5.amzn1.x86_64
php-intl-5.3.28-1.5.amzn1.x86_64
php-xml-5.3.28-1.5.amzn1.x86_64
php-pecl-apc-3.1.15-0.3.svn329913.10.amzn1.x86_64

mysql55-server-5.5.37-1.46.amzn1.x86_64
Comment 3 Jackmcbarn 2014-06-08 02:17:37 UTC
This looks like an issue with APC. Try disabling it to see if it works.
Comment 4 Andre Klapper 2014-06-16 12:30:13 UTC
Kenneth: Can you answer comment 3, please?
Comment 5 Kenneth Burgener 2014-06-18 19:25:52 UTC
I tried changing my config to this:

[---
## Shared memory settings
#$wgMainCacheType = CACHE_ACCEL;
#$wgMemCachedServers = array();

# RevisionDelete - http://www.mediawiki.org/wiki/Manual:RevisionDelete
$wgGroupPermissions['sysop']['deleterevision'] = true;
$wgGroupPermissions['sysop']['deletelogentry'] = true;
---]

But I still get this error:

[---
[Wed Jun 18 19:20:18 2014] [error] [client XXX.XXX.XXX] PHP Fatal error:  Cannot inherit previously-inherited or override constant READ_LATEST from interface IDBAccessObject in /www/wiki/includes/Revision.php on line 26, referer: http://XXX/index.php?title=Test&action=revisiondelete&ids%5B207%5D=1
---]
Comment 6 Jackmcbarn 2014-06-18 19:42:43 UTC
APC is still enabled, even if MediaWiki isn't trying to use it. Set apc.enabled to 0 in your php.ini to actually disable it.
Comment 7 Kenneth Burgener 2014-06-18 20:03:06 UTC
disabling apc in /etc/php.ini appeared to work.

"Revision visibility successfully updated."

So that would confirm an issue with APC and the RevisionDelete extension.  What could be done to fix the issue?
Comment 8 Jackmcbarn 2014-06-18 20:09:25 UTC
It looks like you're hitting https://bugs.php.net/bug.php?id=59101
The solution is to upgrade APC. There's no bug in MediaWiki.
Comment 9 Kenneth Burgener 2014-06-18 20:26:51 UTC
Ok, thank you.

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


Navigation
Links