Undefined Variable Error
Δημοσιεύτηκε: 10 Σεπ 2016, 13:31
από gdotw
Καλησπέρα σας είχα ολοκληρώσει την κατασκευή ενός Opencart eshop στο οποίο στο footer είχα εγκαταστήσει google map module. Δουλεύαν όλα μια χαρα εδώ και 1 μηνα, αλλά από προχτές στο σηεμίο που βρισκόταν ο χάρτης βγάζει το εξής error.
Notice: Undefined variable: bottom in /home/****/***/****/system/modification/catalog/view/theme/theme606/template/common/home.tpl on line 23
μπορεί κάποιος να με βοηθήσει, τι φταίει και πως μπορώ να το διορθώσω??
Σας ευχαριστώ πολύ!!
Re: Undefined Variable Error
Δημοσιεύτηκε: 14 Σεπ 2016, 23:28
από JoyceB
Καλησπέρα,
Δεν ξέρω αν αυτό θα σε βοηθήσει...
Το βρήκα ψάχνοντας στο 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.