Version: 3.5.4 Reporter: MajesticIX —
This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report
If you enable revisions on a channel–upon first saving a new entry, you get an error:
Trying to get property of non-object ee-EllisLab/ExpressionEngine/Model/Channel/ChannelEntry.php, line 447
It still saves the entry, and subsequent edits to that entry don’t throw an error. Disable revisions fixes the issue. I have tested this on a clean install of EE with no plugins so it should be easy to replicate.
In system/ee/EllisLab/ExpressionEngine/Model/Channel/ChannelEntry.php
change line 447 from:
if ($data == $last_version->version_data)
to:
if ( ! empty($last_version) && $data == $last_version->version_data)
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); } ```