View Full Version : UPS Online tools
imediaweb
November 25th, 2003, 12:52 PM
I have sent this to support, but I have not received any response, so I am going to try the forum. I am trying to set up the UPS online tolls within SquirrelCart, but I keep getting this error:
Fatal error: Call to undefined function: mcrypt_module_open() in /usr/local/psa/home/vhosts/highlandergolf.com/httpdocs/squirrelcart/functions/enc.func on line 5
Has anyone else experienced this before. I am not sure what to do with this. If anyone could please help, I would REALLY appreciate it.
Robert
Jamie
November 25th, 2003, 01:59 PM
Hi Robert,
Sorry for the delay in the helpdesk. UPS OnLine Tools requires the MCrypt module. It sounds like your server does not have it installed. You can confirm this by going here, and searching for "Mcrypt":
http://YOURSITE.COM/squirrelcart/phpinfo.php
If you do not have the text "mcrypt" in the file, then you do not have the module.
I would suggest that you ask your web host to add it for you. If they will not, then you can try to load it at runtime using this code at the top of your store page (store.php by default):
<?
if (!extension_loaded('mcrypt')) {
if (strtoupper(substr(PHP_OS,0,3)) == 'WIN') {
dl('php_mcrypt.dll');
} else {
dl('mcrypt.so');
}
}
?>
For testing, you can follow that section immediately with the following:
<?
echo "<h1>Supported Mcrypt modes</h1>";
foreach (mcrypt_list_modes() as $mode) {
echo $mode . '<br />';
}
?>
Please let us know how you make out.
Thanks,
Jamie
kbirka
November 26th, 2003, 03:43 PM
I am having a similar problem, except when I try to enable the real time rates tool under couriers i get a "Please Wait" graphic indefinatley. I tried posting the code above and still have the same result
Jamie
November 26th, 2003, 07:07 PM
Hi,
Please open a helpdesk ticket, and we will check it out. The link to the helpdesk is on our support page.
Thanks,
Jamie
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.