steven vaccaro
Ecommerce Template Guru
USA
1060 Posts |
Posted - 08/31/2023 : 13:38:06
When I try to update a stock option that was being used before the latest update, Im rec this error. Fatal error: Uncaught ValueError: mail(): Argument #1 ($to) must not contain any null bytes in /home/offsvac4/public_html/oseadmin/inc/incfunctions.php:1600 Stack trace: #0 /home/offsvac4/public_html/oseadmin/inc/incfunctions.php(1600): mail('1yrphmgdpgulasz...', 'OffshoreElectri...', '<table border="...', 'MIME-Version: 1...') #1 /home/offsvac4/public_html/oseadmin/inc/incprodopts.php(105): dosendemail('1yrphmgdpgulasz...', ' ose-orders@offs...', '', 'OffshoreElectri...', '<table border="...') #2 /home/offsvac4/public_html/oseadmin/inc/incprodopts.php(313): checknotifystock('2568') #3 /home/offsvac4/public_html/oseadmin/adminprodopts.php(40): include('/home/offsvac4/...') #4 {main} thrown in /home/offsvac4/public_html/oseadmin/inc/incfunctions.php on line 1600 If I make a new option today, and edit it, I don't get that error.
|
Vince
Administrator
42874 Posts |
Posted - 09/01/2023 : 03:14:51
Hi Steven It looks like the people that are doing this to your site have managed to add some illegal email addresses to the Stock Notification table and that is causing this to error when you try to update the stock. I've added a couple of changes to your site just now so that firstly, the email is checked more thoroughly before being added to the stock notification. But secondly, if you go to the page... ECT Admin -> Store Admin -> Database Utility ...you now have an option at the bottom, "Remove all stock notifications", which will clear the notifyinstock table. Vince Click Here for Shopping Cart SoftwareClick Here to sign up for our newsletterClick Here for the latest updater
|
steven vaccaro
Ecommerce Template Guru
USA
1060 Posts |
Posted - 09/01/2023 : 03:54:07
Hiw do I first download the email logs for the item?
I have to notify real customers? Otherwise they are going to be pissed at us. Some people have been waiting months for select items that aren't made elsewhere.
|
Vince
Administrator
42874 Posts |
Posted - 09/01/2023 : 04:05:26
|
steven vaccaro
Ecommerce Template Guru
USA
1060 Posts |
Posted - 09/01/2023 : 05:07:08
Ok, ive done that. And cleaned up all the garbage coding from the two days where we were hit.
How do we stop people from being able to inject code into this area?
|
Vince
Administrator
42874 Posts |
Posted - 09/01/2023 : 06:03:14
|
steven vaccaro
Ecommerce Template Guru
USA
1060 Posts |
Posted - 09/01/2023 : 06:40:20
Thanks Vince. Where should I go from here?
Ive checked the orders and it looks like they are getting code into the actual order details. Ill email you those files.
|
Vince
Administrator
42874 Posts |
Posted - 09/01/2023 : 09:44:41
|
steven vaccaro
Ecommerce Template Guru
USA
1060 Posts |
Posted - 09/01/2023 : 10:00:50
The harm is changing all the stock in our store to zero "0". Thats a big problem for us.
|
steven vaccaro
Ecommerce Template Guru
USA
1060 Posts |
Posted - 09/01/2023 : 10:05:48
I guess the question, should be how do we stop them from doing this again?
Its happening at least once a year. Its cost us money, real customers frustration and lots of my hair pulling, and I don't have much hair left to pull out.
|
Vince
Administrator
42874 Posts |
Posted - 09/04/2023 : 14:53:52
|
steven vaccaro
Ecommerce Template Guru
USA
1060 Posts |
Posted - 09/05/2023 : 03:47:49
Thanks Vince
|
|
|