Results 1 to 2 of 2

Thread: [Solved]3.0 to 3.2.7 - contao image selector broken

  1. #1
    New user
    Join Date
    07-15-09.
    Posts
    12

    Ausrufezeichen [Solved]3.0 to 3.2.7 - contao image selector broken

    after updating from 3.0 to 3.2.7

    Getting this error from the contao image selector it appears where the new selection should appear.

    Fatal error: Uncaught exception Exception with message No parent entry for / thrown in system/modules/core/library/Contao/Dbafs.php on line 151

    #0 system/modules/core/classes/Ajax.php(333): Contao\Dbafs::addResource('/files/images/p...')
    #1 system/modules/core/classes/Backend.php(264): Contao\Ajax->executePostActions(Object(Contao\DC_Table))
    #2 contao/main.php(136): Contao\Backend->getBackendModule('article')
    #3 contao/main.php(287): Main->run()
    #4 {main}


    it refers to this part of Dbafs

    // The parent ID should be in $arrPids
    // Do not use isset() here, because the PID can be null
    if (array_key_exists($strParent, $arrPids))
    {
    $strPid = $arrPids[$strParent];
    }
    else
    {
    throw new \Exception("No parent entry for $strParent");
    }



    Any Ideas?
    Last edited by shmuelios; 02/20/2014 at 20:21. Reason: Extra details

  2. #2
    New user
    Join Date
    07-15-09.
    Posts
    12

    Default

    OK found the issue

    from config

    This worked fine in 3.0
    $GLOBALS['TL_CONFIG']['uploadPath'] = '/files';

    Was fixed like so
    $GLOBALS['TL_CONFIG']['uploadPath'] = 'files';

    Phew :#

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •