Jump to content

Error when Enabling XCache


mynsc

Recommended Posts

Posted

Getting the following error when trying to enable XCache from System -> Advanced Configuration -> Data Storage -> Caching Method, after uploading constants.php. It does not matter if Data Storage Method is set to File System or MySQL Database:

Fatal error: Uncaught exception 'ErrorException' with message 'xcache_set(): XCache var cache was not initialized properly. Check php log for actual reason' in /home/mmowat/public_html/system/Data/Cache/Xcache.php:66 Stack trace: #0 [internal function]: IPS\IPS::errorHandler(2, 'xcache_set(): X...', '/home/mmowat/pu...', 66, Array) #1 /home/mmowat/public_html/system/Data/Cache/Xcache.php(66): xcache_set('b7af112fef_sett...', '{"acp_notes":""...') #2 /home/mmowat/public_html/system/Data/AbstractData.php(90): IPS\Data\Cache\_Xcache->set('settings', '{"acp_notes":""...') #3 /home/mmowat/public_html/system/Data/Store.php(100): IPS\Data\_AbstractData->__set('settings', Array) #4 /home/mmowat/public_html/system/Settings/Settings.php(123): IPS\Data\_Store->__get('settings') #5 /home/mmowat/public_html/system/Settings/Settings.php(88): IPS\_Settings->loadFromDb() #6 /home/mmowat/public_html/system/Dispatcher/Standard.php(280): IPS\_Settings->__get('task_use_cron') #7 [internal function]: IPS\Dispatcher\_Standard->__destruct() #8 in /home/mmowat/public_html/system/Data/Cache/Xcache.php on line 66

Fatal error: Uncaught exception 'ErrorException' with message 'xcache_set(): XCache var cache was not initialized properly. Check php log for actual reason' in /home/mmowat/public_html/system/Data/Cache/Xcache.php:66 Stack trace: #0 [internal function]: IPS\IPS::errorHandler(2, 'xcache_set(): X...', '/home/mmowat/pu...', 66, Array) #1 /home/mmowat/public_html/system/Data/Cache/Xcache.php(66): xcache_set('b7af112fef_sett...', '{"acp_notes":""...') #2 /home/mmowat/public_html/system/Data/AbstractData.php(90): IPS\Data\Cache\_Xcache->set('settings', '{"acp_notes":""...') #3 /home/mmowat/public_html/system/Data/Store.php(100): IPS\Data\_AbstractData->__set('settings', Array) #4 /home/mmowat/public_html/system/Settings/Settings.php(123): IPS\Data\_Store->__get('settings') #5 /home/mmowat/public_html/system/Settings/Settings.php(88): IPS\_Settings->loadFromDb() #6 /home/mmowat/public_html/system/Request/Request.php(238): IPS\_Settings->__get('xforward_matchi...') #7 /home/mmowat/public_html/system/Session/Admin.php(106): IPS\_R in /home/mmowat/public_html/system/Data/Cache/Xcache.php on line 66

Line 66 is:

		return (bool) xcache_set( \IPS\SUITE_UNIQUE_KEY . '_' . $key, $value );

In case it helps, php.ini shows the following info regarding XCache:

2015-04-04_22_58_36-phpinfo().thumb.jpg.

I've also searched for any specific PHP errors, with not much luck. I've looked at /usr/local/apache/logs/error_log and didn't see anything relevant.

I've also checked /usr/local/cpanel/logs/error_log and did find this, however not sure how relevant it is:

[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive directive
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive foo
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive foo
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive foo
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive gpc_order
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.admin.enable_auth
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.admin.pass
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.admin.user
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.cacher
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.coredump_directory
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.count
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.coveragedump_directory
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.coverager
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.gc_interval
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.mmap_path
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.optimizer
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.readonly_protection
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.size
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.slots
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.test
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.ttl
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.var_count
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.var_gc_interval
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.var_maxttl
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.var_size
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.var_slots
[2015-04-04 22:20:12 +0300] info [whostmgr] Skipping unknown PHP ini directive xcache.var_ttl

XCache was installed together with PHP, using cPanel's EasyApache tool:

Apache 2.4

Deflate (More information)
Expires (More information)
Fileprotect
Headers (More information)
Mod SuPHP 0.7.2 (More information)
Proxy (More information)

PHP 5.5

Bcmath (More information)
CGI (More information)
Calendar (More information)
CurlSSL (More information)
FTP (More information)
GD (More information)
Iconv (More information)
Imap (More information)
MailHeaders (More information)
Mbregex
Mbstring (More information)
MySQL "Improved" extension. (More information)
Mysql (More information)
Mysql of the system (More information)
Openssl (More information)
POSIX (More information)
Pear (More information)
Sockets (More information)
Zip (More information)
Zlib (More information)
Additional OptMods
IonCube Loader 4.6.1 for PHP (More information)
Xcache 3.1.0 for PHP (More information)

The constants.php file I get is

<?php


define( 'STORE_METHOD', 'FileSystem' );
define( 'STORE_CONFIG', '{"path":"/home/user/public_html/datastore"}' );
define( 'CACHE_METHOD', 'Xcache' );
define( 'CACHE_CONFIG', '[]' );
define( 'CACHE_PAGE_TIMEOUT', 180 );
define( 'SUITE_UNIQUE_KEY', 'some_unique_key_here' );

Could anyone give any hints as to why this error is occurring and what can be done about it?

  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...