Support

Admin Tools

#28125 I didn't change the Admin name with quickstart - How do I do this WITHOUT using quickstart

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by dlb on Monday, 17 July 2017 08:43 CDT

Baldur2630
Please look at the bottom of this page (under Support Policy Summary) for our support policy summary, containing important information regarding our working hours and our support policy. Thank you!

Hi,

I just upgraded our site from Joomla 2.5 to Joomla 3.7. We have the MyMuse Component and it wasn't easy to transfer all the music over so I did this on my own server. When we had got it working, I installed Admin Tools. It asked me to run quickstart which I did, but I didn't change the Admin name to something else as I did on my other site. I thought that it would be simple to do this after uploading the Akeeba Backup and restoring to the host site.

Everything worked perfectly, but then I can't find a way to change the Admin Name, without re-running Quickstart, which tells me that If I run it, I may well break my 16 days of hard work.

How can I now change the Admin name?

dlb
I don't understand what you're trying to change, can you elaborate please?

The Wizard won't hurt anything, all it will do is change all of the security settings to new ones, which many people find confusing. As long as you have access via FTP or your host's file manager, you can disable Admin Tools and access your site.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

Baldur2630
I have two sites with Admin Tools. I upgraded one from 2.5 to 3.7 last week. No problem. Uploaded the site, installed Admin tools, ran Quickstart, Changed the Admin Name to something else, put in a security string for the URL configured WAFand everything worked fine.

On this site I installed Admin Tools BEFORE I uploaded the site, but I left the Admin as Admin. When I uploaded it, I wanted to run Quickstart again but got dire warnings, so I didn't. I set the Security string for the URL and configured WAF. Now come the problems :

1. I can login to the backend WITHOUT the security string, but when I do I get a blank white page.
2. I can also login WITH the security string, but get the same Blank page.
3. If I try to login to the Front End (I disable admin login for front) end and I enter a misspelled user name or a bad password I get a Login screeb for Admin in the centre of the page and I can login as Admin.
4. The option to force a user for a new password doesn't work any longer.

I'm not saying that ALL of this is due to Admin Tools.

Make it an easy question. As I see it, I can do one of two options :
(a) Run Quickstart again - It MIGHT fix things, but what can I expect to go wrong with Admin Tools
(b) Uninstall Admin Tools (can this be done and is it complicated?) and just re-install it from scratch and start over.

I've checked .htaccess, configuration.php and phi.ini, but I see nothing wrong. It's the same host as the other site, so it isn't them.

Suggestions welcome

dlb
You can uninstall Admin Tools, you will lose all your settings and logs, but I don't think that will be a problem in this case. You can do this in Joomla!'s Extensions Manager as you would any other extension. The only tricky part is that you want to uninstall the package, "Admin Tools package". Don't try to uninstall all the individual parts. Uninstalling will not restore your .htaccess file or the password protection for the /administrator folder (also an .htaccess file) but it will get rid of all other parts of Admin Tools.

Running the setup wizard again won't do anything bad. It WILL change the user and password on the /administrator folder protection and the secret URL parameter. The dire warnings are for the folks who happy finger through the wizard - next, next, next, all done! "Why am I locked out?"

I think there are a couple of things going on here. I think you have the /administrator folder password protected. That should prompt you for a user and password before you can see the login screen. That function is sensitive to changes in the version of your web server. When Admin Tools sets it up, the format of the files are changed to match your web server. If you changed servers, this could get messed up. Delete the .htaccess and .htpasswd files in the /administrator folder - NOT the root! You can set that up again from the Admin Tools screen. That may be causing the white screen on back end login.

The front end login issue is very strange. Admin Tools would not redirect you to the back end login. That's something else.

If you need to disable Admin Tools without logging in to the back end, you can do that with the instructions here: https://www.akeebabackup.com/documentation/troubleshooter/atwafissues.html.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

Baldur2630
<quote>You can do this in Joomla!'s Extensions Manager as you would any other extension.

Nope - I can login but just get a blank white screen. I didn't configure Admin Password Protection/ I didn't use your .htaccess I'm using the one from the old site where certain users are not allowed access with or without Admin Tools. quite a few Russian hacker sites which don't get locked out on Banned Geographic locations.

