Death1 Posted February 11, 2013 Report Share Posted February 11, 2013 Сопсно вот текст adminsourcesclassesoutputpublicOutput.php(3802) : eval()'d code on line 12 Как лечить? Quote Link to comment Share on other sites More sharing options...
Death1 Posted February 11, 2013 Author Report Share Posted February 11, 2013 ругается на этот блок: { /* Hooks: Are we overloading this class? */ $hooksCache = ipsRegistry::cache()->getCache('hooks'); if( isset($hooksCache['skinHooks'][ $name ]) && is_array($hooksCache['skinHooks'][ $name ]) && count($hooksCache['skinHooks'][ $name ]) ) { foreach( $hooksCache['skinHooks'][ $name ] as $classOverloader ) { if( is_file( IPS_HOOKS_PATH . $classOverloader['filename'] ) ) { if( ! class_exists( $classOverloader['className'] ) ) { /* Hooks: Do we have the hook file? */ $thisContents = file_get_contents( IPS_HOOKS_PATH . $classOverloader['filename'] ); $thisContents = str_replace( $name."(~id~)", $classname, $thisContents ); ob_start(); eval( $thisContents ); ob_end_clean(); } if( class_exists( $classOverloader['className'] ) ) { /* Hooks: We have the hook file and the class exists - reset the classname to load */ $classname = $classOverloader['className']; } } } } в частности на эту строку eval( $thisContents ); Quote Link to comment Share on other sites More sharing options...
AUYKGN Posted February 11, 2013 Report Share Posted February 11, 2013 (edited) Death1, подробней описывай проблему: Что за ошибка/После чего случилась/Что пытался предпринять. И ошибки и все коды заворачивай в BBкод кода, чтобы выглядело так: adminsourcesclassesoutputpublicOutput.php(3802) : eval()'d code on line 12 { /* Hooks: Are we overloading this class? */ $hooksCache = ipsRegistry::cache()->getCache('hooks'); if( isset($hooksCache['skinHooks'][ $name ]) && is_array($hooksCache['skinHooks'][ $name ]) && count($hooksCache['skinHooks'][ $name ]) ) { foreach( $hooksCache['skinHooks'][ $name ] as $classOverloader ) { if( is_file( IPS_HOOKS_PATH . $classOverloader['filename'] ) ) { if( ! class_exists( $classOverloader['className'] ) ) { /* Hooks: Do we have the hook file? */ $thisContents = file_get_contents( IPS_HOOKS_PATH . $classOverloader['filename'] ); $thisContents = str_replace( $name."(~id~)", $classname, $thisContents ); ob_start(); eval( $thisContents ); ob_end_clean(); } if( class_exists( $classOverloader['className'] ) ) { /* Hooks: We have the hook file and the class exists - reset the classname to load */ $classname = $classOverloader['className']; } } } } Edited February 11, 2013 by WzGeee Quote Link to comment Share on other sites More sharing options...
Death1 Posted February 11, 2013 Author Report Share Posted February 11, 2013 Появилось после установки хука (SOS34) Group Color on User Links v1.3.0. При отключении этой фичи. ошибка пропадает. Ты гдето присал что после обновления форума такое было, но решилось обновлением кэша - это не мой случай, я кэш до дыр затёр, толку 0. Quote Link to comment Share on other sites More sharing options...
Death1 Posted February 11, 2013 Author Report Share Posted February 11, 2013 Установил хук этот на чистый ipb 3.4.1 и такая же ошибка. А возникает она когда заходиш в какой нибудь из форумов. Quote Link to comment Share on other sites More sharing options...
AUYKGN Posted February 11, 2013 Report Share Posted February 11, 2013 Death1, спроси у хостера, они ни чего последнее время не обновляли, не чинили? Если уже на чистом IPB не работает... Quote Link to comment Share on other sites More sharing options...
Death1 Posted February 11, 2013 Author Report Share Posted February 11, 2013 (edited) Death1, спроси у хостера, они ни чего последнее время не обновляли, не чинили? Если уже на чистом IPB не работает... Я сам себе хостер Не обновлял. Edited February 11, 2013 by Death1 Quote Link to comment Share on other sites More sharing options...
Death1 Posted February 11, 2013 Author Report Share Posted February 11, 2013 Можно эти вронги отключить по средствам .htaccess - но это не дело. Что никто не в теме где беда ? Quote Link to comment Share on other sites More sharing options...
HooLIGUN Posted February 11, 2013 Report Share Posted February 11, 2013 на эту строку eval( $thisContents ); А что если ее удалить? Quote Link to comment Share on other sites More sharing options...
Death1 Posted February 11, 2013 Author Report Share Posted February 11, 2013 Неа, сайт совсем рушится))) Quote Link to comment Share on other sites More sharing options...
_Dark_ Posted February 11, 2013 Report Share Posted February 11, 2013 Используйте вот модификацию. AUYKGN 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.