PeteW1959 Posted November 6, 2017 Share Posted November 6, 2017 I haven't used CC for a few months, and during that time we have changed the home site from a custom php application to Wordpress. I came to log in today to look at using CC again and the admin panel is in plain text. It was on 6.1.5 so I upgraded to 6.1.12 but that hasn't fixed it. The CC logo is showing as broken, so I looked at the image address, which doesn't look correct (exact URL and admin file names hidden!) http://shop.mysite.co.uk/admin_XXXXXX.php/admin_YYYYYYY/skins/default/images/logo.cubecart.png I have another working instance of CC and that doesn't have admin_XXXXXX.php in the address Any idea how to fix this? Quote Link to comment Share on other sites More sharing options...
ayz1 Posted November 6, 2017 Share Posted November 6, 2017 You could try clearing the cache in the Maintenance section in admin. Quote Link to comment Share on other sites More sharing options...
PeteW1959 Posted November 6, 2017 Author Share Posted November 6, 2017 I had already tried that, and no difference. I also checked for correct entries in global.inc.php Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted November 6, 2017 Share Posted November 6, 2017 Is the WP site at the root with the CC install as a directory? If so, the issue is likely to be with a WP setting. Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 6, 2017 Share Posted November 6, 2017 This part, obviously, is not correct:/admin_xxxxxx.php/admin_yyyyyy/ Is there a shortcut or some other link that takes you to this address? If so, it will need to be edited. Please examine the contents of /includes/global.inc.php. Make sure the values there are correct. The store is in "plain text" because the page's resources links to CSS and javascript files are malformed and are not loaded. This can be caused by bad values in global.inc.php. Quote Link to comment Share on other sites More sharing options...
PeteW1959 Posted November 6, 2017 Author Share Posted November 6, 2017 CubeCart is in a subdomain, not a subdirectory, and my development store (in a different subdomain) is working correctly. I am not using a shortcut, just entering the URL in the address bar. Both copies of global.inc.php are the same, apart from the different admin filenames and DB details, which are correct. Quote Link to comment Share on other sites More sharing options...
PeteW1959 Posted November 7, 2017 Author Share Posted November 7, 2017 I've been looking into this some more, and have discovered that the value of $STORE_URL is wrong; it has the admin file name added to the store url. I have checked the store url in Store Settings and it is correct. A further bit of digging and I think the value gets assigned in classes\seo.class.php line 710:- $store_url = (CC_SSL) ? $GLOBALS['config']->get('config', 'ssl_url') : $GLOBALS['config']->get('config', 'standard_url'); This is as far as I got with my limited knowledge of php. Can anyone take it from here? 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.