Getting Wrong username password error

120 views
Skip to first unread message

sunny kanade

unread,
Feb 15, 2014, 1:35:32 AM2/15/14
to improvemyc...@googlegroups.com
Hi,

I have installed improve my city component on my Joomla site and also published mobile app on Google play. It worked for few days, After few days, users started getting "Wrong username and password" error message.

When I debugged the android code, I found that request is sent to server for authentication but in response we are getting this error.

Please help me out, users are not able to login to mobile app. It's on high priority.

Thanks in advance.

Regards,
Sunny

Dimitrios Ververidis

unread,
Feb 15, 2014, 7:23:00 AM2/15/14
to improvemyc...@googlegroups.com

1) Did you use SSL and your ssl certificate expired ?
2) Did you change the APIKEY in json controler in Joomla IMC component ?

BR,
Dimitrios

Barnabie Opiyo

unread,
Feb 16, 2014, 11:20:45 AM2/16/14
to improvemyc...@googlegroups.com
Hi, did this error ever get resolved, am getting the same issue. I followed ALL  instructions from github and previous posts, I have enabled a self signed SSL certificate on my server. Earlier I decided to run the emulator in debug mode and when you try to login the output is as below;

SecurityMD5:AuthFun:No value for id

I was also going through some of the source files and I noticed the file;


....some options have "?option=com_improvemycity&task=" but others don't. Don't know if it makes a difference. Am not really a coder, just an 
observation I made

Barnabie Opiyo

unread,
Feb 16, 2014, 11:24:14 AM2/16/14
to improvemyc...@googlegroups.com
Also..when I click on "guest" app crashes both on emulator and Physical device. I have tried in Gingerbread, ice-cream sandwich and kitkat...all same results


On Saturday, 15 February 2014 09:35:32 UTC+3, sunny kanade wrote:

Barnabie Opiyo

unread,
Feb 16, 2014, 12:02:22 PM2/16/14
to improvemyc...@googlegroups.com
Sorry for the many post, but I just bought a SSL certificate from Comodo and am still getting the same error.. my domain.



On Saturday, 15 February 2014 09:35:32 UTC+3, sunny kanade wrote:

Dimitrios Ververidis

unread,
Feb 16, 2014, 1:30:26 PM2/16/14
to improvemyc...@googlegroups.com
Hi, you must have for each one of the categories a png image, otherwise the map can not be loaded and the app crashes.
BR,
Dimitrios

Barnabie Opiyo

unread,
Feb 16, 2014, 11:40:31 PM2/16/14
to improvemyc...@googlegroups.com
Thanks for the reply, but did you see my other posts above

Dimitrios Ververidis

unread,
Feb 17, 2014, 8:01:49 AM2/17/14
to improvemyc...@googlegroups.com
Have you replaced the http with https in Constants_API.java
The old versions in Google play won't work if they were set up with http and now you use https.
Which is the app name ?

Dimitrios Ververidis

unread,
Feb 17, 2014, 10:51:16 AM2/17/14
to improvemyc...@googlegroups.com
the correct setup for https is 

/** Transmitting protocol */
public static String COM_Protocol   = "http://";

/** Secure transmitting protocol. If your server supports SSL then this should be https:// */
public static String COM_Protocol_S = "https://";

Dimitrios Ververidis

unread,
Feb 17, 2014, 10:55:34 AM2/17/14
to improvemyc...@googlegroups.com
I 've tried to go to your site: https://smartcity.machakosgov.tk/

and I can not.

The reason is an error on the SSL:

Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have.
Error code: ERR_SSL_PROTOCOL_ERROR

Redes

unread,
Feb 18, 2014, 4:55:36 AM2/18/14
to improvemyc...@googlegroups.com
Hi all

I have the same odd problem...

I installed IMC on a demo website (demo.mysite.com), compiled IMC mobile and everything works ok, i can log and see/create issues.
Now i installed a live site (realworld.mysite.com), recompiled IMC mobile app with the new server address but i cannot login, gives me the "Wrong username and password" error... If i change back the server address to "demo.mysite.com" it works ok... I checked both web sites and they are equal, the API key are the same (default one), i'm using http (not https), and all the categories have  PNG image...
I have also created the same user on both sites and i can login if i use the website, so it is not a joomla login problem...

Any ideas?

Regards

Redes

