UncleCheese,
Here are my recent tests. In all cases, I did a fresh install of silverstripe-v2.3.0-rc2.tar first without any other modules added.
1. I downloaded and installed bulkuploader0.1.4 obtained from http://www.carlinowebdesign.com/bulk-uploader-field/ . It all works fine, except when I try to delete a page that has images/files attached using bulkuploader, the CMS hangs and the following error pops up in an alert box.
------------
ERROR [Warning]: Bad class value NULL passed to ClassInfo::ancestry()
IN POST /ss/admin/getitem?ID=2&ajax=1
Line 124 in /Users/Amir/Sites/ss/sapphire/core/ClassInfo.php
Source
======
115: }
116:
117: /**
118: * @todo Improve documentation
119: */
120: static function ancestry($class, $onlyWithTables = false) {
121: global $_ALL_CLASSES;
122:
123: if(is_object($class)) $class = $class->class;
* 124: else if(!is_string($class)) user_error("Bad class value " . var_export($class, true) . " passed to
ClassInfo::ancestry()", E_USER_WARNING);
125:
126: $items = $_ALL_CLASSES['parents'][$class];
127: $items[$class] = $class;
128: if($onlyWithTables) foreach($items as $item) {
129: if(!DataObject::has_own_table($item)) unset($items[$item]);
130: }
<br />
<b>Catchable fatal error</b>: Method BulkUploaderField::__toString() must return a string value in <b>/Users/Amir/Sites/ss/sapphire/dev/Debug.php</b> on line <b>558</b><br />
------------
2. Next, I downloaded and installed the latest svn files for bulk_uploader, sortable_dataobject and swfupload. Again, I get the same error as above when deleting a page.
Furthermore, I see both an Upload and an Import button on the left. What's Import for, when it is handled by the right section?
Also, when I try to import a file from the right, it says "There are 1 files attached to this page." on the left, but no file actually appears on the left!
I am attaching the 3 php files I have used.