Jump to content

Sagepay redirect


dasickzz

Recommended Posts

Hello, first of all I need to say I'm quite new to all of this and I'm trying to help a friend out.

She uses sagepay which I downloaded (1.0.2 for cc 6) and I filled everything in  where I had the data for. Could it be any of the options I could do in the admin menu for it not to work? It just redirects to a blank page.

Just to test I downloaded PayPal and that worked fine.

Link to comment
Share on other sites

The problem manifests when the customer clicks SagePay as an option among all the gateways listed? If SagePay is the only gateway enabled, then CC6 should just use it without requiring it be made the active choice. Then clicks Continue?

 

Link to comment
Share on other sites

Yes it happens after choosing sagepay as a option to pay and then it goes to the blank page. When I take PayPal out of the list, it goes straight to the blank site.

I was just with sagepay on the phone and my details are imaginary from that hecouldn't help me with the priority option.

Link to comment
Share on other sites

okay, don't know really how I did it but I got an error log. I dont know if you want me to post everything but I guess this looks like whats wrong?

 

[27-May-2015 23:42:20] PHP Fatal error:  Call to undefined function mcrypt_encrypt() in /var/www/vhosts/mywebpage.co.uk/httpdocs/modules/gateway/SagePay/gateway.class.php on line 56

 

this is the line 56 of the gateway.class.php

$strCrypt = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $this->_module['passphrase'], $strIn, MCRYPT_MODE_CBC, $this->_module['passphrase']);

and otherwise loads of

 

27-May-2015 23:45:10] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/mywebpage.co.uk/httpdocs/:/tmp/) in /var/www/vhosts/.co.uk/httpdocs/classes/session.class.php on line 598

 

 

Edited by dasickzz
Link to comment
Share on other sites

The ini-custom.inc.php statements told PHP to enable the logging of errors and to create that log where this file is located.

Call to undefined function mcrypt_encrypt(): You will need to ask your hosting provider to enable the mcrypt library. "In PHP5.3, mcrypt is automatically included and enabled."

So, what version of PHP is your site using?

Also, you need to have your hosting provider fix this error: "open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s)".

Your hosting provider will understand what these errors mean.

Link to comment
Share on other sites

Ok, Even so, the PHP docs for MCrypt says that PHP needs to be compiled with a certain option.

In admin, PHP Info (a link at the bottom of the nav stack), scroll to where the mcrypt table would be (alphabetically listed) and see if it is listed.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...