Error Message cache.php

Багрепорты на публичных версиях СН (не на домене supernova.ws). Одна ошибка - одна тема. Не плодим темы! Перед постингом ознакомьтесь с правилами оформления отчетов об ошибках.

Модератор: Gorlum

Правила форума
Здесь обсуждаются ошибки сторонних серверов на движке СН. Для ошибок в текущей версии движка на серверах oGame.supernova.ws (aka ogame.triolan.com.ua), supernova.ws, beta.supernova.ws необходимо писать в соттветствующий форум.

Перед созданием поста необходимо проверить - есть ли такой баг на основных серверах СН. В частности - на тестовом. Для моделирования ситуации и за ресурсами для моделирования можно обратится к Администрации проекта (к Помощникам или Администратору).

Любое описание об ошибке должно содержать ЧЕТКОЕ описание проблемы. Четкое описание содержит:
а) Ваш ник и версия движка (можно посмотреть через пункт меню "Мировые константы").
б) Уникальный ID сервера - если ваш сервер зарегестрирован на Сервере Обновлений. Постить уникальный СЕКРЕТНЫЙ ключ НЕ НУЖНО!
в) Список проделанных действий
г) Результат, который ожидали получить (обычно ожидаемый результат от действия понятен из описаний на сервере)
д) Результат, который вы получили И в чем он отличается от ожидаемого

Сообщение об ошибке без ЧЕТКОГО описания игнорируется. Я не умею снимать порчу по фотографии и читать мысли по монитору. Правильно оформленный багрепорт поможет мне и другим участником сообщества СН помочь вам с проблемами.

Переде тем, как сообщать об ошибке, внимательно прочтите форум и форум багрепортов на официальных серверах. Возможно, об ошибке уже сообщили и ведутся работы по её исправлению. В этом случае добавьте свой пост в уже открытый тред.
Ответить
Darkside
Рядовой
Сообщения: 5
Зарегистрирован: 15 ноя 2013, 23:21

Error Message cache.php

Сообщение Darkside » 16 ноя 2013, 11:51

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

Gorlum
Император Вселенной
Сообщения: 7509
Зарегистрирован: 13 июн 2009, 15:06
Контактная информация:

Re: Error Message cache.php

Сообщение Gorlum » 16 ноя 2013, 17:02

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
ВНИМАНИЕ! Администрация в личную переписку не вступает, рукописи не возвращает и не рецензирует!
* Если у меня слишком хорошее настроение - я хожу почитать чат *

Darkside
Рядовой
Сообщения: 5
Зарегистрирован: 15 ноя 2013, 23:21

Re: Error Message cache.php

Сообщение Darkside » 16 ноя 2013, 17:09

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

Gorlum
Император Вселенной
Сообщения: 7509
Зарегистрирован: 13 июн 2009, 15:06
Контактная информация:

Re: Error Message cache.php

Сообщение Gorlum » 17 ноя 2013, 01:50

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.
ВНИМАНИЕ! Администрация в личную переписку не вступает, рукописи не возвращает и не рецензирует!
* Если у меня слишком хорошее настроение - я хожу почитать чат *

Darkside
Рядовой
Сообщения: 5
Зарегистрирован: 15 ноя 2013, 23:21

Re: Error Message cache.php

Сообщение Darkside » 17 ноя 2013, 02:54

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

Gorlum
Император Вселенной
Сообщения: 7509
Зарегистрирован: 13 июн 2009, 15:06
Контактная информация:

Re: Error Message cache.php

Сообщение Gorlum » 17 ноя 2013, 05:45

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
ВНИМАНИЕ! Администрация в личную переписку не вступает, рукописи не возвращает и не рецензирует!
* Если у меня слишком хорошее настроение - я хожу почитать чат *

Darkside
Рядовой
Сообщения: 5
Зарегистрирован: 15 ноя 2013, 23:21

Re: Error Message cache.php

Сообщение Darkside » 17 ноя 2013, 12:04

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 ?

Gorlum
Император Вселенной
Сообщения: 7509
Зарегистрирован: 13 июн 2009, 15:06
Контактная информация:

Re: Error Message cache.php

Сообщение Gorlum » 18 ноя 2013, 00:47

"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.
ВНИМАНИЕ! Администрация в личную переписку не вступает, рукописи не возвращает и не рецензирует!
* Если у меня слишком хорошее настроение - я хожу почитать чат *

Darkside
Рядовой
Сообщения: 5
Зарегистрирован: 15 ноя 2013, 23:21

Re: Error Message cache.php

Сообщение Darkside » 18 ноя 2013, 01:14

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 8-)

Gorlum
Император Вселенной
Сообщения: 7509
Зарегистрирован: 13 июн 2009, 15:06
Контактная информация:

Re: Error Message cache.php

Сообщение Gorlum » 18 ноя 2013, 01:29

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 8-)
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.
ВНИМАНИЕ! Администрация в личную переписку не вступает, рукописи не возвращает и не рецензирует!
* Если у меня слишком хорошее настроение - я хожу почитать чат *

Ответить

Вернуться в «[ru/en] Багрепорты/Bugreports»