21286 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 952 Views |
-
Error saving content

28 February 2011 at 11:59pm
I have the following class:
class Prodotti extends SlideshowProPage {
static $db = array(
"Prodotto" => "Text",
"Tipologia" => "Text",
"Specifiche" => "Text",
"Caratteristiche" => "HTMLText",
"Applicazioni" => "HTMLText"
);
static $has_one = array(
"SchedaTecnica" => "File",
"InfoProdotto" => "File"
);
static $has_many = array(
);
public function getCMSFields($cms) {
$fields = parent::getCMSFields($cms);
$fields->addFieldToTab("Root.Content.Main", new TextField("Prodotto", "Prodotto"), "Content");
$fields->addFieldToTab("Root.Content.Main", new TextField("Tipologia", "Tipologia"), "Content");
$fields->addFieldToTab("Root.Content.Main", new TextField("Specifiche", "Specifiche"), "Content");
$fields->addFieldToTab("Root.Content.Main", new HTMLEditorField("Caratteristiche", "Caratteristiche"), "Content");
$fields->addFieldToTab("Root.Content.Main", new HTMLEditorField("Applicazioni", "Applicazioni"), "Content");
$fields->addFieldToTab('Root.Content.Main', new FileIFrameField("SchedaTecnica"), "Content");
$fields->addFieldToTab('Root.Content.Main', new FileIFrameField("InfoProdotto"), "Content");
return $fields;
}
}What happens is that when I click on Save all ok, but when I click on "save and publishing" generates "error saving content".
Does anyone know give me an explanation ?
Thanks -
Re: Error saving content

1 March 2011 at 1:29am
Could be many things... Ctrl+Shit+J in chrome/firefox for the console that reports error in more detail...
-
Re: Error saving content

1 March 2011 at 2:35am
I used <link>?debug = 1, but now I get the error "javascript parse error". Only that I have not done changes to javascript
-
Re: Error saving content

1 March 2011 at 3:31am
and without the ?debug, but lokoing at the javascript errors in the console? I'd image it is some SQL error (they usual are for me saving content) and are often solved with a deb/build
-
Re: Error saving content

1 March 2011 at 8:51pm
It is very strange because I have two pages of this class and a against these problems and the other no
-
Re: Error saving content

2 March 2011 at 11:06pm
Firebug is a good tool for these errors. Ensure your site is running in devmode then try again with Firebugs Console window open, you should see the ajax request and the returned error message.
| 952 Views | ||
|
Page:
1
|
Go to Top |



