I need to make a shop for a web site, now I use PHP classes to access the Bibit Payment Service (you can find those classes here: http://www.parse.nl/~daan/bibitxml/bibitxml.zip).
Anyway, it worked fine! Though after a few times testing the shop it started giving errors (see below).
Warning: Invalid range end in
/home/sites/site18/web/buy/include/XPath.class.php on line 2026
Warning: Invalid range end in
/home/sites/site18/web/buy/include/XPath.class.php on line 2814
xml error: 9 - Merchant code in reply () does not correspond with current merchant code (MYBIBITLOGIN)
Now, the order IS successfully placed (even if those errors occur), but progressing the Bibit answer doesn't go fine. (the XML error is because those PHP errors before).
On line 2026 you'll find:
if (ereg('[a-zA-Z0-9-_]+$', $step)) {
On line 2814 you'll find:
elseif (ereg('[a-zA-Z0-9-_]+', $node_test)) {
Now I tried adding "@" before "ereg", so it will ignore those warnings, but still it wont process the XML Bibit answer - of course! -. (I know ignoring warnings is wrong, I had to try anything).
Here's the strange thing. Sometimes it works, sometimes it doesn't and I'll have to wait!
Could it be a wrong PHP setting?
My phpinfo -> http://lisa.yow.nl/phpinfo.php
Sorry for the long post, I hope someone could help me out here.
Adriaan Mol