LOGIN ID Password Auto Login Register Now! Lost Password?
XUGJ Forum

Re: XoopsX_pilotでのPHP ERROR

投稿ツリー


このトピックの投稿一覧へ

heiji

なし Re: XoopsX_pilotでのPHP ERROR

msg# 1.1
depth:
1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2013/12/5 0:02
heiji  Ensign 居住地: ☆☆☆  投稿数: 251
> PHP ERROR NOTICE: Undefined offset: 2 in (XOOPS_TRUST_PATH)\modules\zfaq\blocks\Faq_most_viewedBlock.class.php on line 68#0 Zfaq_Faq_most_viewedBlock->prepare() called at [(XOOPS_ROOT_PATH)\modules\legacy\kernel\Legacy_PublicControllerStrategy.class.php:57]

これは単純に私のコーディングが足りないだけでした。

> PHP ERROR STRICT NOTICE: Non-static method Zfaq_AssetManager::getInstance() should not be called statically in (XOOPS_TRUST_PATH)\modules\zfaq\preload\AssetPreload.class.php on line 88#0 Zfaq_AssetPreloadBase::getManager() called at [?:?]

これは、FACTORYで生成されるコードの問題のようです。

class/AssetManager.class.php
public function &getInstance(/*** string ***/ $dirname) → public static function &getInstance(/*** string ***/ $dirname)
つまり、staticをつけると、エラーがなくなりました。
他に影響が出ないかちょっと心配ですが。
根本的には、FACTORYを修正していただく必要があります。

ということで、残りは以下なのですが、staticをつけるとエラーが消えるものも多いかと思います。

