tel8618217223380 / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

Better error handling in installation #256

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi.

got 1.8.0.2 and trying to install via sqlite.
i just get a blank site after creating the admin user?
why?

Original issue reported on code.google.com by Marc....@gmail.com on 30 May 2011 at 7:45

GoogleCodeExporter commented 9 years ago
Apache error log shows:

[Mon May 30 09:57:49 2011] [error] [client 217.92.134.222] MOLLIFY ERROR: 
ServiceException: INVALID_CONFIGURATION=Error starting transaction: 14, 
referer: https://data.cyp-it.com/mollify/backend/install/
[Mon May 30 09:57:49 2011] [error] [client 217.92.134.222] MOLLIFY ERROR: 
{0:{file:/var/www/files.cyp-it.com/htdocs/mollify/backend/install/sqlite/SQLiteI
nstaller.class.php, line:181, function:startTransaction, 
class:MollifySQLiteDatabase, type:->, args:{}}, 
1:{file:/var/www/files.cyp-it.com/htdocs/mollify/backend/install/sqlite/SQLiteIn
staller.class.php, line:176, function:install, class:SQLiteInstaller, type:->, 
args:{}}, 
2:{file:/var/www/files.cyp-it.com/htdocs/mollify/backend/install/sqlite/SQLiteIn
staller.class.php, line:142, function:onPhaseAdmin, class:SQLiteInstaller, 
type:->, args:{}}, 
3:{file:/var/www/files.cyp-it.com/htdocs/mollify/backend/install/sqlite/SQLiteIn
staller.class.php, line:99, function:onPhase, class:SQLiteInstaller, type:->, 
args:{0:admin}}, 
4:{file:/var/www/files.cyp-it.com/htdocs/mollify/backend/install/index.php, 
line:32, function:process, class:SQLiteInstaller, type:->, args:{}}}, referer: 
https://data.cyp-it.com/mollify/backend/install/

Original comment by Marc....@gmail.com on 30 May 2011 at 8:00

GoogleCodeExporter commented 9 years ago
Ok i tried this: i copied mollify.db just to /tmp and chmod 777 and updated 
configuration.. this worked.. but why ?!

Original comment by Marc....@gmail.com on 30 May 2011 at 11:24

GoogleCodeExporter commented 9 years ago
Ok was just a right problem.. sorry

Original comment by Marc....@gmail.com on 30 May 2011 at 11:35

GoogleCodeExporter commented 9 years ago
But a error msg after the UserAdd would be helpful !

Original comment by Marc....@gmail.com on 30 May 2011 at 11:35

GoogleCodeExporter commented 9 years ago
Yes, I agree. I'll see if I can improve the error handling.

Original comment by samuli.j...@gmail.com on 30 May 2011 at 4:22

GoogleCodeExporter commented 9 years ago
During registration time, If I am signing with registered email then I got one 
message like "Registration Failed, Please try again later" and I want to 
display custom message like "User already exists with same email", so how Is it 
possible ?

Thanks.

Original comment by john.bot...@gmail.com on 4 Feb 2014 at 7:15

GoogleCodeExporter commented 9 years ago
In Console We are getting "User already exists with the same email" message but 
not in the popup. I want to display in popup

Original comment by john.bot...@gmail.com on 4 Feb 2014 at 7:32

GoogleCodeExporter commented 9 years ago
Service does not report this case any differently to the client, so in current 
version it is not possible. But I've now fixed this, and it will be in next 
release.

Original comment by samuli.j...@gmail.com on 4 Feb 2014 at 10:21

GoogleCodeExporter commented 9 years ago
Can you please tell me How we can fix or manage ? Becasue I want to do in my 
version

I have 2.2.9 version.

Original comment by john.bot...@gmail.com on 4 Feb 2014 at 12:32

GoogleCodeExporter commented 9 years ago
In short, it's this commit: 
https://github.com/sjarvela/mollify/commit/c85e97dff199a84a62258b6a17b32b59e60a7
91b

The version you are using, is too far from latest version, so you cannot just 
copy the files. So you need to manually make the same changes.

Original comment by samuli.j...@gmail.com on 4 Feb 2014 at 12:53

GoogleCodeExporter commented 9 years ago
I did manually change as you suggest on above link, but still I am getting 
default message.

Please,

Original comment by john.bot...@gmail.com on 5 Feb 2014 at 10:30

GoogleCodeExporter commented 9 years ago
For 2.2 version also need to change in mollify.js

Fixed, thanks

Original comment by john.bot...@gmail.com on 5 Feb 2014 at 10:44

GoogleCodeExporter commented 9 years ago
I get the proper message in front-end, but when I am login in backend and 
trying to add registered email again in the Registration module then It's given 
me very long error instead of that I need simple message which is coming on 
front-end.

Thanks for your hardwork

Original comment by john.bot...@gmail.com on 5 Feb 2014 at 2:15

GoogleCodeExporter commented 9 years ago
This fix is in 
https://github.com/sjarvela/mollify/commit/c6e5f12714b7f43c009304b251e5b97c5e53e
abf

But in older versions, don't use "that.mollify" but just "mollify"

Original comment by samuli.j...@gmail.com on 5 Feb 2014 at 4:38

GoogleCodeExporter commented 9 years ago
Thank you very much, you are genius man.

Original comment by john.bot...@gmail.com on 6 Feb 2014 at 5:53