- 14 Σεπ 2016, 23:28
#3873
Καλησπέρα,
Δεν ξέρω αν αυτό θα σε βοηθήσει...
Το βρήκα ψάχνοντας στο google:
Undefined Index / Variable
The error appears when you referencing variable that not been declared. In programming approach set the variable or use isset() to checks if the variable has been set will solve the issue. But for an application to get this issue mean there is a bugs in it, whether it’s OpenCart or extensions files. Or you do some modification on unappropriate way.
Error variant:
PHP Notice: Undefined index: company in /path/public_html/catalog/model/account/customer.php on line 8
PHP Notice: Undefined variable: order_id in /path/public_html/catalog/controller/account/order.php on line 149
PHP Notice: Undefined variable: product in /path/public_html/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_product.tpl on line 272
Solution
If you get this issue on clean OpenCart installation, share the bugs at OpenCart forum. It will help OpenCart developer to develope bugs fix.
When you get this issue after installing an extension, disable the extension then report it to the developer.
If the error refer to file inside the “/vqmod/vqcache” folder, it’s mean the error caused by vQmod file. Disable the vQmod file by rename it to vqmod_file.xml_ and report the bugs to the developer.