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.

All other Modules

Discuss all other Modules here.

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

Help! Problem Assets Section of CMS


3 Posts   758 Views


29 April 2010 at 4:21pm (Last edited: 29 April 2010 4:26pm), Community Member, 41 Posts

436     * Prepare static variables before processing a {@link get_static} or {@link set_static}
437     * call.
438     */
439    private static function prepare_statics($class) {
440       // _cache_statics_prepared setting must come first to prevent infinite loops when we call
441       // get_static below
442       self::$_cache_statics_prepared[$class] = true;
444       // load statics now for DataObject classes
445       if(is_subclass_of($class, 'DataObject')) {
446          $extensions = Object::uninherited_static($class, 'extensions');
447          if($extensions) foreach($extensions as $extension) {
448             if(preg_match('/^([^(]*)/', $extension, $matches)) {
449                $extensionClass = $matches[1];
450                DataObjectDecorator::load_extra_statics($class, $extensionClass);
451             }

In the firebug concole it only says:

"NetworkError: 500 Warning: "Unknown c...apphire\core\Object.php -"


29 April 2010 at 6:20pm Community Member, 41 Posts

on line 429 in Object.php

      // load statics now for DataObject classes
      if(is_subclass_of($class, 'DataObject')) {
         DataObjectDecorator::load_extra_statics($class, $extensionClass);

which dump:
string(18) "AssetManagerFolder"
string(18) "SortableDataObject"
string(18) "SortableDataObject"
string(18) "SortableDataObject"
string(20) "ImageGallerySiteTree"
string(12) "Translatable"
string(18) "SortableDataObject"

I'm guessing it's to do with SortableDataObject


29 April 2010 at 6:32pm (Last edited: 7 May 2010 3:58pm), Community Member, 41 Posts

Changing the DataObjectManager _config seems to solve the problem

// Allow DataObjectManager to take control of the AssetAdmin using the AssetManager field

This seems to allow only to access the Asset, the bug in the system is still there... looking for away to fix this :(