Hello,
This may be a bit tricky, but here is the situation:
The client got new VPS this week. And same working code gives me errors.
$product_data->$fld['name'] = get_field($fld['name'], $product->ID);
This gives me error
array to string convertion
Now if I fix it with curly brackets like this:
$product_data->{$fld['name']} = get_field($fld['name'], $product->ID);
Its fine.
This is pretty much the same setup on old and new servers. CentOS, WHM, CPanel, Apache 2.4, PHP 5.6. All latest compiled with easy apache 4.
Difference on old server is easy apache 3.
Can someone shade some light on it?
Thanks