Version: 4.3.1 Reporter: Brian Litzinger —
I have a situation, unknown how it occurred, but I have an entry where the author_id was set to 0 in exp_channel_titles. The entry loads in the CP, but the Author field is blank, which means I can’t choose an author and save the entry to fix the issue.
https://screenshots.firefox.com/OYkhdSHtvRLIAiET/local.jamf.com
In this case, it would make sense for the field to list the authors with non selected. Since it is a required field the user should not be able to save the entry again without a valid author. Once they select an author and save it should fix the issue.
When I try to save an entry in this state, I get the following errors. Preventing these errors should be the preferred state.
Fatal error: Uncaught Error: Call to a member function updateAuthorStats() on null in /var/www/local.jamf.com/system/ee/EllisLab/ExpressionEngine/Model/Channel/ChannelEntry.php on line 446
( ! ) Error: Call to a member function updateAuthorStats() on null in /var/www/local.jamf.com/system/ee/EllisLab/ExpressionEngine/Model/Channel/ChannelEntry.php on line 446
Call Stack
# Time Memory Function Location
1 0.0033 492200 {main}( ) .../admin.php:0
2 0.0091 493584 require_once( '/var/www/local.jamf.com/system/ee/EllisLab/ExpressionEngine/Boot/boot.php' ) .../admin.php:142
3 0.0962 674024 EllisLab\ExpressionEngine\Core\Core->run( ) .../boot.php:146
4 0.1253 769904 EllisLab\ExpressionEngine\Core\Core->runController( ) .../Core.php:109
5 1.7939 7009416 call_user_func_array:{/var/www/local.jamf.com/system/ee/EllisLab/ExpressionEngine/Core/Core.php:240} ( ) .../Core.php:240
6 1.7939 7009808 EllisLab\ExpressionEngine\Controller\Publish\Edit->entry( ) .../Core.php:240
7 5.8340 14406824 EllisLab\ExpressionEngine\Controller\Publish\AbstractPublish->saveEntryAndRedirect( ) .../Edit.php:521
8 5.8341 14406824 EllisLab\ExpressionEngine\Model\Content\ContentModel->save( ) .../AbstractPublish.php:369
9 6.2893 14391936 EllisLab\ExpressionEngine\Service\Model\Model->save( ) .../ContentModel.php:219
10 6.2893 14400792 EllisLab\ExpressionEngine\Service\Model\Query\Builder->update( ) .../Model.php:360
11 6.2893 14400792 EllisLab\ExpressionEngine\Service\Model\DataStore->updateQuery( ) .../Builder.php:70
12 6.2893 14400792 EllisLab\ExpressionEngine\Service\Model\DataStore->runQuery( ) .../DataStore.php:247
13 6.2917 14401624 EllisLab\ExpressionEngine\Service\Model\Query\Update->run( ) .../DataStore.php:281
14 9.4870 23558952 EllisLab\ExpressionEngine\Service\Model\Model->emit( ) .../Update.php:51
15 9.4870 23560120 call_user_func_array:{/var/www/local.jamf.com/system/ee/EllisLab/ExpressionEngine/Service/Model/Model.php:824} ( ) .../Model.php:824
16 9.4870 23560136 EllisLab\ExpressionEngine\Model\Channel\ChannelEntry->onAfterUpdate( ) .../Model.php:824
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); } ```