Unable to register a user error "Clipperz.PM.DataModel.User.exception.LoginFailed"

657 views
Skip to first unread message

jason

unread,
Aug 17, 2008, 8:47:16 AM8/17/08
to Clipperz
Hi I'm trying to get Clipperz community edition configured on my
Fedora 7 box. When I try to register a user I'm getting an error
message "Clipperz.PM.DataModel.User.exception.LoginFailed"
Hope someone can figure this one out.

I'll post my firebug console.

DEBUG: ### PRNG.readyToGenerateRandomBytes
POST http://www.cyberlair.net:8080/clipperz/php/index.php
613msclipperz (line 6991)
ParamsHeadersPostPutResponseCacheServer
Response Headers
Request Headers

{"lock":"new lock","result":"done"}

Loading...
Cookie PHPSESSID added. avunr8o4jmosclrofcakf9bkl5 www.cyberlair.net
POST http://www.cyberlair.net:8080/clipperz/php/index.php500
1.31sclipperz (line 6991)
ParamsHeadersPostPutResponseCacheServer
Response Headers
Request Headers

{"result":null}

Loading...
DEBUG: ERROR - c:
9ed12d0248b93ea6402aa7fda72b269208abe1d1a4e3f17636ff7848c88088da #
version: 0.2
POST http://www.cyberlair.net:8080/clipperz/php/index.php 7msclipperz
(line 6991)
ParamsHeadersPostPutResponseCacheServer
Response Headers
Request Headers

{"result":null}

Loading...
DEBUG: ERROR - c:
06b9a6eacd7a77b9361123fd19776455eb16b9c83426a1abbf514a414792b73f #
version: 0.1

Giulio Cesare Solaroli

unread,
Aug 17, 2008, 8:58:48 AM8/17/08
to jason...@cyberlair.net, Clipperz
Hello Jason,

first off I would suggest you to try to disable all Firefox extension
(but Firebug).

Second check, would be on the PHP side, to see if something useful is
logged there.

Hope this helps.

Best regards,

Giulio Cesare

jason

unread,
Aug 17, 2008, 9:32:32 AM8/17/08
to Clipperz
Thanks, I checked my php error log and it shows an error with bcscale.
Appears to be the same issue as another post
http://groups.google.com/group/clipperz/browse_thread/thread/0b96cd2a5a42fe6f
which BCMath was not compiled into php. I will install bcmath and post
back my results.



On Aug 17, 8:58 am, "Giulio Cesare Solaroli" <giulio.ces...@gmail.com>
wrote:
> Hello Jason,
>
> first off I would suggest you to try to disable all Firefox extension
> (but Firebug).
>
> Second check, would be on the PHP side, to see if something useful is
> logged there.
>
> Hope this helps.
>
> Best regards,
>
> Giulio Cesare
>
>
>
> On Sun, Aug 17, 2008 at 2:47 PM, jason <jason.ev...@cyberlair.net> wrote:
>
> > Hi I'm trying to get Clipperz community edition configured on my
> > Fedora 7 box. When I try to register a user I'm getting an error
> > message "Clipperz.PM.DataModel.User.exception.LoginFailed"
> > Hope someone can figure this one out.
>
> > I'll post my firebug console.
>
> > DEBUG: ### PRNG.readyToGenerateRandomBytes
> > POSThttp://www.cyberlair.net:8080/clipperz/php/index.php
> > 613msclipperz (line 6991)
> > ParamsHeadersPostPutResponseCacheServer
> > Response Headers
> > Request Headers
>
> > {"lock":"new lock","result":"done"}
>
> > Loading...
> > Cookie PHPSESSID added.  avunr8o4jmosclrofcakf9bkl5    www.cyberlair.net
> > POSThttp://www.cyberlair.net:8080/clipperz/php/index.php500
> > 1.31sclipperz (line 6991)
> > ParamsHeadersPostPutResponseCacheServer
> > Response Headers
> > Request Headers
>
> > {"result":null}
>
> > Loading...
> > DEBUG: ERROR - c:
> > 9ed12d0248b93ea6402aa7fda72b269208abe1d1a4e3f17636ff7848c88088da #
> > version: 0.2
> > POSThttp://www.cyberlair.net:8080/clipperz/php/index.php7msclipperz
> > (line 6991)
> > ParamsHeadersPostPutResponseCacheServer
> > Response Headers
> > Request Headers
>
> > {"result":null}
>
> > Loading...
> > DEBUG: ERROR - c:
> > 06b9a6eacd7a77b9361123fd19776455eb16b9c83426a1abbf514a414792b73f #
> > version: 0.1- Hide quoted text -
>
> - Show quoted text -

