Topic on Project:Support desk

Fatal exception of type MWException after upgrade to OSX server yosemite

9
220.69.180.57 (talkcontribs)
I use MediaWiki 1.23.0 with OS X server mavericks. However after upgrade to OS X 4.0 yosemite, It shows error '[43887455] 2014-10-21 00:38:56: Fatal exception of type MWException' with the title of Internal error. I have no idea of how to solve. Anyone can advice me? Please let me know the solution.
Florianschmidtwelzow (talkcontribs)

Hello,

you should add $wgShowExceptionDetails to true in your LocalSettings.php to see more information about the Exception. Reproduce the error and give us the exact error message :)

220.69.180.57 (talkcontribs)

Error was like below:

CACHE_ACCEL requested but no suitable object cache is present. You may want to install APC.

Backtrace:

  1. 0 [internal function]: ObjectCache::newAccelerator(array)
  2. 1 /Library/Server/Web/Data/Sites/zhx.xyz/w/includes/objectcache/ObjectCache.php(85): call_user_func(string, array)
  3. 2 /Library/Server/Web/Data/Sites/zhx.xyz/w/includes/objectcache/ObjectCache.php(72): ObjectCache::newFromParams(array)
  4. 3 /Library/Server/Web/Data/Sites/zhx.xyz/w/includes/objectcache/ObjectCache.php(44): ObjectCache::newFromId(integer)
  5. 4 /Library/Server/Web/Data/Sites/zhx.xyz/w/includes/GlobalFunctions.php(3961): ObjectCache::getInstance(integer)
  6. 5 /Library/Server/Web/Data/Sites/zhx.xyz/w/includes/Setup.php(513): wfGetMainCache()
  7. 6 /Library/Server/Web/Data/Sites/zhx.xyz/w/includes/WebStart.php(156): require_once(string)
  8. 7 /Library/Server/Web/Data/Sites/zhx.xyz/w/index.php(43): require(string)
  9. 8 {main}


I installed APC with homebrew, but I don't know how to reinstall it. I did uninstall and install but, APC shows error.

brew install autoconf brew install pcre sudo pecl install apc

2 warnings and 6 errors generated. make: *** [apc_compile.lo] Error 1 ERROR: `make' failed


I don't know what to do.

Florianschmidtwelzow (talkcontribs)

You need to have a working APC installation to use CACHE_ACCEL (or XCache or WinCache). If you APC isn't working, you should use CACHE_NONE or CACHE_DB (or another supported cahce method).

220.69.180.57 (talkcontribs)

Now I see the problem.

I upgraded OS X server Mavericks to Yosemite.

Yosemite has php version of 5.5.

PHP 5.5 (Yosemite) is not compatible with APC 3.1.13 (My previous Version of APC).

Any idea for this situation?

88.130.71.88 (talkcontribs)
PleaseStand (talkcontribs)

It can replace APC's opcode caching functionality. However, it does not provide the data caching functionality used for CACHE_ACCEL. That was moved to a new PECL extension called APCu.

220.69.180.57 (talkcontribs)

when I check Version, with php -v

It shows like below :

PHP Warning: PHP Startup: apc: Unable to initialize module Module compiled with module API=20100525 PHP compiled with module API=20121212 These options need to match

in Unknown on line 0

PHP 5.5.14 (cli) (built: Sep 9 2014 19:09:25) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies

AKlapper (WMF) (talkcontribs)

Unrelated but please use the latest 1.23.x version. 1.23.0 is old and has security issues.

Reply to "Fatal exception of type MWException after upgrade to OSX server yosemite"