Post by Jansuh » Thu Nov 28, 2019 4:54 pm

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.

Thanks a lot.

New member

Posts

Joined
Fri Apr 20, 2018 8:13 pm


Post by OSWorX » Thu Nov 28, 2019 5:20 pm

Jansuh wrote:
Thu Nov 28, 2019 4:54 pm
../system/storage/modification/catalog/controller/account/return.php on line 564
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.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

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.

New member

Posts

Joined
Fri Apr 20, 2018 8:13 pm


Post by OSWorX » Thu Nov 28, 2019 10:23 pm

Jansuh wrote:
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.
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.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

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

New member

Posts

Joined
Fri Apr 20, 2018 8:13 pm


Post by OSWorX » Fri Nov 29, 2019 7:50 pm

Jansuh wrote:
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
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.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by Jansuh » Fri Nov 29, 2019 8:48 pm

Was hoping on some help in stead of a lecture on how to run my business. Will compare the file against an original and try to firgure out what is wrong myself.

New member

Posts

Joined
Fri Apr 20, 2018 8:13 pm


Post by OSWorX » Fri Nov 29, 2019 9:28 pm

Jansuh wrote:
Fri Nov 29, 2019 8:48 pm
Was hoping on some help in stead of a lecture on how to run my business. Will compare the file against an original and try to firgure out what is wrong myself.
A good start.
What do you expect from us?
Doing your job?
With nothing?

And knowing what is going on, having a secure website - is no business, that are "basics".

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by Jansuh » Fri Nov 29, 2019 9:38 pm

I don't expect anything but some help. "Can anyone point me to a solution?" was my question.
Most of the times errors are not unique and solved quickly. If i haven't given enough information just let me know.

I really can't do anything with reading between the lines how stupid i (apparently) am. I am doing the best i can with the knowledge that i have and google and this forum.
Have a nice weekend

New member

Posts

Joined
Fri Apr 20, 2018 8:13 pm


Post by IP_CAM » Sat Nov 30, 2019 4:26 am

--- in /home//mywebsite/ ---
would not work, if you really have a double forward slash in such a line.
But if you publish handmade Paths here, it's hard to guess, if you have such in
your Code, or then only published it here the wrong way. ::)
As easier one makes it for others, the better the chance, to succeed. 8)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by ADD Creative » Sat Nov 30, 2019 4:38 am

All the errors are in form validation. Most likely caused by a bot doing a POST without any fields. Looking in your web access logs at the time of the errors may confirm this.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by xxvirusxx » Sat Nov 30, 2019 6:18 pm

Jansuh wrote:
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.
Go to Extensions->Modifcations, Log tab then press CTR+F, and search return.php

Or Files tab..

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by Jansuh » Sat Nov 30, 2019 7:24 pm

xxvirusxx wrote:
Sat Nov 30, 2019 6:18 pm

Go to Extensions->Modifcations, Log tab then press CTR+F, and search return.php

Or Files tab..
That is great help, was able to find the extension that modifies return.php. Thank you so much

New member

Posts

Joined
Fri Apr 20, 2018 8:13 pm

Who is online

Users browsing this forum: No registered users and 27 guests