jason

unread,
Aug 17, 2008, 9:49:23 AM8/17/08
to Clipperz
Looking on the http://it.php.net/bc site they say "Since PHP 4.0.4,
libbcmath is bundled with PHP. You don't need any external libraries
for this extension." I am running PHP version 5.2.6 so it should have
it? On this site you have the option of downloading PHP 5.2.6 I assume
with all the BCMath functions bundled. Does anyone know how I can
check my installation to see if I have these functions and just need
to enable them? I don't like the idea of replacing my PHP on the
server its likely going to break stuff......Thanks!

On Aug 17, 9:32 am, jason <jason.ev...@cyberlair.net> wrote:
> Thanks, I checked my php error log and it shows an error with bcscale.
> Appears to be the same issue as another posthttp://groups.google.com/group/clipperz/browse_thread/thread/0b96cd2a...
> > - Show quoted text -- Hide quoted text -

jason

unread,
Aug 17, 2008, 10:21:01 AM8/17/08
to Clipperz
Looking into this further in my php.ini I found this entry
[bcmath]
; Number of decimal digits for all bcmath functions.
bcmath.scale = 0

So it does look like bcmath is compiled into my php installation?

Please have a look at my php error log maybe bcmath is not the problem
at all? I would really like to get this going. Thanks


[Sun Aug 17 09:17:03 2008] [error] [client 84.60.252.10] PHP Notice:
Undefined index: parameters in /var/www/html/clipperz/php/index.php
on line 227
[Sun Aug 17 09:17:04 2008] [error] [client 84.60.252.10] File does not
exist: /var/www/html/favicon.ico, referer: http://www.cyberlair.net:8080/clipperz/php/index.php
[Sun Aug 17 09:17:16 2008] [error] [client 84.60.252.10] File does not
exist: /var/www/html/clipperz/images/default/gradient-bg.gif, referer:
http://www.cyberlair.net:8080/clipperz/
[Sun Aug 17 09:17:16 2008] [error] [client 84.60.252.10] File does not
exist: /var/www/html/clipperz/images/default/layout, referer:
http://www.cyberlair.net:8080/clipperz/
[Sun Aug 17 09:17:37 2008] [error] [client 84.60.252.10] PHP Fatal
error: Call to undefined function bcscale() in /var/www/html/clipperz/
php/index.php on line 72, referer: http://www.cyberlair.net:8080/clipperz/
[Sun Aug 17 09:17:39 2008] [error] [client 84.60.252.10] PHP Fatal
error: Call to undefined function bcscale() in /var/www/html/clipperz/
php/index.php on line 72, referer: http://www.cyberlair.net:8080/clipperz/


On Aug 17, 9:49 am, jason <jason.ev...@cyberlair.net> wrote:
> Looking on thehttp://it.php.net/bcsite they say "Since PHP 4.0.4,

Giulio Cesare Solaroli

unread,
Aug 18, 2008, 5:29:41 AM8/18/08
to Clipperz
---------- Forwarded message ----------
From: Giulio Cesare Solaroli <giulio...@gmail.com>
Date: Mon, Aug 18, 2008 at 11:26 AM
Subject: Re: [clipperz] Re: Unable to register a user error
"Clipperz.PM.DataModel.User.exception.LoginFailed"
To: jason...@cyberlair.net


Jason,

