Jump to content
Sign in to follow this  
PeteW1959

Admin panel in plain text

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

 

 

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
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.

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

Sign in to follow this  

×
×
  • Create New...