Hi,
I won't duplicate topics as i also have problem after upgrading to 3.1
If possible please help ;)
Server: Apache/2.2.15 (Unix) , on Centos 6.4 (Final), PHP 5.3.3
1. On some page templates I have errors on site
[Notice] Undefined index: close
GET /downloads/
Line 232 in /var/www/html/tessel/framework/parsers/ShortcodeParser.php
Source
223 }
224 }
225
226 // And store the indexes, tag details, etc
227 $tags[] = array(
228 'text' => $match[0][0],
229 's' => $match[0][1],
230 'e' => $match[0][1] + strlen($match[0][0]),
231 'open' => @$match['open'][0],
232 'close' => @$match['close'][0],
233 'attrs' => $attrs,
234 'content' => '',
235 'escaped' => !empty($match['oesc'][0]) || !empty($match['cesc1'][0]) || !empty($match['cesc2'][0])
236 );
237 }
238 }
The part of template that generates this error is:
<div id="tab-content">
<div id="tab1_content"><br />$AAA</div>
<div id="tab2_content"><br />$BBB</div>
<div id="tab3_content"><br />$CCC</div>
<div id="tab4_content"><br />$DDD</div>
<div id="tab5_content"><br />$EEE</div>
<div id="tab6_content"><br />$FFF</div>
</div>
Those are all HTMLText defined in .php:
<?php
class Downloads extends SiteTree {
static $db = array(
'BBB' => 'HTMLText',
'CCC' => 'HTMLText',
'DDD' => 'HTMLText',
'EEE' => 'HTMLText',
'FFF' => 'HTMLText'
);
static $has_one = array(
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Main', new HTMLEditorField('BBB', 'BBB tab'));
$fields->addFieldToTab('Root.Content.Main', new HTMLEditorField('CCC', 'CCC tab'));
$fields->addFieldToTab('Root.Content.Main', new HTMLEditorField('DDD', 'DDD tab'));
$fields->addFieldToTab('Root.Content.Main', new HTMLEditorField('EEE', 'EEE tab'));
$fields->addFieldToTab('Root.Content.Main', new HTMLEditorField('FFF', 'FFF tab'));
return $fields;
}
}
class Downloads_Controller extends ContentController {
function init() {
parent::init();
}
}
?>
Does it have something to do with "default_cast is now Text" from http://doc.silverstripe.org/framework/en/changelogs/3.1.0#upgrading?
2. Also on Admin site I can't edit pages as I got pop up massage of:
Notice at line 174 of /var/www/html/tessel/framework/dev/Deprecation.php
Some pages work just fine. I've very similar template but with only two additional HTMLEditorField and it works.
Is the content corrupted?
Anyone can help? If more info needed, please ask.
Thank in advance.