Quote Originally Posted by ivopivo View Post
I had the exact same error as below. I made the changes outlined, and now it is showing a different error, when viewing the order in orders.php (admin panel)

From error log,



When viewing the order in orders.php (admin panel) it shows,



Would you have any idea what might be the cause? Thanks

Would be very helpful to have additional information.
1) ZC version.
2) Source of the SBA files (and possibly when they were downloaded).
3) The product in question, is it tracked by SBA?
4) If it is, how is/are the associated variants populated?
5) How many option names are associated with the product?
6) What type of option name(s) are they? (ie. read only, radio, etc...)

In just looking at the code and the above error message(s), it may be that a variable falls out of scope which is why the empty (), but that also depends on some of the above. I do note that a similar function is in the store side of the fileset and the particular area that is causing that problem in the admin where it starts with an if statement to the end of that if statement is in the admin only side. Makes me somewhat wonder if it is even necessary, but it got added in at some point and with purpose, so would rather make it work than make it go away. :)