#57 Problem register and login

Open
opened 2 years ago by alby696 · 16 comments
alby696 commented 2 years ago

Hi everyone, I have just finished installing the git successfully, both with sphinsearch and ocelot, but I have a problem that when I try to get in, the database registers me the user and not the login session and I can not log in and he presents me with this error.

Ubuntu 18.04, PHP 7.2, Mysql 5.7

Thanks for the support.

alby696

Hi everyone, I have just finished installing the git successfully, both with sphinsearch and ocelot, but I have a problem that when I try to get in, the database registers me the user and not the login session and I can not log in and he presents me with this error. Ubuntu 18.04, PHP 7.2, Mysql 5.7 Thanks for the support. alby696
toolb0x commented 2 years ago

I am having the same issue. I simply can’t seem to figure out what is causing it.

It seems like a login cookie is never set, and thus when a page is refreshed it logs me right out again. I’ve checked, and all php extensions seems to be working, so that shouldn’t be the problem.

I am having the same issue. I simply can't seem to figure out what is causing it. It seems like a login cookie is never set, and thus when a page is refreshed it logs me right out again. I've checked, and all php extensions seems to be working, so that shouldn't be the problem.
toolb0x commented 2 years ago

Been working all weekend, and still can’t seem to figure out why im unable to login.

Ive tried installing a new server from scratch, Ubuntu 18.04 with nginx and php7.2.

All extensions are working (apcu, memcache, gd and so on). It’s the same issue, with debug mode it will only show me a SQL query.

I was in contact with Spaghetti on IRC, and he also didn’t seem to be able to figure out why this happens. To clarify, im able to run other Gazelle sources like Luminance and Mifune. Just not this source.

Dumping $UserSessions and $SessionID reveals that both ID’s match, so its not a mismatch that logs out the user.

It will even sometimes update the users IP in the database: DB_MYSQL->query(

  UPDATE users_history_ips
  SET EndTime = NOW()
  WHERE EndTime IS NULL
    AND UserID = '2'
    AND IP = '')

However, the users will be logged out and redirected to login if debug mode is disabled.

Been working all weekend, and still can't seem to figure out why im unable to login. Ive tried installing a new server from scratch, Ubuntu 18.04 with nginx and php7.2. All extensions are working (apcu, memcache, gd and so on). It's the same issue, with debug mode it will only show me a SQL query. I was in contact with Spaghetti on IRC, and he also didn't seem to be able to figure out why this happens. To clarify, im able to run other Gazelle sources like Luminance and Mifune. Just not this source. Dumping $UserSessions and $SessionID reveals that both ID's match, so its not a mismatch that logs out the user. It will even sometimes update the users IP in the database: DB_MYSQL->query( UPDATE users_history_ips SET EndTime = NOW() WHERE EndTime IS NULL AND UserID = '2' AND IP = '') However, the users will be logged out and redirected to login if debug mode is disabled.
alby696 commented 2 years ago
Poster

Hi,

but what file did you change at the end?

So if I change the file and do not enable debugging the problem remains?

Only thing that the degub see him all if you leave it active.

With Debian, could this be solved?

Thank you

alby696

Hi, but what file did you change at the end? So if I change the file and do not enable debugging the problem remains? Only thing that the degub see him all if you leave it active. With Debian, could this be solved? Thank you alby696
alby696 commented 2 years ago
Poster

I just did the test to install it in a very easy way in debian 9, besides the fact that it is not HTTPS and I don’t see the images, but now I get this additional error in addition to the previous one that before with ubuntu I couldn’t see:

You appear to have cookies disabled.

It is normal that every time this warning also appears to me, I have enabled HTTPS now.

Warning: A non-numeric value encountered in /var/www/gazelle/classes/debug.class.php on line 142

alby696

I just did the test to install it in a very easy way in debian 9, besides the fact that it is not HTTPS and I don't see the images, but now I get this additional error in addition to the previous one that before with ubuntu I couldn't see: You appear to have cookies disabled. It is normal that every time this warning also appears to me, I have enabled HTTPS now. Warning: A non-numeric value encountered in /var/www/gazelle/classes/debug.class.php on line 142 alby696
twas commented 2 years ago

Got the same issue here. Did anyone find a fix or a cause yet?

Got the same issue here. Did anyone find a fix or a cause yet?
alby696 commented 2 years ago
Poster

@Spaghetti

Can you tell me which version of system, php and mysql or mariadb you use in order to do a test with your same base?

Thank you

alby696

