- Сайт на opencart ошибка PHP Notice: Undefined index: email
- Undefined index error in error log
- Re: Undefined index error in error log
- Re: Undefined index error in error log
- Re: Undefined index error in error log
- Re: Undefined index error in error log
- Re: Undefined index error in error log
- Php notice undefined index email in
Сайт на opencart ошибка PHP Notice: Undefined index: email
Доброго дня.
Есть интернет магазин на opencart, перестали открываться страницы товаров. В логе ошибок есть записи (привожу код из данных файлов):
PHP Notice: Undefined index: email in /home/. /public_html/catalog/controller/product/minprice.php on line 52
код: $data[’email_customer’] = $this->request->post[’email’];
PHP Notice: Undefined index: email in /home/. /public_html/catalog/controller/product/outstock.php on line 52
код: $data[’email_customer’] = $this->request->post[’email’];
PHP Notice: Undefined index: telephone in /home/. /public_html/catalog/controller/product/fastorder.php on line 50
код: $data[‘phone_customer’] = $this->request->post[‘telephone’];
PHP Notice: Undefined index: email in /home/. /public_html/catalog/controller/product/size.php on line 46
код: $data[’email_customer’] = $this->request->post[’email’];
Кому не сложно подскажите в чем проблема и что с этим делать. Заранее благодарю.
Php Notice: Undefined index
Здравствуйте. У проблема со скриптом. выдает Notice: Undefined index: in.
PHP Notice: Undefined index
у меня вот такая ощибка: PHP Notice: Undefined index: guid in.
Notice: Undefined index: Submit in contact.php
Здрвствуйте! Помогите пожалуйста исправить ошибки, выскакивают при открытии страници с формой.
Когда делается запрос, то отсуствуют поля с «email» и «telephone».
Пологаю они не заданы.
Добавлено через 2 минуты
parabellum_sib, И вообще, opencart плевать на «Notice» и то что у них +200к запросов может быть на главное странице. Не чего не оптимизировано и проверять на наличие значений тоже не чего не хотят.
Я прошу прощения за вопрос, но где они должны быть заданы? Дело в том, что до этого все функционировало нормально в течение полугода. Могло что-то сбиться? И где эти поля должны быть заданы? В админке opencart? Или где-то прописаны в коде? Еще раз скажу, что знания практически нулевые, и начать изучать только в планах. А проблема существует сейчас.
Добавлено через 2 минуты
Может подскажете какой-нибудь ресурс для новичков, где объяснены принципы?
Гуглил, но ничего подходящего по теме не нашел. Точнее информации много, но перелопачивать всю сейчас нет времени.
Undefined index error in error log
Hi there, I am getting the following errors on my opencart 2.3.0.2 with default theme:
2019-11-28 9:28:43 — PHP Notice: Undefined index: order_id in /home//mywebsite/public_html/system/storage/modification/catalog/controller/account/return.php on line 564
2019-11-28 9:28:43 — PHP Notice: Undefined index: firstname in /home//mywebsite/public_html/system/storage/modification/catalog/controller/account/return.php on line 568
2019-11-28 9:28:43 — PHP Notice: Undefined index: lastname in /home//mywebsite/public_html/system/storage/modification/catalog/controller/account/return.php on line 572
2019-11-28 9:28:43 — PHP Notice: Undefined index: email in /home//mywebsite/public_html/system/storage/modification/catalog/controller/account/return.php on line 576
2019-11-28 9:28:43 — PHP Notice: Undefined index: email in /home//mywebsite/public_html/system/storage/modification/catalog/controller/account/return.php on line 576
2019-11-28 9:28:43 — PHP Notice: Undefined index: telephone in /home//mywebsite/public_html/system/storage/modification/catalog/controller/account/return.php on line 580
2019-11-28 9:28:43 — PHP Notice: Undefined index: product in /home//mywebsite/public_html/system/storage/modification/catalog/controller/account/return.php on line 584
2019-11-28 9:28:43 — PHP Notice: Undefined index: model in /home//mywebsite/public_html/system/storage/modification/catalog/controller/account/return.php on line 588
2019-11-28 9:28:43 — PHP Notice: Undefined index: g-recaptcha-response in /home//mywebsite/public_html/catalog/controller/extension/captcha/google_captcha.php on line 27
Can anyone point me to a solution? I think the google captcha error is a different issue.
Re: Undefined index error in error log
Post by OSWorX » Thu Nov 28, 2019 5:20 pm
It seems that you have installed an extension which modifies that controller.
Disable this extension, refresh the modification cache and check if errors are gone.
If not, come back and tell us what you have installed extra.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Re: Undefined index error in error log
Post by Jansuh » Thu Nov 28, 2019 5:48 pm
I have a lot of extensions installed, will try and figure out wich one modifies return.php am afraid that i won’t be able to find it.
Re: Undefined index error in error log
Post by OSWorX » Thu Nov 28, 2019 10:23 pm
I have a lot of extensions installed, will try and figure out wich one modifies return.php am afraid that i won’t be able to find it.
But as the shopowner or being responsible for the shop, you should know what you are doing — or not?
So, having many extensions installed is one, but what for do you have them installed .. ?
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Re: Undefined index error in error log
Post by Jansuh » Fri Nov 29, 2019 7:07 pm
I don’t claim to be an expert on opencart but i am not unexperienceed either. I am sure all of the extensions that are installed serve a purpose. Wether that is SEO, Payment, Shipping it’s all important to have a better site then my competitors.
I am just currently trying to clean up my error logfile.
I also have these errors that seem related but don’t come from an extension since it is not in system/storage/modification
2019-11-29 11:51:15 — PHP Notice: Undefined index: email in xxx/public_html/catalog/controller/account/login.php on line 187
2019-11-29 11:51:15 — PHP Notice: Undefined index: email in xxx/public_html/catalog/controller/account/login.php on line 194
2019-11-29 11:51:15 — PHP Notice: Undefined index: email in xxx/public_html/catalog/controller/account/login.php on line 201
2019-11-29 11:51:15 — PHP Notice: Undefined index: password in xxx/public_html/catalog/controller/account/login.php on line 201
2019-11-29 11:51:15 — PHP Notice: Undefined index: email inxxx /public_html/catalog/controller/account/login.php on line 204
Re: Undefined index error in error log
Post by OSWorX » Fri Nov 29, 2019 7:50 pm
I don’t claim to be an expert on opencart but i am not unexperienceed either. I am sure all of the extensions that are installed serve a purpose. Wether that is SEO, Payment, Shipping it’s all important to have a better site then my competitors.
I am just currently trying to clean up my error logfile.
I also have these errors that seem related but don’t come from an extension since it is not in system/storage/modification
2019-11-29 11:51:15 — PHP Notice: Undefined index: email in xxx/public_html/catalog/controller/account/login.php on line 187
2019-11-29 11:51:15 — PHP Notice: Undefined index: email in xxx/public_html/catalog/controller/account/login.php on line 194
2019-11-29 11:51:15 — PHP Notice: Undefined index: email in xxx/public_html/catalog/controller/account/login.php on line 201
2019-11-29 11:51:15 — PHP Notice: Undefined index: password in xxx/public_html/catalog/controller/account/login.php on line 201
2019-11-29 11:51:15 — PHP Notice: Undefined index: email inxxx /public_html/catalog/controller/account/login.php on line 204
Expert or not, you have the responsibility to have a secure Webshop!
Secure means not having countless functions, extensions and so on.
Sure, almost everybody wants to be better than the competitors — not really new.
Secure means also, to know what you are doing, know what is installed, know what the extension is doing ..
Nevertheless, the last post shows a different message, has nothing to do with your first post.
And with an unmodified OpenCart installtion, this error (notice) never would be happen.
As it seems, someone has modified directly the controller.
Compare the exisisting file with an untouched original.
So, either open up a new posting, or hire a trusted and experienced OpenCart Developer: viewforum.php?f=88
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Php notice undefined index email in
Здравствуйте.
Я конструирую первую регистрацию и столкнулся с проблемой.
После регистрации, всё нормально, данные заносятся в БД и приходит в браузер сообщение что регистрация успешна.
После регистрации когда меня перекидывает на form_processing.php (где и высвечивается что регистрация прошла успешно), если я нажму в адресной строке и Enter вылетает Notice.
Предполагаю что это из-за htmlspecialchars.
Notice: Undefined index: login in C:\www\form_processing.php on line 4 Notice: Undefined index: sin in C:\www\form_processing.php on line 5 Notice: Undefined index: pass in C:\www\form_processing.php on line 6 Notice: Undefined index: email in C:\www\form_processing.php on line 7 Notice: Undefined index: question in C:\www\form_processing.php on line 8 Notice: Undefined index: answer in C:\www\form_processing.php on line 9 Notice: Undefined index: phone in C:\www\form_processing.php on line 10 Notice: Undefined index: skype in C:\www\form_processing.php on line 11 Notice: Undefined index: icq in C:\www\form_processing.php on line 12 Notice: Undefined index: login in C:\www\form_processing.php on line 15 Пожалуйста исправьте следующую ошибку: Введите ваше имя!
Е-mail адрес не существует"); > $pass = base64_encode(sha1($pass, true)); $sel = "SELECT * FROM accounts WHERE login = '$login'"; $res = mysql_query($sel); $num = mysql_num_rows($res); if($num == 0) < $query = "INSERT INTO `accounts` (`login`, `password`, `email`, `lastIP`, `question`,`answer`,`phone`,`skype`, `icq`) VALUES ('$login', '$pass', '$email', '".$_SERVER['REMOTE_ADDR']."', '$question', '$answer', '$phone', '$skype', '$icq')"; $result = mysql_query($query); if($result) < echo "Вы зарегистрированы!"; >> else < echo "Пользователь с таким именем существует! "; >?> На Главную >>>
return $data; > function show_error($myError) < ?> Пожалуйста исправьте следующую ошибку:
?>