I have just checked the output of the phpinfo() function
(http://www.cyberlair.net:8080/clipperz/php/test.php) and I have see
two issues with it:
* BCMath is not loaded, as there is no BCMath section in the output,
while it should be there;
* the quoting settings is "wrong", that is not suitable for Clipperz
deployment.

For the quoting part, you need to have magic_quotes_gpc set On for
Clipperz to work.

Hope this helps.

Best regards,

Giulio Cesare

jason

unread,
Aug 18, 2008, 9:56:23 AM8/18/08
to Clipperz
Thanks for helping. Just to put this into perspective, do I have to
replace my PHP with one that has BCMath compiled properly into it. Can
I download this module and compile it into PHP? Do you have a
recommendation?

On Aug 18, 5:29 am, "Giulio Cesare Solaroli" <giulio.ces...@gmail.com>
wrote:
> ---------- Forwarded message ----------
> From: Giulio Cesare Solaroli <giulio.ces...@gmail.com>
> Date: Mon, Aug 18, 2008 at 11:26 AM
> Subject: Re: [clipperz] Re: Unable to register a user error
> "Clipperz.PM.DataModel.User.exception.LoginFailed"
> To: jason.ev...@cyberlair.net
>
> Jason,
>
> I have just checked the output of the phpinfo() function
> (http://www.cyberlair.net:8080/clipperz/php/test.php) and I have see
> two issues with it:
>  * BCMath is not loaded, as there is no BCMath section in the output,
> while it should be there;
>  * the quoting settings is "wrong", that is not suitable for Clipperz
> deployment.
>
> For the quoting part, you need to have magic_quotes_gpc set On for
> Clipperz to work.
>
> Hope this helps.
>
> Best regards,
>
> Giulio Cesare
>
> >> Looking on thehttp://it.php.net/bcsitethey say "Since PHP 4.0.4,

Giulio Cesare Solaroli

unread,
Aug 18, 2008, 11:15:02 AM8/18/08
to jason...@cyberlair.net, Clipperz
Hello Jason,

sorry but I am not very expert in PHP (neither development nor deploy)
and I can not suggest you any best practice.

Giulio Cesare

jason

unread,
Aug 18, 2008, 1:14:25 PM8/18/08
to Clipperz
Thanks for your help we seem to be getting somewhere now. I found a
bcmath module for my system here
http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Everything/i386/os/Fedora/
I downloaded and installed php-bcmath-5.2.2-3.i386.rpm. Now when I run
the /php/test.php it says bcmath supported. It did not seem to put any
entries in my php.ini? When I try and register a user now it seemes to
make it further but then gives up and gives the same error. I checked
firebug and now their are now errors. I checked my httpd errors and I
have a new one.

[Mon Aug 18 12:27:57 2008] [error] [client 204.187.34.100] PHP
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL
result resource in /var/www/html/clipperz/php/objects/
class.database.php on line 52, referer: http://www.cyberlair.net:8080/clipperz/
[Mon Aug 18 12:28:00 2008] [error] [client 204.187.34.100] PHP
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL
result resource in /var/www/html/clipperz/php/objects/
class.database.php

Any ideas? Thanks!



On Aug 18, 11:15 am, "Giulio Cesare Solaroli"
<giulio.ces...@gmail.com> wrote:
> Hello Jason,
>
> >> >> Looking on thehttp://it.php.net/bcsitetheysay "Since PHP 4.0.4,

jason

unread,
Aug 18, 2008, 7:26:37 PM8/18/08
to Clipperz
Its WORKING! Thanks for your help Giulio. I deleted the DB and created
another one clipperz-test and it worked.

On Aug 18, 1:14 pm, jason <jason.ev...@cyberlair.net> wrote:
> Thanks for your help we seem to be getting somewhere now. I found a
> bcmath module for my system herehttp://download.fedora.redhat.com/pub/fedora/linux/releases/7/Everyth...

Giulio Cesare Solaroli

unread,
Aug 18, 2008, 7:55:41 PM8/18/08
to jason...@cyberlair.net, Clipperz
Great job Jason.

I hope you can now enjoy your Clipperz personal instance. ;-)

Giulio Cesare

Jason Evans

unread,
Aug 18, 2008, 8:03:31 PM8/18/08
to Giulio Cesare Solaroli, Clipperz
Yes thanks, the direct link is quite a handy feature.
Reply all
Reply to author
Forward
0 new messages