unread,
Feb 18, 2014, 6:00:12 AM2/18/14
to improvemyc...@googlegroups.com
Well, after struggling with this error i think i found the problem...

I compared the joomla version om my working site (demo) with the non-working site (realworld), they are different. Demo site is 2.5.16 and realworld is 2.5.18.
I search the differences between those two versions and guess what...

"...Also with this release, the enhanced password hashing via PHPass, available in Joomla 3.2.1, is now used with the 2.5 series." 

So, from 2.5.18 version, joomla changed the password mechanism, and i think that's what is causing all those login problems.

Can peolple check their joomla versions and post here?
Dimitrios, can you pleas check the mobile code to see if this is causing the login problem?

Regards


Message has been deleted

Dimitrios Ververidis

unread,
Feb 19, 2014, 9:21:33 AM2/19/14
to improvemyc...@googlegroups.com
Hi Barnabie,

I have downloaded your app, opened the eclipse, saw the LogCat panel errors, and I got the message:

02-19 16:08:26.015: E/lights(2238): write_int failed to open /sys/class/leds/keyboard-backlight/brightness

The app can not update the categories icons probably due to wrong paths. Can you send me at ververid at iti dot gr the source code, and the actual paths that issue images and categories images are stored in your server.

Also I noticed that the web IMC is not working correctly because when I click issue 1 I get :



 instead of the correct:


Ask this issue to the IMC web google group "ImproveMyCity App".

BR,
Dimitrios











On Monday, February 17, 2014 6:40:31 AM UTC+2, Barnabie Opiyo wrote:

Dimitrios Ververidis

unread,
Feb 19, 2014, 9:23:46 AM2/19/14
to improvemyc...@googlegroups.com
Hi Redes, 

your sites (demo and realworld) are down. 
If you continue working on IMC please send me the app or the source code to test it. 

BR,
Dimitrios

Barnabie Opiyo

unread,
Feb 20, 2014, 6:18:55 AM2/20/14
to improvemyc...@googlegroups.com
I was moving my site, its back up. Here is the source code 


