Hello,
I've finished upgrading my server to sebian squeeze, and some things are still broken-ish .
What still gets me is that i keep getting "<em>No Image Resources found</em>" when i select a folder from files on the server, and before i got a nice list of images.
I have run the "find new files and images" utility, i do get preview images within the "files and images" section, i've tried deleted the _resized folder and double checked that gd and imgmagick is enabled in php_info(), which it is, and made sure apache has read access, which it does.
Sitewise i have not changed a single thing since i started the upgrade process.
The best part, is that the dropdown menu which shows the folders actually tells me how many files are in that folder, but they never get displayed.
Existing pages which use this module simply show a default image instead of all the images now.
What else could i check?
The code i use to make a dataobjectmanager pop up is the following:
<?php
// /mysite/code/GalleryPage.php
class GalleryPage extends Page
{
static $has_many = array (
'Images' => 'ImageResource'
);
public static $db = array(
);
public static $has_one = array(
);
public function getCMSFields()
{
$f = parent::getCMSFields();
$manager = new ImageDataObjectManager(
$this, // Controller
'Images', // Source name
'ImageResource', // Source class
'Attachment', // File name on DataObject
array(
'Title' => 'Title',
'Caption' => 'Caption'
),
'getCMSFields_forPopup'
);
$f->addFieldToTab("Root.Content.Gallery",$manager);
return $f;
}
}
class GalleryPage_Controller extends Page_Controller {
}