1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug Cannot redeclare class XFCP_ eval()'d code

Discussion in 'Resolved Bug Reports' started by bato3, Sep 26, 2016.

Thread Status:
Not open for further replies.
  1. bato3

    bato3 New Member

    Fatal error: Cannot redeclare class XFCP_Nobita_Teams_XenForo_Model_Thread in /home/xen/domains/test.shinden.pl/public_html/library/XenForo/Application.php(528) : eval()'d code on line 1

    I'm try using this api: https://github.com/Contex/XenAPI/tree/master/net/xenapi/XenAPI
    (undocumented option: api.php?action=search&type=thread&value=thread_title)

    and [Nobita] Social Groups (Teams/Guilds/Clubs) 2.5.9 f , (unable to get real support...)

    My Solution
    static private $dynamicClasess = Array(); //added
    public static function resolveDynamicClass($class$type ''$fakeBase false) {
    // changed code (eval and )
    if(!in_array($proxyClassself::$dynamicClasess)) {
    self::$dynamicClasess[] = $proxyClass;
    $namespaceEval 'class ' $proxyClass ' extends ' $createClass ' {}');   
    Call stack
    {main}( ) .../api.php:0
    RestAPI->processRequest( ) .../api.php:56
    XenAPI->search( ) .../api.php:3244
    XenForo_Search_Searcher->searchGeneral( ) .../api.php:3434
    XenForo_Model_Search->getViewableSearchResults( ) .../Searcher.php:82
    XenForo_Model_Search->getViewableSearchResultData( ) .../Search.php:331
    XenForo_Search_DataHandler_Thread->getDataForResults( ) .../Search.php:297
    XenForo_Search_DataHandler_Thread->_getThreadModel( ) .../Thread.php:142
    XenForo_Model::create( ) .../Thread.php:227
    XenForo_Application::resolveDynamicClass( ) .../Model.php:189
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You would be able to post in the thread if you had a license or associated your account.
Thread Status:
Not open for further replies.

Share This Page