@Spaghetti Can you tell me which version of system, php and mysql or mariadb you use in order to do a test with your same base? Thank you alby696

For the first post:

Is just a debug log , you have the debug mode activated in config.

Warning: A non-numeric value encountered in /var/www/gazelle/classes/debug.class.php on line 142

This is from your php install not from script.

For the first post: Is just a debug log , you have the debug mode activated in config. Warning: A non-numeric value encountered in /var/www/gazelle/classes/debug.class.php on line 142 This is from your php install not from script.
alby696 commented 2 years ago
Poster

Hello,

in fact I realized that the problem was memcached … solved and works for that warning, for the problem of login and registration, the continuous one.

Hello, in fact I realized that the problem was memcached ... solved and works for that warning, for the problem of login and registration, the continuous one.

The debug mode is activated in classes/config.php?

The debug mode is activated in classes/config.php?
alby696 commented 2 years ago
Poster

debug mode is enabled and also debug warnings but the problem persists with both Ubuntu and Debian, with mysql and mariadb, with php 7.2 which 7.3 …. honestly I don’t understand where the problem is

debug mode is enabled and also debug warnings but the problem persists with both Ubuntu and Debian, with mysql and mariadb, with php 7.2 which 7.3 .... honestly I don't understand where the problem is

You want to run this in production so debug mode should be disabled , the debug mode is for dev run only and will show the logs. EX: when try to acces a function like signup and login the script send a request to database, if debug mode is enabled this request will be shown like a log in browser for dev mode this will help to fiind potential errors but in production dont need such logs to be shown in browser, the debug mode need to be disabled. Also in php.ini modify error report with this: error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT display_errors = Off display_startup_errors = Off log_errors = On

Use php 7.2.

You want to run this in production so debug mode should be disabled , the debug mode is for dev run only and will show the logs. EX: when try to acces a function like signup and login the script send a request to database, if debug mode is enabled this request will be shown like a log in browser for dev mode this will help to fiind potential errors but in production dont need such logs to be shown in browser, the debug mode need to be disabled. Also in php.ini modify error report with this: error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT display_errors = Off display_startup_errors = Off log_errors = On Use php 7.2.
alby696 commented 2 years ago
Poster

I have already tried this way too but I don’t come out of it … don’t let me even enter as a sysop … when I register I see the account created but when I login I always refer to the login page … you who managed to install it and it works … can you tell me which system, mysql or mariadb you use and if I can also … what php extensions you have installed? thank you so much

I have already tried this way too but I don't come out of it ... don't let me even enter as a sysop ... when I register I see the account created but when I login I always refer to the login page ... you who managed to install it and it works ... can you tell me which system, mysql or mariadb you use and if I can also ... what php extensions you have installed? thank you so much

I use centos , but stil could work on ubuntu or debian , use mysql 5.7 (not mariadb ), php 7.2 with this extensions (curl , gd, apcu, mysql , memcached , sendmail ) , memcached server.

I use centos , but stil could work on ubuntu or debian , use mysql 5.7 (not mariadb ), php 7.2 with this extensions (curl , gd, apcu, mysql , memcached , sendmail ) , memcached server.
alby696 commented 2 years ago
Poster

Hi, I don’t know if the problem is me or not, but I did the test again like you said but the problem persists … Not if it is generated by the error of the apcu that gives me during registration with: “Registration temporarily disabled due to degraded database access (security measure)”

If you want here I am attaching the link of the main page, of info.php and apc.php

https://brokenapp.online/login.php

https://test.brokenapp.online/info.php

https://test.brokenapp.online/apc.php

Thank you

alby696

Hi, I don't know if the problem is me or not, but I did the test again like you said but the problem persists ... Not if it is generated by the error of the apcu that gives me during registration with: "Registration temporarily disabled due to degraded database access (security measure)" If you want here I am attaching the link of the main page, of info.php and apc.php https://brokenapp.online/login.php https://test.brokenapp.online/info.php https://test.brokenapp.online/apc.php Thank you alby696

if (!apcu_exists(‘DBKEY’)) { “ this is the code in signup section , !apcu_exists this look if you have in apcu the key , but if apcu has no key inserted you will get that error on reg page.

if (!apcu_exists('DBKEY')) { " this is the code in signup section , !apcu_exists this look if you have in apcu the key , but if apcu has no key inserted you will get that error on reg page.
baiyou commented 1 year ago

I also have this error, do not know how to solve

I also have this error, do not know how to solve
Sign in to join this conversation.
No Milestone
No Assignees
5 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.