Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

FileDataObject Manager Issue


Reply


790 Views

Avatar
aTTi

Community Member, 19 Posts

30 September 2010 at 7:58am

Hello Community

I really need ur help, a customer uploaded different files for my "self-created" slideshow. Later he said that he always get an error when joining the new page with the slideshow images (the other sites worked perfectly).

So, since i never saw this error i just deleted the page via MySQL (Sitetree / Sitetree_live).

After that, i receive the following error and i still don't know what to do to solve this problem, please help me!

Also the slideshow does not display for now, i added the following code (<% if Slideshow %>....) so i think it's something about there are no pictures in the slideshow, but i never deleted all the pictures or somethin like that, only this little MySQL action.

(www.grimmkomm.ch)

[Notice] Trying to get property of non-object
GET /admin

Line 682 in /home/www/web959/html/dataobject_manager/code/FileDataObjectManager.php
Source

673 $img = $file;
674 else {
675 $ext = $file->Extension;
676 $imgExts = array('jpg','jpeg','gif');
677 if(in_array($ext, $imgExts)) {
678 $img = new Image_Cached($file->Filename);
679 $img->ID = $file->ID; //image resize functions require an id
680 }
681 }
682 return isset($img) ? $img->CroppedImage(50,50)->URL : $file->Icon();
683
684 }
685 else return "{$this->item->$field}";
686    }
687    
688    public function FileLabel()

Trace

* FileDataObjectManager_Item->FileIcon()
Line 369 of ViewableData.php
* ViewableData->obj(FileIcon,,,1)
Line 446 of ViewableData.php
* ViewableData->XML_val(FileIcon,,1)
Line 546 of .cache.home.www.web959.html.dataobject_manager.templates.FileDataObjectManager.ss
* include(/home/www/web959/html/silverstripe-cache/.cache.home.www.web959.html.dataobject_manager.templates.FileDataObjectManager.ss)
Line 420 of SSViewer.php
* SSViewer->process(FileDataObjectManager)
Line 342 of ViewableData.php
* ViewableData->renderWith(FileDataObjectManager)
Line 275 of ComplexTableField.php
* ComplexTableField->FieldHolder()
Line 270 of DataObjectManager.php
* DataObjectManager->FieldHolder()
Line 369 of ViewableData.php
* ViewableData->obj(FieldHolder,,,1)
Line 446 of ViewableData.php
* ViewableData->XML_val(FieldHolder,,1)
Line 73 of .cache.home.www.web959.html.sapphire.templates.TabSetFieldHolder.ss
* include(/home/www/web959/html/silverstripe-cache/.cache.home.www.web959.html.sapphire.templates.TabSetFieldHolder.ss)
Line 420 of SSViewer.php
* SSViewer->process(TabSet)
Line 342 of ViewableData.php
* ViewableData->renderWith(TabSetFieldHolder)
Line 80 of TabSet.php
* TabSet->FieldHolder()
Line 369 of ViewableData.php
* ViewableData->obj(FieldHolder,,,1)
Line 446 of ViewableData.php
* ViewableData->XML_val(FieldHolder,,1)
Line 58 of .cache.home.www.web959.html.sapphire.templates.TabSetFieldHolder.ss
* include(/home/www/web959/html/silverstripe-cache/.cache.home.www.web959.html.sapphire.templates.TabSetFieldHolder.ss)
Line 420 of SSViewer.php
* SSViewer->process(TabSet)
Line 342 of ViewableData.php
* ViewableData->renderWith(TabSetFieldHolder)
Line 80 of TabSet.php
* TabSet->FieldHolder()
Line 369 of ViewableData.php
* ViewableData->obj(FieldHolder,,,1)
Line 446 of ViewableData.php
* ViewableData->XML_val(FieldHolder,,1)
Line 77 of .cache.home.www.web959.html.sapphire.templates.Includes.Form.ss
* include(/home/www/web959/html/silverstripe-cache/.cache.home.www.web959.html.sapphire.templates.Includes.Form.ss)
Line 420 of SSViewer.php
* SSViewer->process(Form)
Line 342 of ViewableData.php
* ViewableData->renderWith(Array)
Line 1085 of Form.php
* Form->forTemplate()
Line 447 of ViewableData.php
* ViewableData->XML_val(EditForm,,1)
Line 13 of .cache.home.www.web959.html.cms.templates.Includes.CMSMain_right.ss
* include(/home/www/web959/html/silverstripe-cache/.cache.home.www.web959.html.cms.templates.Includes.CMSMain_right.ss)
Line 420 of SSViewer.php
* SSViewer->process(CMSMain)
Line 342 of ViewableData.php
* ViewableData->renderWith(Array)
Line 485 of LeftAndMain.php
* LeftAndMain->Right()
Line 369 of ViewableData.php
* ViewableData->obj(Right,,,1)
Line 446 of ViewableData.php
* ViewableData->XML_val(Right,,1)
Line 71 of .cache.home.www.web959.html.cms.templates.LeftAndMain.ss
* include(/home/www/web959/html/silverstripe-cache/.cache.home.www.web959.html.cms.templates.LeftAndMain.ss)
Line 420 of SSViewer.php
* SSViewer->process(CMSMain)
Line 202 of Controller.php
* Controller->handleAction(SS_HTTPRequest)
Line 137 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)
Line 127 of main.php

Greetings, aTTi