Version: 4.0.6 Reporter: Russ K. —
When I create a new channel and I duplicate an existing, if i have duplicated that channel before I get an error. If instead, I select a channel to duplicate that has NOT been duplicated before it works fine.
This is the error returned: Fatal error: __clone method called on non-object in /home/stpclient/public_html/system/ee/EllisLab/ExpressionEngine/Model/Channel/Channel.php on line 331
R
In system/ee/EllisLab/ExpressionEngine/Model/Channel/Channel.php around line 328 replace”
$this->FieldGroups = clone $channel->FieldGroups;
$this->CustomFields = clone $channel->CustomFields;
$this->Statuses = clone $channel->Statuses;
$this->ChannelFormSettings = clone $channel->ChannelFormSettings;
with
foreach (['FieldGroups', 'CustomFields', 'Statuses', 'ChannelFormSettings'] as $rel)
{
if ($channel->$rel)
{
$this->$rel = clone $channel->$rel;
}
}
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```