Topic on Extension talk:ConfirmAccount

Internal error caused by broken apcu_set() calls

4
Summary by Spas.Z.Spasov
Spas.Z.Spasov (talkcontribs)

Hello Community,

I'm trying to setup ConfirmAccount with MediaWiki 1.28.0 on a Ubuntu Server 16.04 VPS. It looks like that ConfirmAccount works but with one exception. After clicking on Request account button Internal Error like next appears:

[WEXHLU98QLwAAARB@rcAAAAE] /index.php/Special:RequestAccount Error from line 75 of /var/www/mediawiki/includes/libs/objectcache/APCUBagOStuff.php: Call to undefined function apcu_set()

Backtrace:

#0 /var/www/mediawiki/extensions/ConfirmAccount/business/AccountRequestSubmission.php(271): APCUBagOStuff->incr(string)
#1 /var/www/mediawiki/includes/deferred/MWCallableUpdate.php(28): AccountRequestSubmission->{closure}()
#2 /var/www/mediawiki/includes/deferred/DeferredUpdates.php(263): MWCallableUpdate->doUpdate()
#3 /var/www/mediawiki/includes/deferred/DeferredUpdates.php(225): DeferredUpdates::runUpdate(MWCallableUpdate, LBFactorySimple, integer)
#4 /var/www/mediawiki/includes/deferred/DeferredUpdates.php(133): DeferredUpdates::execute(array, string, integer)
#5 /var/www/mediawiki/includes/MediaWiki.php(891): DeferredUpdates::doUpdates(string)
#6 /var/www/mediawiki/includes/MediaWiki.php(720): MediaWiki->restInPeace(string)
#7 /var/www/mediawiki/includes/MediaWiki.php(739): MediaWiki->{closure}()
#8 /var/www/mediawiki/includes/MediaWiki.php(543): MediaWiki->doPostOutputShutdown(string)
#9 /var/www/mediawiki/index.php(43): MediaWiki->run()
#10 {main}

Despite of this error the process is started and the new account can be confirmed. (I've used it previously on my home server with MW 1.27.1 and Ubuntu 16.04 - there it works fine).

Could someone help me to deal with this issue, please?

Spas.Z.Spasov (talkcontribs)

I've found that if I comment public function incr() and public function decr() in $IP/includes/libs/objectcache/APCBagOStuff.php and in $IP/includes/libs/objectcache/APCUBagOStuff.php this internal error message disappears. But this is not a true solution.

Aaron Schulz (talkcontribs)
Spas.Z.Spasov (talkcontribs)

This was really fast, I saw it early in the morning. Thank you, Aaron Schulz!