Payment Problems/Cubecart

P

powerlifer

Hey guys, im having two payment problems at my site http://www.amlaberry.co.uk.

First one is is Error: No payment gateway variable is set!

I thought i had fixed that one as i found the code you need to change, went into paypal put the return site address etc and PDT and it seemed to work for my test order. Anyway that problem seems to be back but its not the only one.

A customer got this error after paying with paypal today also:
Warning: fopen(/location for my log files/2010-Apr-20.log) [function.fopen]: failed to open stream: No such file or directory in /home/amla/public_html/includes/content/confirmed.inc.php on line 276
can't open file


Any help is greatly appreciated.
 
P

powerlifer

what a joke £25 quid for credits for cubecart support and ive recieved more help here on this forum.

thanks again guys, i assume its the content folder which holds the confirmed.inc file i have set that to 777.

the top error is a pain though and now i have a new error, my mum has an account for the site and tried to make another order same as the one she made the other day but it wont let her make the same order lol.

This invoice has already been paid. For more information, please contact the merchant. - How can it already be paid for if its a new order lol.

not only that when i click the button return to merchant i get this error again Error: No payment gateway variable is set!

cheers again everyone, cubecart are hopeless for support.
 
Upvote 0

CaterTrade

Free Member
Feb 13, 2010
332
44
Dorset
The solution to your no payment gateway error looks to be here

http://forums.cubecart.com/index.php?showtopic=23435&pid=115903&mode=threaded&start=#entry115903

For the fopen error, it looks like you've installed the IPN/Auto return mod but not completed the instructions

http://forums.cubecart.com/index.php?showtopic=15202&st=30

If you add the above two methods to your file, make sure to replace the auth_token with the ones provided by paypal. I am using sandbox for test, don't forget to change it back to www.paypal.com for production. Also, you need to change the log location. You can just create a directoy inside your store, give it a wired name, such as
CODE
.$ba_ufdkj
, and give it a 777. The reason for a wired name is, people cannot guess it. oh, also password protect the log directory...it will block all http accesses.
 
Last edited:
Upvote 0

CaterTrade

Free Member
Feb 13, 2010
332
44
Dorset
So in confirmed.inc.php, find

$myFile = "/location for my log files/".date("Y-M-d").".log";

and change the 'location for my log files' to something only you know so it looks like $myFile = "/secretplace/".date("Y-M-d").".log";

Then in FTP create a folder of that same name in your root folder (where the index.php page is located) and set the permissions to 777. DON'T set includes/content to 777 whatever you do!
 
Last edited:
  • Like
Reactions: powerlifer
Upvote 0
M

Miss Pretty Pink

You get a whole month for that price,so start searching for anything else before your time is up - don't moan paying - the site is free,if you dont want to pay then up grade.

Regards

Miss Pretty Pink
Pretty Pink Vintage Boutique
 
Upvote 0

Latest Articles