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

Indirect modification of overloaded property


Go to End
Reply


11 Posts   2677 Views

Avatar
redactuk

Community Member, 117 Posts

4 August 2010 at 3:40am

Just upgraded a site to lates SS 4.1 + DataObjectManager r414 + imageGallery r404

When I select my top level ImageGallery page in Admin Area i get message:

ERROR [Notice]: Indirect modification of overloaded property DataObjectManager::$permissions has no effect
IN POST /admin/getitem?ID=6&ajax=1
Line 660 in /home/virtual/mysite.com/web/www/dataobject_manager/code/DataObjectManager.php

Source
======
651:    
652:    public function PopupWidth()
653:    {
654:     return $this->parent->PopupWidth();
655:    }
656:    
657:    public function Actions()
658:    {
659:     $actions = new DataObjectSet();
* 660:     foreach($this->parent->permissions as $perm) {
661:     $action = false;
662:     switch($perm) {
663:     case "edit":
664:     case "view":
665:     $actions->push(new DataObjectManagerAction(
666:     $this->ViewOrEdit_i18n(),

Trace
=====
<ul>DataObjectManager_Item->Actions()
line 369 of ViewableData.php

ViewableData->obj(Actions,,,1,)
line 411 of ViewableData.php

ViewableData->cachedCall(Actions,)
line 424 of ViewableData.php

ViewableData->hasValue(Actions)
line 401 of .cache.home.virtual.mysite.com.web.www.dataobject_manager.templates.DataObjectManager.ss

include(/home/virtual/mysite.com/web/www/silverstripe-cache/.cache.home.virtual.mysite.com.web.www.dataobject_manager.templates.DataObjectManager.ss)
line 420 of SSViewer.php

SSViewer->process(DataObjectManager)
line 342 of ViewableData.php

ViewableData->renderWith(DataObjectManager)
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.virtual.mysite.com.web.www.sapphire.templates.TabSetFieldHolder.ss

include(/home/virtual/mysite.com/web/www/silverstripe-cache/.cache.home.virtual.mysite.com.web.www.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

Gallery itself on the client side seems to work fine and shows all images etc..

Any ideas?

Avatar
redactuk

Community Member, 117 Posts

5 August 2010 at 2:05am

Anyone had similar problem? Just wondering if somehow permissions not updated correctly?

Avatar
redactuk

Community Member, 117 Posts

6 November 2010 at 2:33pm

Guys, I need some help please. This message has re-occured on clients system whenever you try and edit the ImageGalley, or even select any folders in Files & Images.

I'm using latest versions of SS, ImageGallery, DataObjects Manager. I've tried to manually delete gallery tables and rebuild, but whatever I do now I get this message. I also get it when I try and select any image folders via Images & Folders.

Avatar
redactuk

Community Member, 117 Posts

6 November 2010 at 3:13pm

Now I can't even access Files & Images main menu - reports:

[Notice] Indirect modification of overloaded property AssetManager::$permissions has no effect
GET /admin/assets/

Line 664 in /home/virtual/myweb.com/web/www/dataobject_manager/code/DataObjectManager.php
Source

655    
656    public function PopupWidth()
657    {
658     return $this->parent->PopupWidth();
659    }
660    
661    public function Actions()
662    {
663     $actions = new DataObjectSet();
664     foreach($this->parent->permissions as $perm) {
665     $action = false;
666     switch($perm) {
667     case "edit":
668     case "view":
669     $actions->push(new DataObjectManagerAction(
670     $this->ViewOrEdit_i18n(),

Trace

* DataObjectManager_Item->Actions()
Line 369 of ViewableData.php
* ViewableData->obj(Actions,,,1,)
Line 411 of ViewableData.php
* ViewableData->cachedCall(Actions,)
Line 424 of ViewableData.php
* ViewableData->hasValue(Actions)
Line 459 of .cache.home.virtual.myweb.com.web.www.dataobject_manager.templates.FileDataObjectManager.ss
* include(/tmp/silverstripe-cache-home-virtual-myweb.com-web-www/.cache.home.virtual.myweb.com.web.www.dataobject_manager.templates.FileDataObjectManager.ss)
Line 420 of SSViewer.php
* SSViewer->process(AssetManager)
Line 342 of ViewableData.php
* ViewableData->renderWith(FileDataObjectManager)
Line 275 of ComplexTableField.php
* ComplexTableField->FieldHolder()
Line 266 of DataObjectManager.php
* DataObjectManager->FieldHolder()
Line 34 of AssetManager.php
* AssetManager->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.virtual.myweb.com.web.www.sapphire.templates.TabSetFieldHolder.ss
* include(/tmp/silverstripe-cache-home-virtual-myweb.com-web-www/.cache.home.virtual.myweb.com.web.www.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.virtual.myweb.com.web.www.sapphire.templates.Includes.Form.ss
* include(/tmp/silverstripe-cache-home-virtual-myweb.com-web-www/.cache.home.virtual.myweb.com.web.www.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 33 of .cache.home.virtual.myweb.com.web.www.cms.templates.Includes.AssetAdmin_right.ss
* include(/tmp/silverstripe-cache-home-virtual-myweb.com-web-www/.cache.home.virtual.myweb.com.web.www.cms.templates.Includes.AssetAdmin_right.ss)
Line 420 of SSViewer.php
* SSViewer->process(AssetAdmin)
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.virtual.myweb.com.web.www.cms.templates.LeftAndMain.ss
* include(/tmp/silverstripe-cache-home-virtual-myweb.com-web-www/.cache.home.virtual.myweb.com.web.www.cms.templates.LeftAndMain.ss)
Line 420 of SSViewer.php
* SSViewer->process(AssetAdmin)
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/assets/)
Line 127 of main.php

Avatar
Ryan M.

Community Member, 309 Posts

6 November 2010 at 3:53pm

Did you say you're using 2.4.1? Try upgrading to 2.4.2.

Avatar
redactuk

Community Member, 117 Posts

6 November 2010 at 6:17pm

I've since upgraded ot 2.4.2 and have all latest versions. I'm certain this is data related or permissions related by can't see how. What i need to know is what the hell that message means. I meanWHAT permissions are being checked and failing that I cant' even access Files and Images? Message implies it's to do with assets folder, so presumably processes is trying to read data from File table to populate initial display. The records are in the File table corresponsing to physical files, but why failing to read them?

Avatar
Ryan M.

Community Member, 309 Posts

7 November 2010 at 12:26pm

Try chmoding the assets directory recursively with 777

Avatar
redactuk

Community Member, 117 Posts

7 November 2010 at 1:31pm

Well I tried again this evening and it let me access Files & Images interface, but as soon as I select either my Uploads or image-gallery folders I get the above message in a popup window. Those folders, including assets, are set to 777.

I downloaded client's database and code and tested locally and works fine - so it's not corrup data at least.

Now i don't know much about how file permissions work, so something that seems little odd but may be fine is:

Via my FTP utility progra if I select the properties of the assets and assets/Uploads folders they report the User and Group as being the customers ftp username.

If via Files & images UI I create a new folder (it lets me do that), and then view the properties via ftp utility the User appears as (?) and the Group is also (?) and the permissions are set to 755. Is this normal? i.e. folders created in SS should be stamped with what User and Group values?

Go to Top