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.

Upgrading SilverStripe

Ask questions about upgrading SilverStripe to the latest version.

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

Upgrade problem : I can't handle sub-URLs of a xxxx object


16 Posts   5468 Views


8 July 2009 at 10:02pm Community Member, 787 Posts


8 July 2009 at 10:43pm Forum Moderator, 435 Posts

I've read it, but I don't see any info for my problem.
I use SS 2.3.2.



9 July 2009 at 12:58am Forum Moderator, 435 Posts

With Firebug , I see:

http://localhost/ss/admin/EditForm/field/ImageAttachments/add 404 NOT found

with response

I can't handle sub-URLs of a CMSMain object.


<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="" lang="it" xml:lang="it">
<title>Oggetto non trovato!</title>
<link rev="made" href="mailto:admin@localhost" />
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
body { color: #000000; background-color: #FFFFFF; }
a:link { color: #0000CC; }
p, address {margin-left: 3em;}
span {font-size: smaller;}

<h1>Oggetto non trovato!</h1>

L'URL richiesto non esiste su questo server.

Il link della
<a href="http://localhost/ss/admin/%3flocale=en_US">pagina da cui
sei arrivato</a> potrebbe essere errato o non essere pi&ugrave; valido.
Per favore, informa dell'errore l'autore della
<a href="http://localhost/ss/admin/%3flocale=en_US">pagina</a>.

Se pensi che questo sia un errore del server, per favore contatta il
<a href="mailto:admin@localhost">webmaster</a>.


<h2>Error 404</h2>
<a href="/">localhost</a><br />

<span>07/08/09 14:36:14<br />
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9</span>


9 July 2009 at 1:19am Community Member, 787 Posts

What does your ImageAttachments class look like ?


9 July 2009 at 2:19am (Last edited: 9 July 2009 2:46am), Forum Moderator, 435 Posts

If I put URL http://localhost/ss/admin/EditForm/field/ImageAttachments/add,

I receive from browser :

I can't handle sub-URLs of a CMSMain object.

ImageAttachments and Resize_Image class:

class ImageAttachment extends DataObject {
static $db = array(
'Name' => 'Text'
static $has_one = array(
'Image' => 'Resize_Image'

static $field_names = array('Name' => 'Name');

function getCMSFields_forPopup() {
$fields = new FieldSet();
$fields->push(new TextField('Name', 'Name'));
$fields->push(new ImageField('Image', 'Image'));

return $fields;


class Resize_Image extends Image {
static $db = null;

function generateThumbnail($gd) {
return $gd->paddedResize(140,100);

function generateContentImage($gd) {
return $gd->resizeByWidth(200);

function generateLargeImage($gd) {
return $gd->resizeByWidth(600);



9 July 2009 at 6:35am (Last edited: 9 July 2009 6:41am), Forum Moderator, 435 Posts

Here the same problem...

NB: the problem is present only if multilanguage site is enabled ( v.2.3.2 )


9 July 2009 at 7:17am Community Member, 787 Posts

Hmm.. Sorry mate , can't help you there ...

I've got multiple CTF's running good , but none of them in a multilanguage site...

Mat Weir

13 October 2009 at 2:10pm Community Member, 33 Posts

I've just run into this issue and found that the following patch resolves the problem: