Jump to:

7939 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » [Notice] Undefined index: start

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 1367 Views
  • vegetav
    Avatar
    Community Member
    23 Posts

    [Notice] Undefined index: start Link to this post

    I know there has been another thread on this, but it was fairly old and although it says in there that this bug was fixed in r513 I am currently running a fresh install of the latest stable release 2.4.5 and and latest DataObjectManager module and am having this problem.

    I initially had this problem using the DataObjectManager along with Uploadify, and have tried switching back to SWFUpload thinking it was an uploadify bug, and now tried removing that and testing the site using just the DataObjectManager module and a simple text field.

    The site is running on an Ubuntu LAMP server and the error I'm getting is:

    [Notice] Undefined index: start
    POST /admin/EditForm/field/GalleryImages/AddForm?SecurityID=79a6cf4e9f4c9ed370fca1006e41b5b59aab0832&ctf[GalleryImages][start]=0&ctf[GalleryImages][per_page]=10&ctf[GalleryImages][showall]=0&ctf[GalleryImages][sort]=&ctf[GalleryImages][sort_dir]=&ctf[GalleryImages][search]=&ctf[GalleryImages][filter]=

    Line 142 in /home/user/sites/testSite/web/dataobject_manager/code/DataObjectManager.php

    Has anyone else had this problem, can anyone help me?

    Thanks!

  • vegetav
    Avatar
    Community Member
    23 Posts

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

    I forgot to mention that when I had Uploadify installed, I was also getting an HTTP error when the upload was complete, I don't know if this is related to the same problem?

  • UncleCheese
    Avatar
    4085 Posts

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

    Sounds like you're running incompatible versions of DOM and SS. Make sure you're running the latest DOM from GitHub, and at least version 2.4 of SS.

  • vegetav
    Avatar
    Community Member
    23 Posts

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

    I'm running silvertripe 2.4.5 and the latest DOM from GitHub and still getting the same error. The only way I can stop the error is by manually changing line 142 in DataObjectManager.php to:

    if(isset($_REQUEST['ctf'][$this->Name()]['start'])) {
    $this->start = $_REQUEST['ctf'][$this->Name()]['start'];
    }

    1367 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.