Jump to content

Error: Token was not recognised or has expired.


Recommended Posts


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.



Link to comment
Share on other sites

Hi bsmither


this is the log:

29 Dec 2015, 23:18

Error:cURL Error (7): Failed to connect to www.ecb.europa.eu port 80: No route to host
Received answer
18 Apr 2012, 22:30
Received 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>
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Please create a file called 'ini-custom.inc.php', and have as its contents:

# 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.

Link to comment
Share on other sites

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.


Near line 60:


Change to:

Save the edited file to your site and try again.

Link to comment
Share on other sites

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".


Link to comment
Share on other sites

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 configuration


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.

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...