Hi all,
I've fixed an Uploadify issue on one site but am having sever issues on another (different host).
Using the Image Gallery module, when I load an image, the image loads fine but then doesn't appear as a thumbnail below the loader as expected.
Instead, the console show an error:
POST to http://domain/admin/EditForm/field/GalleryItems/UploadifyForm/field/UploadedFiles/refresh?SecurityID=49c204d8f6d65e09db6df5f9325477bdd3583d94&ctf[GalleryItems][start]=0&ctf[GalleryItems][per_page]=10&ctf[GalleryItems][showall]=0&ctf[GalleryItems][sort]=SortOrder&ctf[GalleryItems][sort_dir]=&ctf[GalleryItems][search]=&ctf[GalleryItems][filter]=AlbumID_23&ctf[GalleryItems][view]=grid&ctf[GalleryItems][imagesize]=100&FileIDs=879
404 Not found
When visiting that URL I get the error "I can't handle sub-URLs of a Form object."
Clicking 'continue' on the Uploadify dialogue gives me the same error in the modal window. Closing the window, the image gallery pane tries to refresh but instead results in a blank screen...
Things I've tried:
- Updated DoM, Uploadify and IMage Gallery to latest github versions
- Uploadify::disable_authentication() and Uploadify::show_debug() set in _config.php
- SecFilterEngine Off and SecFilterScanPOST Off in .htaccess
- magic_quotes_gpc = Off in php.ini
- shifted session directory to custom and added other .htaccess directives as outlined here: http://www.leftandmain.com/silverstripe-tips/2011/02/15/uploadify-http-error-explained-and-solved-maybe/
The error is generated from the RequestHandler class (sapphire/core/control/RequestHandler.php) - line 174
dumping the request into that error message provides the following straucture and data for the request
SS_HTTPRequest Object
(
=> admin/EditForm/field/GalleryItems/UploadifyForm
[dirParts:protected] => Array
(
[0] => UploadifyForm
)
[extension:protected] =>
[httpMethod:protected] => GET
[getVars:protected] => Array
(
[url] => /admin/EditForm/field/GalleryItems/UploadifyForm
[SecurityID] => 4f77fb10f8dd08edad7a9b84e236694e776ba7b9
[ctf] => Array
(
[GalleryItems] => Array
(
[start] => 0
[per_page] => 10
[showall] => 0
[sort] => SortOrder
[sort_dir] =>
[search] =>
[filter] => AlbumID_23
[view] => grid
[imagesize] => 100
)
)
)
[postVars:protected] => Array
(
)
[headers:protected] => Array
(
[Accept] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[Referer] => http://domain/Security/login?BackURL=%2Fadmin%2FEditForm%2Ffield%2FGalleryItems%2FUploadifyForm%3FSecurityID%3D4f77fb10f8dd08edad7a9b84e236694e776ba7b9%26ctf%5BGalleryItems%5D%5Bstart%5D%3D0%26ctf%5BGalleryItems%5D%5Bper_page%5D%3D10%26ctf%5BGalleryItems%5D%5Bshowall%5D%3D0%26ctf%5BGalleryItems%5D%5Bsort%5D%3DSortOrder%26ctf%5BGalleryItems%5D%5Bsort_dir%5D%3D%26ctf%5BGalleryItems%5D%5Bsearch%5D%3D%26ctf%5BGalleryItems%5D%5Bfilter%5D%3DAlbumID_23%26ctf%5BGalleryItems%5D%5Bview%5D%3Dgrid%26ctf%5BGalleryItems%5D%5Bimagesize%5D%3D100
)
[body:protected] =>
[allParams:protected] => Array
(
[Action] => EditForm
[ID] => field
[OtherID] => GalleryItems
[FieldName] => GalleryItems
)
[latestParams:protected] => Array
(
[FieldName] => GalleryItems
)
[unshiftedButParsedParts:protected] => 0
)[/code]
Any help appreciated. I'm sure this is solvable :)
Thanks,
Paul