dasickzz Posted May 27, 2015 Share Posted May 27, 2015 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. Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 27, 2015 Share Posted May 27, 2015 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? Quote Link to comment Share on other sites More sharing options...
dasickzz Posted May 27, 2015 Author Share Posted May 27, 2015 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. Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 27, 2015 Share Posted May 27, 2015 We would very much want to see the PHP error log. Please read this thread and create the file ini-custom.inc.php as described.Then report back with the contents of that file, if any. Quote Link to comment Share on other sites More sharing options...
dasickzz Posted May 27, 2015 Author Share Posted May 27, 2015 I don't have a ini-custom.Inc.php file, only a ini.inc.PHP. you want me to do it with that file? Quote Link to comment Share on other sites More sharing options...
dasickzz Posted May 27, 2015 Author Share Posted May 27, 2015 (edited) 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 May 27, 2015 by dasickzz Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 28, 2015 Share Posted May 28, 2015 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. Quote Link to comment Share on other sites More sharing options...
dasickzz Posted May 28, 2015 Author Share Posted May 28, 2015 Okay I'll get in contact with them.On PHP info it says it's using 5.3.3 Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 28, 2015 Share Posted May 28, 2015 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. Quote Link to comment Share on other sites More sharing options...
dasickzz Posted May 28, 2015 Author Share Posted May 28, 2015 No it is not listed there,so it's a fault of my hoster? Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 28, 2015 Share Posted May 28, 2015 Is it their fault? I wouldn't say fault, as if they screwed up something. It's more like their responsibility to give you what you need. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.