Christopher Short Posted February 16, 2017 Share Posted February 16, 2017 Is anyone else getting a new admin address for every single update? It really sucks having to change the link so often. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 16, 2017 Share Posted February 16, 2017 I think you are in the minority here. I've opened a report to investigate this. https://github.com/cubecart/v6/issues/1503 You are using the auto upgrade tool in the admin ACP? Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted February 16, 2017 Share Posted February 16, 2017 Minority maybe, but I have had at least three users where this has happened although for most it works fine. One was a manual upgrade where they used FTP and simply uploaded everything from the zip file as is so they had /admin_XXXXXX and /admin and admin_XXXXXX.php and admin.php before running setup ! However the last one I had to sort out was done through the automated update tool by the store owner. I had already opened a github issue several weeks ago which you closed Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 16, 2017 Share Posted February 16, 2017 Strange one... I probably upgrade 3-5 stores a day on a wide variety of hosting platforms and I've never experienced it. I don't use the auto upgrade tool though. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted February 16, 2017 Share Posted February 16, 2017 Totally agree and have also done a lot without issues and also never use the upgrade tool but have cleaned up enough to think that there is a definite problem - there has also been at least one other thread on here about similar upgrade problems Ian Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 16, 2017 Share Posted February 16, 2017 Hmm I think the thing to do is look at the logic and consider scenarios it may need to run when it shouldn't. Quote Link to comment Share on other sites More sharing options...
Noodleman Posted February 16, 2017 Share Posted February 16, 2017 I've had it happen on most stores I've updated as well. I just change the URL's back after upgrading by renaming the admin folder/admin file and updating the global config file. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted February 16, 2017 Share Posted February 16, 2017 Just been notified of another one that updated themselves - they were on 6.1.0 and updated to 6.1.5 What is happening is that if the admin.php file and admin directory have already been updated, then using the admin update tool uploads /admin directory and admin.php again but not into the renamed directories. Obviously when doing a manual upgrade as I and Al always do, I upload all new files from the /admin distribution directly into the already renamed directory and likewise with the admin.php file Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 16, 2017 Share Posted February 16, 2017 The code *should* automatically delete the old files/folder and rename the new ones. Quote Link to comment Share on other sites More sharing options...
keat Posted February 16, 2017 Share Posted February 16, 2017 happened to me too. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 16, 2017 Share Posted February 16, 2017 I must be doing it differently. If some one can give me exact steps to reproduce I would be grateful. 2 minutes ago, keat said: happened to me too. Manual or auto upgrade? Quote Link to comment Share on other sites More sharing options...
keat Posted February 16, 2017 Share Posted February 16, 2017 It's happened to me when I've done an automated update. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted February 16, 2017 Share Posted February 16, 2017 It is always auto update in my experience but then when I do a manual update, I always copy /admin files and directories into the already renamed admin_XXXXXX directory anyway Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 16, 2017 Share Posted February 16, 2017 4 minutes ago, keat said: It's happened to me when I've done an automated update. Ok thanks I'll I stall 6.1.3 and try to get it to 6.1.5. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted February 16, 2017 Share Posted February 16, 2017 I messaged you in November, Al, with links to several threads on the forum of people having issues with the re-naming on 6.1.1. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 16, 2017 Share Posted February 16, 2017 2 minutes ago, Dirty Butter said: I messaged you in November, Al, with links to several threads on the forum of people having issues with the re-naming on 6.1.1. True but it's not something I've ever been able to experience. Quote Link to comment Share on other sites More sharing options...
Christopher Short Posted February 16, 2017 Author Share Posted February 16, 2017 What do you need from me to help with this? 5 hours ago, Al Brookbanks said: I think you are in the minority here. I've opened a report to investigate this. https://github.com/cubecart/v6/issues/1503 You are using the auto upgrade tool in the admin ACP? I think I have always used the auto update tool from maintenance. The second update after this was implemented broke the store and didn't update the link files correctly, so I had to manually fix them. This last update was auto done through maintenance. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 16, 2017 Share Posted February 16, 2017 This should do the trick. https://github.com/cubecart/v6/commit/4922d169b0e40a5b1658eda0939a210bd976902a Quote Link to comment Share on other sites More sharing options...
zaromnia Posted February 17, 2017 Share Posted February 17, 2017 On 2/16/2017 at 4:55 AM, Christopher Short said: Is anyone else getting a new admin address for every single update? It really sucks having to change the link so often. Hi, I'm fairly new to this but my admin link has also changed. I basically need to know how and where to change it back please. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 17, 2017 Share Posted February 17, 2017 32 minutes ago, zaromnia said: Hi, I'm fairly new to this but my admin link has also changed. I basically need to know how and where to change it back please. Yes sorry it's a pest. It should work from now on if you use this:https://raw.githubusercontent.com/cubecart/v6/master/admin/sources/maintenance.index.inc.php Quote Link to comment Share on other sites More sharing options...
zaromnia Posted February 17, 2017 Share Posted February 17, 2017 thanks, but what exactly do I do with that? do i replace the file maintenance.index.inc.php with the one above? Also, my admin folder now says admin_HosAGU. Do I just leave it as that? Quote Link to comment Share on other sites More sharing options...
keat Posted February 17, 2017 Share Posted February 17, 2017 Zaromnia In public_html, change the admin.whateveritis.php to what you want it to be. Then using ftp open up includes/global.inc.php and change the corresponding line for $glob['adminFile'] = 'your-new-filename.php'; No need to change the admin folder name. As for the GitHub post, suggested by Al, i'd suggest that you could possibly leave this alone for now. I'd imagine that this will be written in to the next update, so might not be an issue moving forward. 1 Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 17, 2017 Share Posted February 17, 2017 4 minutes ago, keat said: I'd imagine that this will be written in to the next update, so might not be an issue moving forward. The next upgrade will have the same fault as the upgrade code it baked into 6.1.5. It will only work after 6.1.6 to 6.1.7 etc.. To get the upgrade working from 6.1.5 to 6.1.6 that file will need replacing. 1 Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted February 17, 2017 Share Posted February 17, 2017 You will need to change the permission on your global.inc.php file to 744 in order to be able to change the naming to what you want (DO NOT GO BACK TO PLAIN ADMIN). After you have saved your file with your naming, change the permission back to 444. Also, when you have all the naming for the admin_XXX folder and file set to what you want - be sure there is not an additional old folder hanging around named admin or a file named admin.php. (Not everyone is getting these leftover file/folders messes) They need to be deleted ONCE YOU ARE SURE you can login to the Dashboard with YOUR renamed admin_XXX.php. 1 Quote Link to comment Share on other sites More sharing options...
Christopher Short Posted February 17, 2017 Author Share Posted February 17, 2017 52 minutes ago, keat said: Zaromnia In public_html, change the admin.whateveritis.php to what you want it to be. Then using ftp open up includes/global.inc.php and change the corresponding line for $glob['adminFile'] = 'your-new-filename.php'; No need to change the admin folder name. As for the GitHub post, suggested by Al, i'd suggest that you could possibly leave this alone for now. I'd imagine that this will be written in to the next update, so might not be an issue moving forward. My names are not the same in any of those locations. publichtml has: admin admin_XXXXX and the globalinc file has: admin file YYYYY admin folder ZZZZZ my admin uses the YYYYY now. Also, in the includes file I have the image below 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.