Jump to:

10931 Posts in 2614 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » [Notice] Undefined index: album

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1162 Views
  • MULTIDOTS
    Avatar
    Community Member
    16 Posts

    [Notice] Undefined index: album Link to this post

    Hello

    I have installed the image_gallery module (r493) with silverstripe version 2.4.2.

    After that I have created 2 album this is also working fine, but when I am trying to add photo(Upload Images....) to each album it give me error:

    [Notice] Undefined index: album
    POST /ProjectName/admin/EditForm/field/GalleryItems/UploadForm?ctf[GalleryItems][start]=0&ctf[GalleryItems][per_page]=10&ctf[GalleryItems][showall]=0&ctf[GalleryItems][sort]=SortOrder&ctf[GalleryItems][sort_dir]=&ctf[GalleryItems][search]=&ctf[GalleryItems][filter]=AlbumID_2&ctf[GalleryItems][view]=grid&ctf[GalleryItems][imagesize]=100

    Line 87 in /var/www/ProjectName/image_gallery/code/ImageGalleryManager.php
    Source

    78       $fields = parent::getImportFields();
    79       
    80       if(isset($_REQUEST['album']))
    81          $fields->push(new HiddenField('AlbumID', '', $_REQUEST['album']));
    82       return $fields;
    83    }
    84
    85    protected function importLinkFor($file)
    86    {      
    87       return parent::importLinkFor($file)."?album=".$_REQUEST['album'];
    88    }
    89    
    90    
    91    public function saveImportForm($data, $form)
    92    {
    93       if(isset($data['imported_files']) && is_array($data['imported_files'])) {

    Trace

    * ImageGalleryManager->importLinkFor(Folder)
    Line 147 of FileDataObjectManager.php
    * FileDataObjectManager->getImportFolderHierarchy(0)
    Line 130 of FileDataObjectManager.php
    * FileDataObjectManager->ImportDropdown()
    Line 382 of FileDataObjectManager.php
    * FileDataObjectManager->UploadForm(SS_HTTPRequest)
    Line 137 of RequestHandler.php
    * RequestHandler->handleRequest(SS_HTTPRequest)
    Line 155 of RequestHandler.php
    * RequestHandler->handleRequest(SS_HTTPRequest)
    Line 155 of RequestHandler.php
    * RequestHandler->handleRequest(SS_HTTPRequest)
    Line 147 of Controller.php
    * Controller->handleRequest(SS_HTTPRequest)
    Line 281 of Director.php
    * Director::handleRequest(SS_HTTPRequest,Session)
    Line 124 of Director.php
    * Director::direct(/admin/EditForm/field/GalleryItems/UploadForm)
    Line 127 of main.php

    Please help......

  • Ryan M.
    Avatar
    Community Member
    309 Posts

    Re: [Notice] Undefined index: album Link to this post

    I'm having the same problem after upgrading a SS 2.3.3 installation to 2.4.2.

    I'll try to come up with a solution, but in the meantime please post if you find one! UncleCheese, if you have any idea how to fix, feel free to jump in.

  • Ryan M.
    Avatar
    Community Member
    309 Posts

    Re: [Notice] Undefined index: album Link to this post

    I contacted UncleCheese about this, his recommendation was to update the DataObjectManager, SWFUploadField and Image Gallery to their latest versions.

    I did so and still get the same error, so am still looking for a solution. Will update if I find anything.

    1162 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.