Jump to:

10929 Posts in 2613 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » ImageGallery3 - got a problem

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 2359 Views
  • Four
    Avatar
    Community Member
    6 Posts

    ImageGallery3 - got a problem Link to this post

    Hi Uncle Cheese or anyone else out there.
    Just installed the ImageGallery which I downloaded directly from http://carlinowebdesign.com/

    First I installed DataObjectManager (did all the .../dev/build/?flush=1 stuff), followed by SWFUpload Field and finally installed Image Gallery. I created an album, and everything seems to be fine, except for the fact that I cannot add any images to the album. Whenever I click the 'Add images to "RadioTaxis" ' button (that's the name of my album, I get the following:

    [Warning] ViewableData_Customised::obj() 'DetailForm' was requested from the array data as an object but it's not an object. I can't cast it.
    GET /rtg/admin/EditForm/field/GalleryItems/upload?album=3

    Line 990 in /var/www/html/rtg/sapphire/core/ViewableData.php
    Source

    981          return $val;
    982       } else {
    983          return $this->obj->XML_val($fieldName, $args, $cache);
    984       }
    985    }
    986    
    987    function obj($fieldName, $args = null, $forceReturnObject = false) {
    988       if(isset($this->extraData[$fieldName])) {
    989          if(!is_object($this->extraData[$fieldName])) {
    990             user_error("ViewableData_Customised::obj() '$fieldName' was requested from the array data as an object but it's not an object. I can't cast it.", E_USER_WARNING);
    991          }
    992          return $this->extraData[$fieldName];
    993       } else {
    994          return $this->obj->obj($fieldName, $args, $forceReturnObject);
    995       }
    996    }

    Trace

    * ViewableData_Customised::obj() 'DetailForm' was requested from the array data as an object but it's not an object. I can't cast it.
    Line 990 of ViewableData.php
    * ViewableData_Customised->obj(DetailForm,,1)
    Line 35 of .cache.var.www.html.rtg.dataobject_manager.templates.DataObjectManager_popup.ss
    * include(/tmp/silverstripe-cache-var-www-html-rtg/.cache.var.www.html.rtg.dataobject_manager.templates.DataObjectManager_popup.ss)
    Line 354 of SSViewer.php
    * SSViewer->process(Object id #276)
    Line 773 of ViewableData.php
    * ViewableData->renderWith(DataObjectManager_popup)
    Line 225 of FileDataObjectManager.php
    * FileDataObjectManager->upload(Object id #11)
    Line 129 of RequestHandler.php
    * RequestHandler->handleRequest(Object id #11)
    Line 143 of RequestHandler.php
    * RequestHandler->handleRequest(Object id #11)
    Line 143 of RequestHandler.php
    * RequestHandler->handleRequest(Object id #11)
    Line 122 of Controller.php
    * Controller->handleRequest(Object id #11)
    Line 277 of Director.php
    * Director::handleRequest(Object id #11,Session)
    Line 121 of Director.php
    * Director::direct(/admin/EditForm/field/GalleryItems/upload)
    Line 118 of main.php

    Any ideas?

  • Four
    Avatar
    Community Member
    6 Posts

    Re: ImageGallery3 - got a problem Link to this post

    Hmmm....it seems the same files work well on another host without the problem I described above. Not sure what I need to change on the other server to rectify the problem...I'll investigate.

  • Spajs
    Avatar
    Community Member
    2 Posts

    Re: ImageGallery3 - got a problem Link to this post

    I have this problem, anyone got any ideas?

  • UncleCheese
    Avatar
    4085 Posts

    Re: ImageGallery3 - got a problem Link to this post

    Make sure you're using the builds on the Silverstripe website, or better yet, the SVN channels. This sounds like a really dated bug.

  • Spajs
    Avatar
    Community Member
    2 Posts

    Re: ImageGallery3 - got a problem Link to this post

    I'm a SS rookie but i tried installing a fresh wamp server, a fresh silverstripe server and then add the dataobject_manager and the swfupload (and not the image_gallery) and then i still get the error when i try uploading a file under the files & images section of SS.

    So i guess the issue lies there somewhere, anyway, any ideas would be helpful.

  • UncleCheese
    Avatar
    4085 Posts

    Re: ImageGallery3 - got a problem Link to this post

    You're using the SVN checkout of DataObjectManager?

  • Capiz
    Avatar
    Community Member
    11 Posts

    Re: ImageGallery3 - got a problem Link to this post

    I have the same issue, tried everything i know - even searched the forum. No luck.

    I have installed the three programs from you web - SWFupload, DataObjectManager and the ImageGallery.

    It comes with wierd button for adding album and pictures, and the big error when trying to open the page in published site.

    Hope you can come with a solution Uncle

    /Rasmus

    edit:

    <% if Paginator.NextLink %>
                      <td id="ComplexTableField_Pagination_Next">
                         <a href="$Paginator.NextLink"><% _t('NEXT', 'Next') %><img src="cms/images/pagination/record-next.png" /></a>

    This parts is an error, of which i cannot see?

  • UncleCheese
    Avatar
    4085 Posts

    Re: ImageGallery3 - got a problem Link to this post

    What's the error?

    2359 Views
Page: 1 2
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.