Placing Orders Error

Hello, I've heavily modified the default project to meet my client's needs. I'm nearly finished with the project and I want to thank you for creating one of the most complete Laravel ecommerce solutions! With that being said, I've come across a bug in which I can't actually place an order. After filling in the info, I click "place order" and it takes me to a laravel error page which sates "Trying to get property of non-object". Refering to this line $data['order_status_id'] = $orderStatus->id; in the file "/vendor/mage2/order/src/Controllers/OrderController.php" By the looks of it, it's failing to create the order it's self thus it can't get a the id of a order status that hasn't been created. Now because I've heavily modded the base files I though I must just have screwed something up and I just need to go find what I've taken out and put it back in so it works again because I remember placing orders when I first installed it. So I downloaded a fresh version and installed it. I tried a normal check out on a default dummy product and I got the following message at the same stage: --- Type error: Argument 1 passed to Mage2\Ecommerce\Events\OrderPlaceAfterEvent::__construct() must be an instance of Mage2\Order\Models\Order, instance of Mage2\Ecommerce\Models\Database\Order given, called in /home/eliot/Desktop/work/staples/laravel-ecommerce/modules/mage2/ecommerce/src/Http/Controllers/OrderController.php on line 63. So it looks as if it's getting an error at the same place. Very strange considering this is a new version(I noticed there have been changes). And the version from a month and a half ago worked fine with a fresh install. Any Idea's of how to troubleshoot this? Thanks in advance for your help.

To be honest with you still there is many bugs out in the system. So please keep raising on here. I think you bug is related to the one which is been raised and fixed just on 25-10-2017 so please try updating it could fix it. Manual fix for that bug could be: open a file modules/mage2/ecommerce/src/Events/OrderPlacedAfterEvent.php on top of the file do below changed: use Illuminate\Queue\SerializesModels; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Broadcasting\InteractsWithSockets; use Mage2\Ecommerce\Models\Database\Order; i hope it helps. thanks