
Originally Posted by
stellarweb
I am having an issue that is making me pull my hair out! lol
History... upgrading a 1.5.0 cart to 1.5.4
Installed latest "combo" version of SBA from github and get an error in logs as follows when going to a product page - which is blank:
[20-Aug-2016 13:21:11 America/New_York] PHP Parse error: syntax error, unexpected '[' in /home/elkkidsc/public_html/store2/includes/classes/observers/class.products_with_attributes_stock.php on line 671
When I look at it in Dreamweaver it shows two lines as "red" indicating an error:

Typo:
is_array
Is a function, not an array. Therefore the first [ and last] should be replaced with their () equivalent.
Line should read:
Code:
if (is_array($products[$i]['attributes'])) {
Bookmarks