spacekids Posted January 3, 2023 Posted January 3, 2023 HI all Help! just started the upgrade of my online shop from 6.4.7 to 6.4.8 Soon as I started the upgrade I got a message saying something like I ill need to FTP the install script to my hosting. Something like that. Now I cant get into my admin pages at all. The shop is still running fine. Looking via FTP I can see global.inc.php and functions.inc.php are both dated as of the time I tried to upgrade. The Admin folder which contained my admin files is empty. Is there a way to finish the install manually and get the admin files reinstated? Appreciate any help you can provide Thanks Robert Quote
Al Brookbanks Posted January 3, 2023 Posted January 3, 2023 Did you follow the steps in method 1? https://support.cubecart.com/hc/en-gb/articles/360003794198-How-do-I-upgrade-from-CubeCart-v6-to-latest-v6- 1 Quote
spacekids Posted January 3, 2023 Author Posted January 3, 2023 Thanks Al no I havent done anything as yet didnt want to break anything. I can see this will get the install files in place ready to go but can I check will this generate the admin pages that have disappeared as part of the install? Quote
Al Brookbanks Posted January 3, 2023 Posted January 3, 2023 What do you mean by admin pages? If you just follow those instructions it should work out ok. Be sure you have a full backup of files and database. Quote
spacekids Posted January 3, 2023 Author Posted January 3, 2023 OK fine I have a full set of backups. When I started the upgrade earlier it completely emptied the admin folder on my hosting. So I had an "admin" folder but there were no php files or anything else in it. So now when I try to go into my admin pages I get an error 404 (obviously as the php page I used to go to is no longer present) Will give it a shot see what happens Quote
Al Brookbanks Posted January 3, 2023 Posted January 3, 2023 "It" shouldn't have done anything. :) Make sure the backups are complete. If possible take a backup vie your web hosting account. The backup tool in CubeCart can be unreliable. Quote
spacekids Posted January 3, 2023 Author Posted January 3, 2023 Ok so I've extracted out the files and just copied over the admin folder to replace my empty folder. I've checked my global.inc.php values match but still getting an error 404. Do i really need to overwrite all files associated with cubecart or can i get admin working again before I do that? Quote
Al Brookbanks Posted January 3, 2023 Posted January 3, 2023 It depends on what version you are upgrading from. There probably shouldn't be a folder called admin at all. The includes/global.inc.php file will tell you what the admin folder and admin.php file should be called. Name them appropriately before you upload. Quote
spacekids Posted January 3, 2023 Author Posted January 3, 2023 Thanks Al So can I check - if my admin folder for example was called "admin123" and my admin.php file was called "index123.php" then my lines in global.inc.php should be this right: $glob['adminFile'] = 'index123.php'; $glob['adminFolder'] = 'admin123'; and to get into my admin pages I would use the url www.myshop.co.uk/admin123.php Thanks! Robert Quote
Al Brookbanks Posted January 3, 2023 Posted January 3, 2023 Correct and you need to rename the files and folder in the extracted zip folder appropriately before uploading to write over whats there. Then run the setup process. Quote
spacekids Posted January 3, 2023 Author Posted January 3, 2023 Thanks Al, many apologies for the endless questions but just want to check do I need to copy just the setup folder across to my ftp hosting or every folder contained within the zip? Quote
spacekids Posted January 3, 2023 Author Posted January 3, 2023 Hi Al, I've now uploaded all the contents of the zip, renamed the new admin.php to match the global.inc.php then navigated to www.myshop.co.uk/setup but instead of being able to upgrade I get this error: [Exception] /home/domains/vol1/497/2594497/user/htdocs/classes/language.class.php:106 - Undefined constant "ADMIN_CP" Any thoughts on where I go next? Thanks! Quote
bsmither Posted January 4, 2023 Posted January 4, 2023 Please try this edit: In /classes/language.class.php, line 106: From: if(ADMIN_CP == false && isset($d[$url['host']]) && !empty($d[$url['host']])) { To: if( (!defined('ADMIN_CP') || ADMIN_CP == false) && isset($d[$url['host']]) && !empty($d[$url['host']])) { 1 Quote
spacekids Posted January 4, 2023 Author Posted January 4, 2023 Great many thanks just made the edit and the set up has now run. I have spotted a new issue which I will raise a separate thread for, as this installation issue is now resolved. Thanks again! Quote
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.