empty delimiter / general problems with yourpay
hey guys,
i've used propay before, but this error is new to me. have the latest versions of the yourpay plugin and zencart. but i get this error (I *THINK* only when https is turned on):
Warning: strstr(): Empty delimiter. in /nfs/cust/4/33/02/320334/web/onlinestore/includes/modules/payment/linkpoint_api.php on line 74
I saw one or two mentions of this in the forums, but nothing that straight out told me what to do. Anyone have any ideas?
The cart is located here. Feel free to create test accounts:
https://www.erinlondon.com/onlinestore/
I'm also having general problems at the end of checkout (regardless if i use http or https). It gives me that "sorry we can't communicate with the credit card company" error. I have followed the instructions included with the plugin (the .pem file is downloaded and on my server) so i'm scratching my head on that as well (could be connected with the above error but i'm not sure).
So HELP please! :-)
Re: empty delimiter / general problems with yourpay
1. What version of Zen Cart?
2. What patches have you installed?
3. Has site been upgraded? From what versions?
4. Are you running the Linkpoint/Yourpay module built-in to Zen Cart, or the older version from the downloads section?
5. How long has this been happening? When did it last work properly?
6. Does your hosting account support CURL ?
7. Does your host firewall have port 1129 open bidirectionally for both UDP and TCP ? (ask your host)
8. Who is your host?
Re: empty delimiter / general problems with yourpay
1. 1.3.7
2. No patches that I recall.
3. Nope, brand new.
4. I wasn't aware or saw a built-in choice in the payment module, so i grabbed the one in the downloads section. Is there SUPPOSED to be one built-in?
5. This happened the moment i installed the plugin (it's a newly built store). It has never worked (without the https, on standard http, i didn't get the php but the plugin still came back with the "sorry, can't communicate" error after the order confirmation screen.
I'm not running the server so i'm asking someone to look into the other questions. I'm getting the empty delimiter error on the payment information (page 2 of 3) page so i'm guessing it's not CURL or port related.
In the meantime, I would like to hear feedback on the above especially #4.
Thanks!
Re: empty delimiter / general problems with yourpay
i'm trying to be smart and investigate on my own a little.
i found an (older?) linkpoint module, so i tried that. same error, different line number. so i compared the two modules and found out this is where it's having it's problems:
if (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])) {
if ($this->code_debug) $this->enabled=true;
}
I did an echo on the $_SERVER variable and nothing shows up. Ok, this probably is the problem but i'm not sure on the cause OR the cure.
Why would the $_SERVER variable be blank?
Re: empty delimiter / general problems with yourpay
ok, think i solved it. tell me if this was smart or not.
after the server variable didn't show up, i did more searches on the forum. and on the server variable itself.
i changed the line of code from what you saw above to this:
if (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, zen_get_ip_address())) {
if ($this->code_debug) $this->enabled=true;
}
i'm guessing for some reason the host/server couldn't provide the REMOTE_ADDR. Why, I wonder?
Anyway, the zen_get_ip_Address function seemed to remove the error message and i'm getting a successful test message / confirmation. this is still testing, not live, but i'm further than i was before!
Feedback still welcome!
Re: empty delimiter / general problems with yourpay
That's acceptable, and indeed it's even one of the changes already in the code for the next version ... so you should be safe with that one.