peterp Posted March 26, 2017 Share Posted March 26, 2017 Hi All, I'm getting an error banner when I enter cubecart that states that we are not using the curent version, as we have just started with our version we will upgrade later but we would like this banner to be stopped from displaying, I believe the file that needs to be changed is /admin/sources/dashboard.index.inc.php but my code skills are not up scratch for this simple change so could somebody direct me into the correct change please Much appreciated Peterp Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted March 26, 2017 Share Posted March 26, 2017 I'm not positive, but I seem to remember there is an x available on that warning banner that allows you to ignore the warning. It's quite possible that is a fairly new wrinkle that you don't have on your version. Are you still on 5.2.2? Quote Link to comment Share on other sites More sharing options...
peterp Posted March 26, 2017 Author Share Posted March 26, 2017 Hi Dirty Butter No I'm on ver 6.1.4 and latest ver is 6.1.5 we are not ready to go to 6.1.5 just yet Regards, Peterp Quote Link to comment Share on other sites More sharing options...
peterp Posted March 29, 2017 Author Share Posted March 29, 2017 Hi all, Has anybody been successful in restricting this warning message in the Admin dashboard. It is creating some anguish with one of my newest clients who have just recently implemented ver 6.1.4 and are not ready to go through an upgrade just yet. Any help with regards to hiding this warning would be very musch appreciated Best Regards, Peterp Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 29, 2017 Share Posted March 29, 2017 To supress this message, in /admin/sources/dashboard.index.inc.php: Near line 51, find: $GLOBALS['main']->setACPWarning(sprintf($lang['dashboard']['error_version'], CC_VERSION, $history[0]['version'])); Change to: // Database schema check:: $GLOBALS['main']->setACPWarning(sprintf($lang['dashboard']['error_version'], CC_VERSION, $history[0]['version'])); Near lines 95-96, find: ## Check current version if (!$GLOBALS['session']->has('version_check') && $request = new Request('www.cubecart.com', '/version-check/'.CC_VERSION)) { Change to: ## Check current version if (false && !$GLOBALS['session']->has('version_check') && $request = new Request('www.cubecart.com', '/version-check/'.CC_VERSION)) { The first change stops CubeCart from sending the message about the database not matching CubeCart's version to the error banner system. This change is probably not necessary as if the database is at CC614's schema, there wouldn't be an error message. The second change stops all the checking for new versions: of CubeCart and all the extensions installed. Quote Link to comment Share on other sites More sharing options...
peterp Posted March 29, 2017 Author Share Posted March 29, 2017 Hi Brian, Thanks for this it worked perfectly Once again your response and solution very much appreciated. Best Regards, Peterp 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.