We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

[EE4] Error when creating new entry

Developer Preview

Brian Litzinger's avatar
Brian Litzinger
693 posts
7 years ago
Brian Litzinger's avatar Brian Litzinger

After clicking save I get this:

( ! ) BadMethodCallException: No such method onBeforeInsert. in /var/www/html/system/ee/EllisLab/ExpressionEngine/Library/Mixin/Manager.php on line 153
Call Stack
# Time Memory Function Location
1 0.0002 370776 {main}( ) .../admin.php:0
2 0.0019 372152 require_once( '/var/www/html/system/ee/EllisLab/ExpressionEngine/Boot/boot.php' ) .../admin.php:147
3 0.0229 483056 EllisLab\ExpressionEngine\Core\Core->run( ) .../boot.php:146
4 0.0347 577376 EllisLab\ExpressionEngine\Core\Core->runController( ) .../Core.php:109
5 0.6608 2835792 call_user_func_array:{/var/www/html/system/ee/EllisLab/ExpressionEngine/Core/Core.php:229} ( ) .../Core.php:229
6 0.6608 2836184 EllisLab\ExpressionEngine\Controller\Publish\Publish->create( ) .../Core.php:229
7 1.1671 3897768 EllisLab\ExpressionEngine\Controller\Publish\AbstractPublish->saveEntryAndRedirect( ) .../Publish.php:278
8 1.1672 3897776 EllisLab\ExpressionEngine\Model\Content\ContentModel->save( ) .../AbstractPublish.php:365
9 1.3648 3932488 EllisLab\ExpressionEngine\Service\Model\Model->save( ) .../ContentModel.php:219
10 1.3649 3940992 EllisLab\ExpressionEngine\Service\Model\Query\Builder->insert( ) .../Model.php:346
11 1.3649 3940992 EllisLab\ExpressionEngine\Service\Model\DataStore->insertQuery( ) .../Builder.php:78
12 1.3649 3940992 EllisLab\ExpressionEngine\Service\Model\DataStore->runQuery( ) .../DataStore.php:237
13 1.3692 3942848 EllisLab\ExpressionEngine\Service\Model\Query\Insert->run( ) .../DataStore.php:281
14 1.3705 3942856 EllisLab\ExpressionEngine\Service\Model\Model->emit( ) .../Insert.php:24
15 1.3705 3943704 call_user_func_array:{/var/www/html/system/ee/EllisLab/ExpressionEngine/Service/Model/Model.php:818} ( ) .../Model.php:818
16 1.3705 3943712 EllisLab\ExpressionEngine\Model\Channel\ChannelEntry->onBeforeInsert( ) .../Model.php:818
17 1.3705 3943712 EllisLab\ExpressionEngine\Service\Model\Model->onBeforeInsert( ) .../ChannelEntry.php:386
18 1.3706 3943768 EllisLab\ExpressionEngine\Service\Model\Model->__call( ) .../ChannelEntry.php:386
19 1.3706 3943768 EllisLab\ExpressionEngine\Library\Data\Entity->__call( ) .../Model.php:145
20 1.3706 3943768 EllisLab\ExpressionEngine\Library\Mixin\Manager->call( ) .../Entity.php:93
21 1.3706 3943768 EllisLab\ExpressionEngine\Library\Mixin\Manager->runMixins( ) .../Manager.php:119
       
Kevin Cupp's avatar
Kevin Cupp
791 posts
7 years ago
Kevin Cupp's avatar Kevin Cupp

Yep sorry about that, just comment out line 386 of ChannelEntry.php for now. We’ll probably try to get another build out soon with this and the URL title validation fixes.

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
7 years ago
Brian Litzinger's avatar Brian Litzinger

Sounds good, thanks!

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
7 years ago
Brian Litzinger's avatar Brian Litzinger

I assume this may hinder 3rd party add-ons that rely on those hooks/events?

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
7 years ago
Kevin Cupp's avatar Kevin Cupp

No it shouldn’t, the event should still be fired, that was just there because some of those events have methods on the super class that also need calling, but onBeforeInsert isn’t one of them so it just errored.

       
Max Lazar's avatar
Max Lazar
337 posts
7 years ago
Max Lazar's avatar Max Lazar

Just for information - got same error during install. Probably because I choose to install a default theme.

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

This issue should be resolved in dp.2.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.