I manage to get everything working on the app except logging in. I also noticed when I enable ssl, the map doesnt load. it keeps updating forever ... :(

Redes

unread,
Feb 20, 2014, 7:19:05 AM2/20/14
to improvemyc...@googlegroups.com
Hello Dimitrios

Those links are not the real ones, i will send you by email the correct addresses.

Regards

Barnabie Opiyo

unread,
Feb 20, 2014, 7:25:26 AM2/20/14
to improvemyc...@googlegroups.com
Which links are wrong???


On Saturday, 15 February 2014 09:35:32 UTC+3, sunny kanade wrote:

Bassam Alaoui

unread,
May 19, 2014, 5:34:12 AM5/19/14
to improvemyc...@googlegroups.com

Hi everyody , 
I'm working on a french version of the application and i face same problems : 
-Application crash when i try to log guest 
-I got " wrong username & password when i try to login 

Redes

unread,
May 19, 2014, 7:03:09 AM5/19/14
to improvemyc...@googlegroups.com
Not sure about crash issues, but i had login problems because of the joomla version. Check if you are using the latest IMC version that fixed that problem.

Regards

Dimitrios Ververidis

unread,
May 19, 2014, 7:27:21 AM5/19/14
to improvemyc...@googlegroups.com
Hi Bassam,

- Have you put png icons for your categories in Joomla ?

- Have you enabled JSON controller in Joomla ?

- Which version of IMC do you have for joomla ? Can you provide the url of your site to take a look ?

Best Regards,
Dimitrios, 
Android developer, ImproveMyCity

Dimitrios Ververidis

unread,
May 19, 2014, 7:59:15 AM5/19/14
to improvemyc...@googlegroups.com
In order to enable JSON controller see at the bottom of this web page:



Also if you have a french version of strings.xml, it would be nice to sent it via email!

Tomislav Jakopčić

unread,
Jun 30, 2014, 12:25:16 PM6/30/14
to improvemyc...@googlegroups.com
hi,
in last three weeks I have installed web app on http://48.krizevci.hr (joomla is 2.5.21 after updates), and this weekend I tried to compile android app and 'wrong useername or password' appearing (api keys are identical, json is enabled).
what am I doing wrong ?

thanks

Ioannis Tsampoulatidis

unread,
Jun 30, 2014, 12:30:45 PM6/30/14
to Tomislav Jakopčić, improvemyc...@googlegroups.com
Hello,
please make sure you have install the latest version from https://github.com/icos-urenio/Improve-my-city




--
Donate
To help us make Improve My City better
http://www.improve-my-city.com/#downloadSupport
---
You received this message because you are subscribed to the Google Groups "ImproveMyCity-Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to improvemycity-mo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tomislav Jakopčić

unread,
Jun 30, 2014, 12:44:27 PM6/30/14
to improvemyc...@googlegroups.com, new...@gmail.com
hi,
I think it is latest build (3 weeks old).

here are data from improvemyciti.xml:

<extension type="component" version="2.5" method="upgrade">
    <name>com_improvemycity</name>
    <creationDate>24 February 2014</creationDate>
    <copyright>Copyright (C) 2011 - 2014 URENIO Research Unit. All rights reserved.</copyright>
    <license>GNU Affero General Public License version 3 or later; see LICENSE.txt</license>
    <author>Ioannis Tsampoulatidis for the URENIO Researh Unit</author>
    <authorEmail>in...@urenio.org</authorEmail>
    <authorUrl>http://www.urenio.org/</authorUrl>
To unsubscribe from this group and stop receiving emails from it, send an email to improvemycity-mobile+unsub...@googlegroups.com.

Dimitrios Ververidis

unread,
Jul 1, 2014, 2:31:54 AM7/1/14
to improvemyc...@googlegroups.com, new...@gmail.com
Hi Tomislav,

- In improvemycity.xml you should have <version>2.5.8</version>
- JSON key and any password and username should be less than 16 chars.

BR,
Dimitrios
Android Developer IMC

Tomislav Jakopčić

unread,
Jul 1, 2014, 5:16:58 AM7/1/14
to improvemyc...@googlegroups.com, new...@gmail.com
hi Dimitrios,
- version is 2.5.8
- json key is 15 numbers, username and password are 4 letters
- today i tried on fresh re-installed computer with vista, eclipse and java jdk 8 test on samsung galaxy 4 mini (android 4.2.2) and same i s happening. registration dont work (reports error), Guest work but without google maps shown

questions:
- in Constants_API.java under String phpExec path is folder where component is installed? like "/components/com_improvemycity"?
- under String remoteImages path is "/images" (where I have uploaded images for categories)?

Tomislav Jakopčić

unread,
Jul 1, 2014, 5:25:39 AM7/1/14
to improvemyc...@googlegroups.com, new...@gmail.com
after deleting under String remoteImages path "/images" and leaving only "/" I can register

login with newly created username and pass reporting error and in logcat there is folloeing:

07-01 11:22:32.520: D/ImproveMyCity(22493): SecurityMD5:AuthFun:Value <html><body>< of type java.lang.String cannot be converted to JSONObject

Dimitrios Ververidis

unread,
Jul 1, 2014, 7:25:53 AM7/1/14
to improvemyc...@googlegroups.com, new...@gmail.com
you are not calling the correct authorization url and the joomla returns a "Not found" web page with html and body tags. 

Tomislav Jakopčić

unread,
Jul 1, 2014, 8:39:30 AM7/1/14
to improvemyc...@googlegroups.com, new...@gmail.com
how can I correct this? and where?

Tomislav Jakopčić

unread,
Jul 1, 2014, 9:00:30 AM7/1/14
to improvemyc...@googlegroups.com, new...@gmail.com
omg, in constants_api i have done this:

        /** Server path of application */
    public static String phpExec        = "/";
   
    /** Server path of issue images */
    public static String remoteImages   = "/components/com_improvemycity";


and now I can login but then app crash

Tomislav Jakopčić

unread,
Jul 2, 2014, 4:32:37 AM7/2/14
to improvemyc...@googlegroups.com, new...@gmail.com
so, I have deleted everything from Eclipse and started again and now everything is working ok.
-api key is 16 numbers long
-both server paths are "/"

all is now needed is translation.

thank You for help and useful application!

Dimitrios Ververidis

unread,
Jul 3, 2014, 8:26:03 AM7/3/14
to improvemyc...@googlegroups.com, new...@gmail.com
You can check in Transifex for Improve My City project.

D.
Reply all
Reply to author
Forward
0 new messages