OK, so if I run the wizard again, it will change the login user name for admin and the password, so I can logout and log back in with the new Admin username and password. The I just have to reconfigure WAF again.

If it doesn't fix the problem, I see I can disable the Password and security string Protection from the CPanel, but I CAN login. I just get a blank screen.

Anyway, It's bed time here, so I'll pick this up in the morning. I've also asked the hosting site if it could be anything on their end.. I think maybe I should take off our artisteer created template and see if that fixes the blank screen issue.

Don't close this yet, please

dlb
OK, let's address the white screen. Something for you to do before I wake up tomorrow. Most of these steps are not cures, they just try to get an error message that we can act on.

A white page or a page with a 500 Internal Server Error is, in fact, either a .htaccess issue to a PHP fatal error in disguise.

First, let's see if it is a .htaccess issue. Try renaming the .htaccess file in your site's root to htaccess.bak If there is a .htaccess file in the site's administrator directory, try renaming it as well. If that solves the problem, the issue was with a directive in your .htaccess file. We'd like to recommend you to try removing directives from your .htaccess until you find the one which causes the problem.

If that doesn't help, the error you are receiving is in fact a PHP error in disguise. First, check your server's error logs (not the access logs) immediately after visiting the page which throws the error. There should be an exact description of the PHP fatal error which occurred. Sometimes you can find the error messages in files called error_log or error.log inside the site's root and/or administrator directories. If unsure about the error log location, please consult your host. Most likely the error logs are available in your site's cPanel, Plesk control panel or similar hosting account management facility.

If your host does not give you access to the error logs and you have access to the Joomla! administrator area, please log in to your site's back-end, go to Global Configuration, click on the Server tab and set the Error Reporting to Maximum (Joomla! 1.5) or Development (Joomla! 2.x and later). Try visiting the problem page again.

If you still get a blank page, edit your configuration.php file and put the following code right after the final closing curly brace ( this is what a curly brace looks like --> } ) but before the closing PHP tag (it looks like ?> that is a question mark and a greater-than sign):
ini_set( 'display_errors', true );
error_reporting( E_ALL ); 
Try visiting the problem page again.

If you still get a white page, please remote the two lines from your configuration.php file. Edit the .htaccess file in your site's root. If you don't have a file named .htaccess create a new one. Beware that htaccess.txt is a DIFFERENT FILE and will NOT work! Add the following to the end of the file:
php_flag display_errors On
php_value error_reporting 32767
and retry loading the problem page.

If you still get a white page, remove the two lines from your .htaccess file. Now, create a file called php.ini with the following content:
display_errors=on
error_reporting=E_ALL
and upload it into your site's root and your site's administrator directory. Retry loading the problem page.

IMPORTANT: Sometimes the error won't show. Edit your configuration.php and find the line starting with public $error_reporting and set it to:
public $error_reporting = 'development';

This instructs Joomla! to enable maximum error, warnings and notices verbosity. In 99.9% of cases it will result in the error messages being shown on the browser.

If you still get a white page, delete the php.ini files your created and choose a different host. If your host doesn't allow you to debug any PHP-related issues there is no point paying them.

Please note that if you can not understand what the PHP error message means, just copy and paste it here verbatim so that we can take a look and point you to the right direction.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

Baldur2630
The best laid plans . . . That Murphy is sitting on my chimney! Three of our sites have been down since this morning when I got up. Still down. Sunday blurs and probably cyber attacks. When they get running again, I'll do as you asked and report back. I fear that it isnt going to be today!

Website status: alert

Date: 2017-07-16 06:55:25 UTC
Name:
URL: http://www.trax-n-tabs.com
Status code: 28 - Operation timeout. The specified time-out period was reached according to the conditions.
----
Login email: [email protected]
Login url: http://www.montastic.com/

-- Montastic - Do not reply, I'm not human, I'm a computer.

Baldur2630
The site came back online. Tried logging in again and now I get the following :

A BLUE Page and the following error :
404 Not Found
The server can not find the requested page:
www.sabcolaw.com/administrator/index.php (port 443)
Please forward this error screen to www.sabcolaw.com's WebMaster.

