LBY82 Posted January 9, 2016 Share Posted January 9, 2016 Hi..I am new to cubecart but i can´t install extensions. When inserting any of the tokens from cubecart.com it just says: Error: Token was not recognised or has expired.Can somebody help?The error logs within the admin page shows nothing. Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 9, 2016 Share Posted January 9, 2016 Welcome LBY82! Glad to see you made it to the forums.Please have a look in admin, Request Log. Hopefully there is an entry there. Quote Link to comment Share on other sites More sharing options...
LBY82 Posted January 9, 2016 Author Share Posted January 9, 2016 Hi bsmither this is the log:29 Dec 2015, 23:18Request Sent - http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xmlnull=0Error:cURL Error (7): Failed to connect to www.ecb.europa.eu port 80: No route to hostReceived answer18 Apr 2012, 22:30Request Sent - http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xmlnull=0Received answer<?xml version="1.0" encoding="UTF-8"?> <gesmes:Envelope xmlns:gesmes="http://www.gesmes.org/xml/2002-08-01" xmlns="http://www.ecb.int/vocabulary/2002-08-01/eurofxref"> <gesmes:subject>Reference rates</gesmes:subject> <gesmes:Sender> <gesmes:name>European Central Bank</gesmes:name> </gesmes:Sender> <Cube> <Cube time='2012-04-18'> <Cube currency='USD' rate='1.3093'/> <Cube currency='JPY' rate='106.64'/> <Cube currency='BGN' rate='1.9558'/> <Cube currency='CZK' rate='24.816'/> <Cube currency='DKK' rate='7.4389'/> <Cube currency='GBP' rate='0.81915'/> <Cube currency='HUF' rate='296.84'/> <Cube currency='LTL' rate='3.4528'/> <Cube currency='LVL' rate='0.6988'/> <Cube currency='PLN' rate='4.1804'/> <Cube currency='RON' rate='4.3788'/> <Cube currency='SEK' rate='8.8500'/> <Cube currency='CHF' rate='1.2032'/> <Cube currency='NOK' rate='7.5525'/> <Cube currency='HRK' rate='7.4898'/> <Cube currency='RUB' rate='38.6720'/> <Cube currency='TRY' rate='2.3456'/> <Cube currency='AUD' rate='1.2628'/> <Cube currency='BRL' rate='2.4369'/> <Cube currency='CAD' rate='1.2966'/> <Cube currency='CNY' rate='8.2468'/> <Cube currency='HKD' rate='10.1617'/> <Cube currency='IDR' rate='12018.80'/> <Cube currency='ILS' rate='4.9320'/> <Cube currency='INR' rate='67.8280'/> <Cube currency='KRW' rate='1491.09'/> <Cube currency='MXN' rate='17.1767'/> <Cube currency='MYR' rate='4.0110'/> <Cube currency='NZD' rate='1.6003'/> <Cube currency='PHP' rate='55.876'/> <Cube currency='SGD' rate='1.6381'/> <Cube currency='THB' rate='40.392'/> <Cube currency='ZAR' rate='10.2517'/> </Cube> </Cube> </gesmes:Envelope> Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 9, 2016 Share Posted January 9, 2016 My bad. This routine to fetch a plugin via token does not get logged.So, we may need to get creative to learn why CubeCart is not getting the plugin.How are you at editing files? Can you find an external PHP error_log? It may be located somewhere within your hosting control panel. If not, you can use a small file to force PHP's error_log to be located in CubeCart's main folder. Quote Link to comment Share on other sites More sharing options...
LBY82 Posted January 9, 2016 Author Share Posted January 9, 2016 shoot Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 9, 2016 Share Posted January 9, 2016 Please create a file called 'ini-custom.inc.php', and have as its contents:<?php # Custom initialization commands # Filename: ini-custom.inc.php # File location: main CubeCart folder ini_set('memory_limit', '256M'); ini_set('max_execution_time', '60'); ini_set('error_log', 'error_log'); ini_set('log_errors', 'on'); ?>Place this file in CubeCart's main folder. Quote Link to comment Share on other sites More sharing options...
LBY82 Posted January 9, 2016 Author Share Posted January 9, 2016 Done, no errors in log after another try Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 9, 2016 Share Posted January 9, 2016 Are you referring to the System Error Log in admin, or the contents of the error_log found in CubeCart's main folder?Now we edit a file./admin/sources/plugins.index.inc.php Near line 60: Find: $request->skiplog(true); Change to: $request->skiplog(false); Save the edited file to your site and try again. Quote Link to comment Share on other sites More sharing options...
LBY82 Posted January 9, 2016 Author Share Posted January 9, 2016 now the log gave me:10 Jan 2016, 00:24Request Sent - https://www.cubecart.com/extensions/token/D619D146ABD63326A31DD563635E73BE/get?null=0null=0Error:cURL Error (7): Failed to connect to www.cubecart.com port 443: No route to hostreceived answer Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 10, 2016 Share Posted January 10, 2016 Now we know what to do.Your hosted site has a configuration anomaly to it. Please consult with your host provider.Your site is having problems communicating with CubeCart.com. This could be because your host does not allow PHP scripts to access other servers, or your host has a mis-configured local DNS such that there is nothing to answer with an IP address for "cubecart.com". Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 10, 2016 Share Posted January 10, 2016 When this gets sorted, and you are able to fetch plugins by the token system, then you should re-edit the file back to what it was. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted January 10, 2016 Share Posted January 10, 2016 The issue is not purely with reaching CubeCart.com and is causing the other issues with the currency rate updates that you highlighted earlier and will probably be causing multiple other issues as well - as Brian said, contact your hosting company as this should never happen and is a fault with the server configurationIan Quote Link to comment Share on other sites More sharing options...
LBY82 Posted January 11, 2016 Author Share Posted January 11, 2016 The firewall blocked access to cubecart.com.My host provider fixed the issue...Many thanks Brian and Ian.. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted January 11, 2016 Share Posted January 11, 2016 Glad that is now working for you but did they also allow access to www.ecb.europa.eu so you are able to fetch currency rates ? If they are blocking these steps, are they also blocking some / all other external sites ?Ian 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.