| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 7883|Reply: 2
Collapse the left

PHP Warning: xcache_get(): XCache var cache was not initialized properly. Check

[Copy link]

 Turkey

Post time: 2015-07-25 01:22
| Show all posts |Read mode


When i enable XCache i found new errors  for XCache

  1. [25-Jul-2015 00:53:35 Etc/GMT-3] PHP Warning:  xcache_get(): XCache var cache was not initialized properly. Check php log for actual reason in /home/droidim/public_html/source/class/memory/memory_driver_xcache.php on line 22
  2. [25-Jul-2015 00:53:35 Etc/GMT-3] PHP Warning:  xcache_set(): XCache var cache was not initialized properly. Check php log for actual reason in /home/droidim/public_html/source/class/memory/memory_driver_xcache.php on line 26
  3. [25-Jul-2015 00:53:35 Etc/GMT-3] PHP Warning:  xcache_get(): XCache var cache was not initialized properly. Check php log for actual reason in /home/droidim/public_html/source/class/memory/memory_driver_xcache.php on line 22
  4. [25-Jul-2015 00:53:35 Etc/GMT-3] PHP Warning:  xcache_get(): XCache var cache was not initialized properly. Check php log for actual reason in /home/droidim/public_html/source/class/memory/memory_driver_xcache.php on line 22
  5. [25-Jul-2015 00:53:35 Etc/GMT-3] PHP Warning:  xcache_get(): XCache var cache was not initialized properly. Check php log for actual reason in /home/droidim/public_html/source/class/memory/memory_driver_xcache.php on line 22
  6. [25-Jul-2015 00:53:35 Etc/GMT-3] PHP Warning:  xcache_get(): XCache var cache was not initialized properly. Check php log for actual reason in /home/droidim/public_html/source/class/memory/memory_driver_xcache.php on line 22
  7. [25-Jul-2015 00:53:35 Etc/GMT-3] PHP Warning:  xcache_get(): XCache var cache was not initialized properly. Check php log for actual reason in /home/droidim/public_html/source/class/memory/memory_driver_xcache.php on line 22
  8. [25-Jul-2015 00:53:35 Etc/GMT-3] PHP Warning:  xcache_get(): XCache var cache was not initialized properly. Check php log for actual reason in /home/droidim/public_html/source/class/memory/memory_driver_xcache.php on line 22
  9. [25-Jul-2015 00:53:35 Etc/GMT-3] PHP Warning:  xcache_set(): XCache var cache was not initialized properly. Check php log for actual reason in /home/droidim/public_html/source/class/memory/memory_driver_xcache.php on line 26
  10. [25-Jul-2015 00:53:35 Etc/GMT-3] PHP Warning:  xcache_set(): XCache var cache was not initialized properly. Check php log for actual reason in /home/droidim/public_html/source/class/memory/memory_driver_xcache.php on line 26
  11. [25-Jul-2015 00:53:35 Etc/GMT-3] PHP Warning:  xcache_set(): XCache var cache was not initialized properly. Check php log for actual reason in /home/droidim/public_html/source/class/memory/memory_driver_xcache.php on line 26
  12. [25-Jul-2015 00:53:35 Etc/GMT-3] PHP Warning:  xcache_set(): XCache var cache was not initialized properly. Check php log for actual reason in /home/droidim/public_html/source/class/memory/memory_driver_xcache.php on line 26
  13. [25-Jul-2015 00:53:35 Etc/GMT-3] PHP Warning:  xcache_set(): XCache var cache was not initialized properly. Check php log for actual reason in /home/droidim/public_html/source/class/memory/memory_driver_xcache.php on line 26
  14. [25-Jul-2015 00:53:35 Etc/GMT-3] PHP Warning:  xcache_set(): XCache var cache was not initialized properly. Check php log for actual reason in /home/droidim/public_html/source/class/memory/memory_driver_xcache.php on line 26
Copy the Code


Here
/public_html/source/class/memory/memory_driver_xcache.php file


  1. <?php

  2. /**
  3. *      [Discuz!] (C)2001-2099 Comsenz Inc.
  4. *      This is NOT a freeware, use is subject to license terms
  5. *
  6. *      $Id: memory_driver_xcache.php 27449 2012-02-01 05:32:35Z zhangguosheng $
  7. */

  8. if(!defined('IN_DISCUZ')) {
  9.         exit('Access Denied');
  10. }

  11. class memory_driver_xcache
  12. {

  13.         public function init($config) {

  14.         }

  15.         public function get($key) {
  16.                 return xcache_get($key);
  17.         }

  18.         public function set($key, $value, $ttl = 0) {
  19.                 return xcache_set($key, $value, $ttl);
  20.         }

  21.         public function rm($key) {
  22.                 return xcache_unset($key);
  23.         }

  24.         public function clear() {
  25.                 return xcache_clear_cache(XC_TYPE_VAR, 0);
  26.         }

  27.         public function inc($key, $step = 1) {
  28.                 return xcache_inc($key, $step);
  29.         }

  30.         public function dec($key, $step = 1) {
  31.                 return xcache_dec($key, $step);
  32.         }

  33. }
Copy the Code


 Russia

Post time: 2015-07-26 21:26
| Show all posts
Why you enabled XCache?
Do you have the XCache installed at your server?
If yes, then ask help from your provider.

 Turkey

 Author| Post time: 2015-07-30 21:54
| Show all posts
Yes my server support Xcache
but Xcache.var.size =0
and i cant acces php.ini
so cant change value.
So ı disable it
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-04-25 04:31 GMT+3 , Processed in 0.047323 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list