This is in the Public_html folder error_log
[15-Jul-2017 14:44:02 UTC] PHP Parse error: syntax error, unexpected '[' in /home/osabido/public_html/components/com_contactenhanced/customFields.class.php on line 3785<br /> [15-Jul-2017 14:44:28 UTC] PHP Parse error: syntax error, unexpected '[' in /home/osabido/public_html/components/com_contactenhanced/customFields.class.php on line 3785<br /> [15-Jul-2017 20:55:04 UTC] PHP Parse error: syntax error, unexpected '[' in /home/osabido/public_html/components/com_contactenhanced/customFields.class.php on line 3785<br /> [16-Jul-2017 12:56:56 America/New_York] PHP Parse error: syntax error, unexpected '[' in /home/osabido/public_html/components/com_contactenhanced/customFields.class.php on line 3785<br /> [16-Jul-2017 13:00:36 America/New_York] PHP Parse error: syntax error, unexpected '[' in /home/osabido/public_html/components/com_contactenhanced/customFields.class.php on line 3785<br /> [16-Jul-2017 13:04:18 America/New_York] PHP Notice: Undefined offset: 0 in /home/osabido/public_html/libraries/cms/application/site.php on line 517
[16-Jul-2017 13:04:18 America/New_York] PHP Notice: Trying to get property of non-object in /home/osabido/public_html/libraries/cms/application/site.php on line 540
[16-Jul-2017 13:12:30 America/New_York] PHP Notice: Undefined offset: 0 in /home/osabido/public_html/libraries/cms/application/site.php on line 517
[16-Jul-2017 13:12:30 America/New_York] PHP Notice: Trying to get property of non-object in /home/osabido/public_html/libraries/cms/application/site.php on line 540

Is it Contacts Enhanced that's causing this?

dlb
I'm not programmer enough to be able to tell with any certainty if Contacts Enhanced is the problem. But that's the only thing that I get out of the error message. That's the place to start.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

Baldur2630
OK. We started this upgrade along with another site. We used SPUpdate for both of them. The trax-n-tabs site was 3GB of Music. it worked perfectly from the moment we ran kickstart. Both sites were backed up with Akeeba, the image transfereed to one of my CentOS 7 servers and both were upgraded the same way.

We are using the same host. the same .htaccess file, the same everything for this problem site as well. There's nothing complicated like there was with trax-n-tabs.

To obviate the Contact Enhanced. I logged in to the updated (working) 3.7 server on my machine, I completely removed all traces of Contact Enhanced (even the database). I installed Admin Tools and ran Quickstart and configured WAF exactly as it is on the trax-n-tabs site. I checked that it was working and made a backup with Akeeba. Then I cleaned everything off the broken site and re-uploaded the backup and restored. Still the same Problem.

I found this in the error log :
[16-Jul-2017 15:58:43 America/New_York] PHP Parse error: syntax error, unexpected '[' in /home/osabido/public_html/plugins/quickicon/akeebabackup/akeebabackup.php on line 274

I renamed .htaccess for the sake of completeness to .htaccess.bak - No difference. I copied the ,htaccess from (working) trax-n-tabs. No difference.

Does the error message tell you anything? My wife suggests that we restore the old site and she will just take a new copy of Joomla and re-create the entire site from scratch. My argument is, What if we get the same problem?

Do you still want me to do all the other things that you suggested?



Baldur2630
I did them anyway - here are the results

[i]Error on page:

404 Not Found

The server can not find the requested page:

www.sabcolaw.com/administrator/index.php (port 443)

Please forward this error screen to www.sabcolaw.com's WebMaster.

[/i]
1. .htaccess rename - no effect
2. Added code to bottom of configuration.php after } (there was no ?> end so I added it. - no difference.
3. Added code to end of .htaccess file. New error message :

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

No info in the server error logs that we have access to

4. Created php.ini - added code - back to original 404 error message
5. Set 'development' in configuration.php - same original error Message.


Baldur2630
Please close this Ticket, My wife decided to trash the entire thing and start over and to only install Third Party Add-ons AFTER it is working on the Hosting site. Then we will know which Add-On is causing the problem.

I do however have another problem on a different site, so I'll start a new ticket for that.

dlb
I'll look for the new ticket.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!