ryanmitchell / ti-ext-kitchendisplay

Other
14 stars 8 forks source link

Trying to get property 'code' of non-object in: thoughtco/kitchendisplay/controllers/Summary.php:268 #28

Closed BreakSecurity closed 3 years ago

BreakSecurity commented 3 years ago

After creating an order without telephone number of customer...

ErrorException: Trying to get property 'code' of non-object in /home/info/domains/info.info/public_html/extensions/thoughtco/kitchendisplay/controllers/Summary.php:268
Stack trace:
#0 /home/info/domains/info.info/public_html/extensions/thoughtco/kitchendisplay/controllers/Summary.php(268): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Trying to get p...', '/home/info...', 268, Array)
#1 /home/info/domains/info.info/public_html/storage/framework/views/4246c45a397863067d88ca4e009222ebb561994f.php(51): Thoughtco\KitchenDisplay\Controllers\Summary->renderResults()
BreakSecurity commented 3 years ago

The order was used with a coupon that made the price be 0 so maybe is due to this

ryanmitchell commented 3 years ago

Seems to be version 1? there is no line 268 in version 2.

On 8 Dec 2020, at 20:34, BreakSecurity notifications@github.com wrote:

The order was used with a coupon that made the price be 0 so maybe is due to this

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ryanmitchell/ti-ext-kitchendisplay/issues/28#issuecomment-740988500, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAMVOZ4FPEICXS4HHVCSWDST2EVLANCNFSM4USPQQQA.

BreakSecurity commented 3 years ago

Yep totally right I have version 2 in another test env.