PHP ERROR STRICT NOTICE: call_user_func_array() expects parameter 1 to be a valid callback, non-static method FileSession::setupSessionHandler() should not be called statically in (XOOPS_ROOT_PATH)\core\XCube_Delegate.class.php on line 327#0 XCube_Delegate->call() called at [(XOOPS_ROOT_PATH)\core\XCube_Session.class.php:73]
PHP ERROR STRICT NOTICE: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Legacy_TextFilter::makeClickableConvertTable() should not be called statically in (XOOPS_ROOT_PATH)\core\XCube_Delegate.class.php on line 327#0 XCube_Delegate->call() called at [(XOOPS_ROOT_PATH)\modules\legacy\kernel\Legacy_TextFilter.class.php:263]
PHP ERROR STRICT NOTICE: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Legacy_TextFilter::makePostXCodeConvertTable() should not be called statically in (XOOPS_ROOT_PATH)\core\XCube_Delegate.class.php on line 327#0 XCube_Delegate->call() called at [(XOOPS_ROOT_PATH)\modules\legacy\kernel\Legacy_TextFilter.class.php:529]
PHP ERROR STRICT NOTICE: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Legacy_TextFilter::makePreXCodeConvertTable() should not be called statically in (XOOPS_ROOT_PATH)\core\XCube_Delegate.class.php on line 327#0 XCube_Delegate->call() called at [(XOOPS_ROOT_PATH)\modules\legacy\kernel\Legacy_TextFilter.class.php:473]
PHP ERROR STRICT NOTICE: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Legacy_TextFilter::makeXCodeCheckImgPatterns() should not be called statically in (XOOPS_ROOT_PATH)\core\XCube_Delegate.class.php on line 327#0 XCube_Delegate->call() called at [(XOOPS_ROOT_PATH)\modules\legacy\kernel\Legacy_TextFilter.class.php:343]
PHP ERROR STRICT NOTICE: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Legacy_TextFilter::makeXCodeConvertTable() should not be called statically in (XOOPS_ROOT_PATH)\core\XCube_Delegate.class.php on line 327#0 XCube_Delegate->call() called at [(XOOPS_ROOT_PATH)\modules\legacy\kernel\Legacy_TextFilter.class.php:310]
PHP ERROR STRICT NOTICE: Declaration of AdelieDebug_Debug_XoopsErrorHandler::getInstance() should be compatible with & XoopsErrorHandler::getInstance() in (XOOPS_ROOT_PATH)\preload\AdelieDebug.class.php(10) : eval()'d code on line 1#0 AdelieDebug_Archive_ClassLoader->loadClass() called at [?:?]
PHP ERROR STRICT NOTICE: Declaration of AdelieDebug_Debug_XoopsLogger_TP::instance() should be compatible with & XoopsLogger::instance() in (XOOPS_ROOT_PATH)\preload\AdelieDebug.class.php(10) : eval()'d code on line 1#0 AdelieDebug_Archive_ClassLoader->loadClass() called at [?:?]
PHP ERROR STRICT NOTICE: Non-static method AdelieDebug_Debug_XoopsErrorHandler::getInstance() should not be called statically, assuming $this from incompatible context in (XOOPS_ROOT_PATH)\preload\AdelieDebug.class.php(10) : eval()'d code on line 1#0 Legacy_Controller->_setupDebugger() called at [(XOOPS_ROOT_PATH)\modules\legacy\kernel\Legacy_Controller.class.php:207]
PHP ERROR STRICT NOTICE: Non-static method BulletinGP::getInstance() should not be called statically in (XOOPS_TRUST_PATH)\modules\bulletin\blocks\bulletin_new.php on line 38#0 b_bulletin_new_show() called at [(XOOPS_ROOT_PATH)\kernel\block.php:185]
PHP ERROR STRICT NOTICE: Non-static method BulletinGP::getInstance() should not be called statically in (XOOPS_TRUST_PATH)\modules\bulletin\include\common_functions.php on line 17#0 bulletin_get_submenu() called at [(XOOPS_TRUST_PATH)\modules\bulletin\xoops_version.php:104]
PHP ERROR STRICT NOTICE: Non-static method MyTextSanitizer::getInstance() should not be called statically in (XOOPS_TRUST_PATH)\modules\bulletin\include\common_functions.php on line 11#0 bulletin_get_submenu() called at [(XOOPS_TRUST_PATH)\modules\bulletin\xoops_version.php:104]
PHP ERROR STRICT NOTICE: Non-static method MyTextSanitizer::getInstance() should not be called statically in (XOOPS_TRUST_PATH)\modules\bulletin\include\configs.inc.php on line 35#0 require() called at [(XOOPS_TRUST_PATH)\modules\bulletin\blocks\bulletin_new.php:32]
PHP ERROR STRICT NOTICE: Non-static method MyTextSanitizer::getInstance() should not be called statically, assuming $this from incompatible context in (XOOPS_ROOT_PATH)\kernel\object.php on line 346#0 XoopsUser::getUnameFromId() called at [(XOOPS_TRUST_PATH)\modules\bulletin\blocks\bulletin_new.php:135]
PHP ERROR STRICT NOTICE: Non-static method MyTextSanitizer::getInstance() should not be called statically, assuming $this from incompatible context in (XOOPS_ROOT_PATH)\kernel\object.php on line 346#0 XoopsUser::getUnameFromId() called at [(XOOPS_TRUST_PATH)\modules\bulletin\blocks\bulletin_new.php:136]
PHP ERROR STRICT NOTICE: Non-static method XCube_DelegateUtils::_compareCallback() should not be called statically, assuming $this from incompatible context in (XOOPS_ROOT_PATH)\core\XCube_Delegate.class.php on line 469#0 Search_Preload_BASE->preBlockFilter() called at [(XOOPS_ROOT_PATH)\core\XCube_Controller.class.php:401]

こんなページを見つけたので、ご参考までにURLを貼っておきます。

 PHP E_STRICTで表示されるエラーメッセージを調べてみた
 http://www.1x1.jp/blog/2007/11/php_e_strict_message.html
投票数:5 平均点:10.00

  条件検索へ


Back to Page Top
MainMenu
Manuals
Search
XOOPS Official & Dev.
XOOPS Communities