7939 Posts in 1543 Topics by 946 members
|Go to End||Next >|
3 November 2009 at 10:20am
> There's your null value. Make sure you're defining everything correctly in your constructor.
But that's just it - I'm not constructing anything - this is happening in 'Files & Images' in the cms. Would you be willing to provide paid support for this? You can contact me on firstname.lastname@example.org
10 November 2009 at 6:09am
I've been tracking down the SecurityID issue for the last 4 hours. Finally got to the bottom of it, but I don't have a fix right now. It boils down to what appears to be faulty coding by Silverstripe, but I'm not entirely sure.
When the loadDataFrom() method is executed, it tries to get the value of each field name. The first check it runs is whether the object has the method "FieldName". SecurityID passes this test, because ViewableData contains the function SecurityID() -- probably patchwork to make it work with the form class.
But then, instead of just invoking $object->SecurityID(), it calls $object->__get('SecurityID'), which looks not for a method named "SecurityID", but rather one named "getSecurityID()". This is a huge hole in the code, and i'm really surprised that other stuff is not breaking.
I have a support call scheduled with SS. Hopefully, they're willing to support the trunk version, or at the very least, tell me this will be cleared up by RC1, because I'm at a loss.
13 November 2009 at 10:28am
Bulk import dropdown field doesn't show files nor directories until they are viewed in the "Files & Images" panel.
It looks like the FileDataObjectManager::getimportFolderHierarchy fetches information on the folders and files from database, not the filesystem (can this be right?).
BTW: is there a better way to report a bug than this long topic?
3 December 2009 at 10:57am
I'm getting that classic "An error occurred in your upload. The server did not accept it." error when attempting to upload on the Files & Images tab. I was advised to follow the Troubleshooting guide on SWFUploadField in order to debug it, but the VERY first step already fails. The guide [http://doc.silverstripe.org/doku.php?id=modules:swfuploadfield&s=swfuploadfield] says to place
In the first line of the function handleswfupload(), which I did. Then it says when I run an upload, I'm supposed to get an alert message that says â€œServer said hello". Buuuut I don't! I just get the same alert message as above. So even the debugging isn't working. The tail of my SWFUploadConfig::debug() log is below:
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.*
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global Post Item: dataObjectClassName=File
SWF DEBUG: Global Post Item: parentIDName=ParentID
SWF DEBUG: Global Post Item: OverrideUploadFolder=assets/Uploads/
SWF DEBUG: Global Post Item: dataObjectFieldName=
SWF DEBUG: Global Post Item: fileClassName=File
SWF DEBUG: Global Post Item: fileFieldName=Files
SWF DEBUG: Global Post Item: controllerID=1
SWF DEBUG: Global Post Item: hasDataObject=0
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to http://localhost:88/looksmart-prod/FileDataObjectManager_Controller/handleswfupload for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadError : IO Error : File ID: SWFUpload_0_0. IO Error: Error #2038: File I/O Error. URL: http://localhost:88/looksmart-prod/FileDataObjectManager_Controller/handleswfupload
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: -220, File name: LookSmartLtd.corporategovernanceguidelines.pdf, File size: 249312, Message: Error #2038: File I/O Error. URL: http://localhost:88/looksmart-prod/FileDataObjectManager_Controller/handleswfupload
I am certain that my assets directory is writeable.
Thanks in advance,
5 December 2009 at 3:57am
The popup for the Dataobject manager doesn't work properly in IE 8. It opens as a full page. Also the tinymce WYSIWYG doesn't populate the buttons, it just shows as a textarea field with the HTML showing. Is there a fix for this? Has anyone else experienced these issues?
Thanks in advance,
5 December 2009 at 3:59am
Facebox isn't IE8 compatible. I'm working on finding a new modal window solution.
5 December 2009 at 4:06am
I've switched to colorbox, doesn't seem to have any issues in the front end on IE8
5 December 2009 at 4:27am
I don't know if you can add extra metatags in admin and I'm not shure it helps, but you can try to add this to let ie8 render as ie7:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
|Go to Top||Next >|