Страница 1 из 1
Error Message cache.php
Добавлено: 16 ноя 2013, 11:51
Darkside
I have the following error message
Код: Выделить всё
Strict Standards: Declaration of classConfig::getInstance() should be compatible with classCache::getInstance($prefIn = 'CACHE_') in /var/www/virtual/moonprojekt.de/supernova1/htdocs/includes/classes/cache.php on line 693
Line 693 is }
to run the game i have set in cache.php the following lines to 0 ( zero )
define('CACHER_NOT_INIT', 0);
define('CACHER_NO_CACHE', 0);
define('CACHER_XCACHE' , 0);
with other settings in the lines above I can´t start the game
Game = latest trunk
Код: Выделить всё
-- Server Info --
Server Infos: Apache/2.2.22 (Debian)
PHP-Version: 5.4.4-14+deb7u5 (fpm-fcgi)
JSON Verfügbar: Yes
BCMath Verfügbar: Yes
cURL Verfügbar: Yes
SafeMode: No
MemoryLimit: 128M
MySQL-Client-Version: 5.5.31
MySQL-Server-Version: 5.5.31-0+wheezy1
Timezone(PHP/CONF/USER): 1 / 1 / 1
Suhosin: No
and a few questions .....
how can I made more Universes with different game settings ( like 2moons )
the Univers should be selected at the register page
how can I made payment for DM ( like Paypal or other )
here is another error what i get when will spy
Код: Выделить всё
Strict Standards: Declaration of classConfig::getInstance() should be compatible with classCache::getInstance($prefIn = 'CACHE_') in /var/www/virtual/moonprojekt.de/htdocs/includes/classes/cache.php on line 693 Warning: intval() expects parameter 2 to be long, string given in /var/www/virtual/moonprojekt.de/htdocs/includes/functions/uni_functions.php on line 525 Warning: intval() expects parameter 2 to be long, string given in /var/www/virtual/moonprojekt.de/htdocs/includes/functions/uni_functions.php on line 525 Warning: intval() expects parameter 2 to be long, string given in /var/www/virtual/moonprojekt.de/htdocs/includes/functions/uni_functions.php on line 525 Cannot trade with players with same IP!<br>Interaction with players with the same IP could be banned
thx for helping
sorry for my bad english
Re: Error Message cache.php
Добавлено: 16 ноя 2013, 17:02
Gorlum
Darkside писал(а):
define('CACHER_NOT_INIT', 0);
define('CACHER_NO_CACHE', 0);
define('CACHER_XCACHE' , 0);
This is hardcoded constants. You should NEVER change them and/or change anything in PHP-files - unless you understand what you doing. Revert this file back to make game work again
Re: Error Message cache.php
Добавлено: 16 ноя 2013, 17:09
Darkside
Gorlum писал(а):Darkside писал(а):
define('CACHER_NOT_INIT', 0);
define('CACHER_NO_CACHE', 0);
define('CACHER_XCACHE' , 0);
This is hardcoded constants. You should NEVER change them and/or change anything in PHP-files - unless you understand what you doing. Revert this file back to make game work again
Код: Выделить всё
define('CACHER_NOT_INIT', -1);
define('CACHER_NO_CACHE', 0);
define('CACHER_XCACHE' , 1);
with this settings i get this error :
Код: Выделить всё
Strict Standards: Declaration of classConfig::getInstance() should be compatible with classCache::getInstance($prefIn = 'CACHE_') in /var/www/virtual/moonprojekt.de/supernova/htdocs/includes/classes/cache.php on line 693 Warning: xcache_get(): XCache var cache was not initialized properly. Check php log for actual reason in /var/www/virtual/moonprojekt.de/supernova/htdocs/includes/classes/cache.php on line 144 Warning: xcache_set(): XCache var cache was not initialized properly. Check php log for actual reason in /var/www/virtual/moonprojekt.de/supernova/htdocs/includes/classes/cache.php on line 116 Warning: xcache_isset(): XCache var cache was not initialized properly. Check php log for actual reason in /var/www/virtual/moonprojekt.de/supernova/htdocs/includes/classes/cache.php on line 160 DB error - cannot find any table. Halting...
and the game wont start
Re: Error Message cache.php
Добавлено: 17 ноя 2013, 01:50
Gorlum
There is clearly statement what's wrong with your install:
Код: Выделить всё
XCache var cache was not initialized properly. Check php log for actual reason
Your XCache instance is not configured properly. Remove XCache or configure it to use for variables.
Re: Error Message cache.php
Добавлено: 17 ноя 2013, 02:54
Darkside
can you give me a hint how to configure xcache properly ?
Код: Выделить всё
XCache
XCache Support enabled
Version 2.0.0
Modules Built cacher optimizer coverager assembler encoder decoder
Readonly Protection N/A
Cache Init Time 2013-11-17 01:48:58
Cache Instance Id 3313
Opcode Cache enabled, 16,777,216 bytes, 1 split(s), with 8192 slots each
Variable Cache enabled, 104,857,600 bytes, 1 split(s), with 8192 slots each
Shared Memory Schemes mmap
Coverage Auto Dumper disabled
Directive Local Value Master Value
xcache.admin.enable_auth On On
xcache.cacher On On
xcache.coredump_directory no value no value
xcache.count 1 1
xcache.coveragedump_directory no value no value
xcache.coverager Off Off
xcache.experimental Off Off
xcache.gc_interval 0 0
xcache.mmap_path /tmp/xcache /tmp/xcache
xcache.optimizer Off Off
xcache.readonly_protection no value no value
xcache.shm_scheme mmap mmap
xcache.size 16M 16M
xcache.slots 8K 8K
xcache.stat On On
xcache.test no value no value
xcache.ttl 0 0
xcache.var_count 1 1
xcache.var_gc_interval 300 300
xcache.var_maxttl 0 0
xcache.var_size 100M 100M
xcache.var_slots 8K 8K
xcache.var_ttl 0 0
I have set xcache.var_size to 100M and I got this error
Код: Выделить всё
Strict Standards: Declaration of classConfig::getInstance() should be compatible with classCache::getInstance($prefIn = 'CACHE_') in /var/www/virtual/moonprojekt.de/supernova/htdocs/includes/classes/cache.php on line 693
NOTE : I´m on PHP 5.4
Re: Error Message cache.php
Добавлено: 17 ноя 2013, 05:45
Gorlum
Darkside писал(а):can you give me a hint how to configure xcache properly ?
Nope. Each configuration very individual. However 100 mb should be OK for now - just monitor cache loadout via xcache's admin panel.
I have set xcache.var_size to 100M and I got this error
Darkside писал(а):Код: Выделить всё
Strict Standards: Declaration of classConfig::getInstance() should be compatible with classCache::getInstance($prefIn = 'CACHE_') in /var/www/virtual/moonprojekt.de/supernova/htdocs/includes/classes/cache.php on line 693
NOTE : I´m on PHP 5.4
This is a root of problem. SN wrote to be compatible with maximum free providers and work even on low PHP-version (from 5.1.x and above) and contain some tricky tricks to made it work faster and to allow it's uniq modular architecture. So some tricks can be outdated in 5.4.х. If this warning does not affect SN - just ignore it and disable this kind of warning:
http://stackoverflow.com/questions/1248 ... ards-error
Re: Error Message cache.php
Добавлено: 17 ноя 2013, 12:04
Darkside
Gorlum писал(а):Darkside писал(а):can you give me a hint how to configure xcache properly ?
Nope. Each configuration very individual. However 100 mb should be OK for now - just monitor cache loadout via xcache's admin panel.
I have set xcache.var_size to 100M and I got this error
Darkside писал(а):Код: Выделить всё
Strict Standards: Declaration of classConfig::getInstance() should be compatible with classCache::getInstance($prefIn = 'CACHE_') in /var/www/virtual/moonprojekt.de/supernova/htdocs/includes/classes/cache.php on line 693
NOTE : I´m on PHP 5.4
This is a root of problem. SN wrote to be compatible with maximum free providers and work even on low PHP-version (from 5.1.x and above) and contain some tricky tricks to made it work faster and to allow it's uniq modular architecture. So some tricks can be outdated in 5.4.х. If this warning does not affect SN - just ignore it and disable this kind of warning:
http://stackoverflow.com/questions/1248 ... ards-error
I´m on a root server, but i can´t install PHP 5.1 or 5.2.
I only cann install the latest image with PHP 5.4
On this root server i´m hosting some websites
when I will spy I got this errors
Код: Выделить всё
Strict Standards: Declaration of classConfig::getInstance() should be compatible with classCache::getInstance($prefIn = 'CACHE_') in /var/www/virtual/moonprojekt.de/supernova/htdocs/includes/classes/cache.php on line 693 Warning: intval() expects parameter 2 to be long, string given in /var/www/virtual/moonprojekt.de/supernova/htdocs/includes/functions/uni_functions.php on line 525 Warning: intval() expects parameter 2 to be long, string given in /var/www/virtual/moonprojekt.de/supernova/htdocs/includes/functions/uni_functions.php on line 525 Warning: intval() expects parameter 2 to be long, string given in /var/www/virtual/moonprojekt.de/supernova/htdocs/includes/functions/uni_functions.php on line 525 Sent 1 Spy Probe to coordinates 1:1:9
is there anyway to make SN compatible with PHP 5.4 ?
Re: Error Message cache.php
Добавлено: 18 ноя 2013, 00:47
Gorlum
"Warning" and "Strict" level errors usually doesn't hinder code perfomance. Just disable this error messages in yout php.ini as stated in a post above. SN should work normally.
Re: Error Message cache.php
Добавлено: 18 ноя 2013, 01:14
Darkside
Gorlum писал(а):"Warning" and "Strict" level errors usually doesn't hinder code perfomance. Just disable this error messages in yout php.ini as stated in a post above. SN should work normally.
can I invite you for visiting my page ?
http://moonprojekt.de
pls have sound on
Re: Error Message cache.php
Добавлено: 18 ноя 2013, 01:29
Gorlum
Darkside писал(а):Gorlum писал(а):"Warning" and "Strict" level errors usually doesn't hinder code perfomance. Just disable this error messages in yout php.ini as stated in a post above. SN should work normally.
can I invite you for visiting my page ?
http://moonprojekt.de
pls have sound on
You can honor my afforts by translating SN to German and sparing you localization files with me and allowing to add them to open-source SN project.