[Notice] Trying to get property 'ID' of non-object

GET /en_CA/product/show/sponge-brush-with-4-refills/147/3

Line 124 in /home/zaocanadaca/public_html/beta/zaoshop/code/model/Product.php

Source

115     }
116 
117     public function getThumbnail()
118     {
119         return $this->DisplayImage()->CMSThumbnail();
120     }
121 
122     public function getLink(){
123         $locale = Locale::getCurrentLocale();
124         $category = $this->Category()->first()->ID;
125         if($locale == 'en_CA')
126         {
127             $url = $this->URL;
128         } elseif($locale === 'fr_CA') {
129             $url = $this->URL_FR;
130         } else {

Trace

ERROR [User Warning]: Couldn't set response type to 500 because of output on line 419 of /home/zaocanadaca/public_html/beta/vendor/silverstripe/framework/src/Control/HTTPResponse.php IN GET /en_CA/product/show/sponge-brush-with-4-refills/147/3 Line 397 in /home/zaocanadaca/public_html/beta/vendor/silverstripe/framework/src/Control/HTTPResponse.php Source ====== 388: } elseif ($this->getStatusCode() >= 300) { 389: // It's critical that these status codes are sent; we need to report a failure if not. 390: user_error( 391: sprintf( 392: "Couldn't set response type to %d because of output on line %s of %s", 393: $this->getStatusCode(), 394: $line, 395: $file 396: ), * 397: E_USER_WARNING 398: ); 399: } 400: } 401: 402: /** 403: * Output body of this response to the browser Trace ===== user_error(Couldn't set response type to 500 because of output on line 419 of /home/zaocanadaca/public_html/beta/vendor/silverstripe/framework/src/Control/HTTPResponse.php, 512) HTTPResponse.php:397 SilverStripe\Control\HTTPResponse->outputHeaders() HTTPResponse.php:343 SilverStripe\Control\HTTPResponse->output() index.php:26 Sponge Brush (with 4 refills) | Bamboo Brushes
sign in

Bamboo Brushes

  • 156707

Sponge Brush (with 4 refills)

${{optionPrice}} ON SALE!
Refill only ${{refillPrice}} ON SALE!

The Sponge Brush is used to apply, stretch or blend your eye shadow. It contains 4 washable refills.

Zao Brushes allow a precise application of make-up and an extreme comfort thanks to their very soft hair.  The handles of our brushes are made of bamboo and their hairs are synthetic rather than natural because we are committed to fight against animal abuse.

CARE: Wash your brushes gently with cold water, mild soap and rinse well.  Then dry them flat on a cloth.

Selected Option: {{selectedOption}}

  • out of stock
  • out of stock
Quantity:

You may also like

You are ${{freeShipDiff}} away from free shipping!*

Your Shipping is Free

{{item.Name}} ${{item.LineTotal}}
{{item.Color}}
FORMAT: {{item.Size}} QTY: {{item.Qty}}
Checkout Keep Shopping

Estimated Total ${{Order.esttotal}}

*Free shipping qualification is calculated based on the final total of your order. If applicable, promotional discounts may increase the amount required to qualify for free shipping.