? Success

User tests: Successful: Unsuccessful:

avatar alikon
alikon
18 Aug 2015

Steps to reproduce the issue

in Administration : System -> Global configuration - Database setting
accidentally change for example the hostname from localhost to localost and save

j35dev administration global configuration

Expected result

Some warning message

Actual result

Error displaying the error page: Application Instantiation Error: Could not connect to MySQL.

Now you are not able to login/access your site cause db settings are changed to the wrong settings.

After apply the pr

you got an error message and wrong configuration settings data are not saved
j35dev administration global configuration-errmsg

Votes

# of Users Experiencing Issue
2/2
Average Importance Score
3.00

avatar alikon alikon - open - 18 Aug 2015
avatar alikon alikon - change - 18 Aug 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Aug 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 18 Aug 2015
Category UI/UX
avatar zero-24 zero-24 - change - 18 Aug 2015
Easy No Yes
avatar zero-24
zero-24 - comment - 18 Aug 2015

Looks great. Thanks.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7721.

avatar zero-24 zero-24 - test_item - 18 Aug 2015 - Tested successfully
avatar zero-24
zero-24 - comment - 18 Aug 2015

maybe later we can expand this also (with a different PR) do the same for Mailing, Session & Caching (e.g. if we use redis memcache etc.).


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7721.

avatar alikon
alikon - comment - 18 Aug 2015

yes for sure caching & session wrong settings should be prevented as well
as per #7659 (comment)

avatar AlexRed
AlexRed - comment - 18 Aug 2015

@test Working good to me. Successful test.

avatar zero-24 zero-24 - alter_testresult - 18 Aug 2015 - AlexRed: Tested successfully
avatar zero-24 zero-24 - change - 18 Aug 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 18 Aug 2015

Thanks for testing :smile: and this PR ;) If we get the CS PR merged we get this PR RTC ;)


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7721.

avatar joomla-cms-bot joomla-cms-bot - change - 18 Aug 2015
Labels Added: ?
avatar waader
waader - comment - 18 Aug 2015

@alikon Thanks for implementing! I tested with mysqli driver and everything works as expected. Then I selected pdomysql, saved and after that I change the Host followed by another save. Now I get this error:

Warning: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Der angegebene Host ist unbekannt. in C:\Program Files (x86)\Ampps\www\joomla34\libraries\joomla\database\driver\pdo.php on line 291
Error displaying the error page: Application Instantiation Error: Could not connect to PDO: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Der angegebene Host ist unbekannt.

avatar zero-24
zero-24 - comment - 18 Aug 2015

hmm just a random idea @alikon. Maybe check with a try catch? to catch the error by @waader

avatar zero-24 zero-24 - change - 18 Aug 2015
Status Ready to Commit Pending
avatar zero-24 zero-24 - alter_testresult - 18 Aug 2015 - waader: Tested unsuccessfully
avatar zero-24 zero-24 - change - 18 Aug 2015
Labels Removed: ?
avatar n9iels
n9iels - comment - 19 Aug 2015

works good for me on my MAMP server tested with MySQLi. Like this feature verry much :+1:

avatar watchfulli-dev
watchfulli-dev - comment - 20 Aug 2015

@test After applying the patch no more mysql error, instead it shows:

Error
Could not connect to database.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7721.

avatar watchfulli-dev watchfulli-dev - test_item - 20 Aug 2015 - Tested successfully
avatar alikon
alikon - comment - 20 Aug 2015

@waader can you re-test ?, should i've fixed for the PDO driver

avatar zero-24
zero-24 - comment - 20 Aug 2015

Works here :+1: . Thanks @alikon Just a very smal CS PR ;)

avatar zero-24 zero-24 - alter_testresult - 20 Aug 2015 - AlexRed: Not tested
avatar waader
waader - comment - 20 Aug 2015

Works for me too! Thanks @alikon and @zero-24.

avatar waader waader - test_item - 20 Aug 2015 - Tested successfully
avatar zero-24 zero-24 - change - 20 Aug 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 20 Aug 2015

Thanks :+1: Moving to RTC :smile:


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7721.

avatar joomla-cms-bot joomla-cms-bot - change - 20 Aug 2015
Labels Added: ?
avatar kesh52 kesh52 - test_item - 20 Aug 2015 - Tested successfully
avatar timhaeuser timhaeuser - test_item - 20 Aug 2015 - Tested successfully
avatar kesh52
kesh52 - comment - 20 Aug 2015

works good for me


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7721.

avatar timhaeuser
timhaeuser - comment - 20 Aug 2015

good Feature, works!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7721.

avatar hitchblade
hitchblade - comment - 20 Aug 2015

I've open the System -> Global Configuration page. And then on the Tab 'Servers' I changed the Host-Name to 'localhostn'. A Error appear with the following Text: "Could not connect to database."


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7721.

avatar hitchblade hitchblade - test_item - 20 Aug 2015 - Tested successfully
avatar tflm84 tflm84 - test_item - 20 Aug 2015 - Tested successfully
avatar tflm84
tflm84 - comment - 20 Aug 2015

works!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7721.

avatar zero-24 zero-24 - change - 20 Aug 2015
Milestone Added:
avatar zero-24 zero-24 - change - 20 Aug 2015
Milestone Removed:
avatar xsability
xsability - comment - 21 Aug 2015

It works fine!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7721.

avatar xsability xsability - test_item - 21 Aug 2015 - Tested successfully
avatar zero-24 zero-24 - change - 25 Aug 2015
Milestone Added:
avatar zero-24 zero-24 - change - 25 Aug 2015
Milestone Added:
avatar bullet64
bullet64 - comment - 29 Aug 2015

Tested, works for me.

avatar Kubik-Rubik Kubik-Rubik - change - 1 Sep 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-09-01 18:12:59
Closed_By Kubik-Rubik
avatar Kubik-Rubik Kubik-Rubik - close - 1 Sep 2015
avatar joomla-cms-bot joomla-cms-bot - close - 1 Sep 2015
avatar Kubik-Rubik Kubik-Rubik - reference | e606d12 - 1 Sep 15
avatar Kubik-Rubik Kubik-Rubik - merge - 1 Sep 2015
avatar Kubik-Rubik Kubik-Rubik - close - 1 Sep 2015
avatar joomla-cms-bot joomla-cms-bot - change - 1 Sep 2015
Labels Removed: ?
avatar Kubik-Rubik
Kubik-Rubik - comment - 1 Sep 2015

Thank you @alikon and all testers! Merged.

avatar kathastaden kathastaden - test_item - 24 Sep 2015 - Tested successfully

Add a Comment

Login with GitHub to post a comment