*

rooman

  • ****
  • 231 posts
Delay when registering on the site
« on: August 24, 2022, 04:25:18 PM »
Hello,

strange problem
When registering on the site on the local server or public site
It takes approximately 11 seconds for the recording to complete
This time is too much
I tested your site
Recording only took 3 seconds
https://zara.mb-themes.com/

I disabled all plugins and same problem
I changed OSClass version from 8.0.2 to 8.0, same problem
I upgraded the database, same problem

I created a new database, a new Osclass copy, a new folder, and a Sigma Osclass Theme
I found a small change only, the recording time is approximately 7-8 seconds

htaccess file is a cause where its data
Code: [Select]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Sometimes a message appears when registering
Probable invalid request.

What is the reason for this delay?
Is there anything else causing the problem?

thank you
« Last Edit: August 24, 2022, 04:32:49 PM by rooman »

*

MB Themes

Re: Delay when registering on the site
« Reply #1 on: August 25, 2022, 09:30:50 AM »
Most probably related to mail server misconfiguration.
Probable imvalid request should be problem with csrf token validation
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: Delay when registering on the site
« Reply #2 on: August 25, 2022, 02:21:54 PM »
There is no problem with the mail server
When the server is tested with a mail message
The test is completed in 3 seconds
A message arrives in the mail
The settings are correct, but I do not know the reason for this delay
If the hosting
Why is the problem also on the local server?

*

MB Themes

Re: Delay when registering on the site
« Reply #3 on: August 25, 2022, 03:20:31 PM »
Smtp auth can take time. You should get response within second.
Image processing and upload can take time as well (make sure to use ImageMagick library)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: Delay when registering on the site
« Reply #4 on: August 25, 2022, 03:53:32 PM »
( ImageMagick library )
The library is activated
The problem is that there are no errors in the error log

The problem is on the registration page
I tried multiple themes and same problem

*

rooman

  • ****
  • 231 posts
Re: Delay when registering on the site
« Reply #5 on: August 25, 2022, 04:56:10 PM »
The problem is when logging in for the first time
This annoying message appears
probable invalid request.  :'(
Then when you try again, the registration is done but
It takes about 12 seconds to send data
I changed a new database to zero
And the same problem

*

MB Themes

Re: Delay when registering on the site
« Reply #6 on: August 25, 2022, 05:52:39 PM »
It could be BCRYPT strength as well, but that would mean your server is super low.
I remember it was somewhere discussed to decrease level of security with bcrypt, but it may invalidate passwords of existing users
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: Delay when registering on the site
« Reply #7 on: August 26, 2022, 10:41:15 AM »
Thank you
I do the following:
Code: [Select]
define('BCRYPT_COST', 8);  I also tried
Code: [Select]
define('BCRYPT_COST', 10 );The problem is still there
I remember doing two things before the problem
It might have something to do with it
1 - I added
Code: [Select]
define('OSC_CACHE', 'memcache');
    $_cache_config[] = array(
        'default_host' => '127.0.0.1',
        'default_port' => 11211,
        'default_weight' => 1
    );
to config file
An error appeared in the log file
As it turned out that the hosting does not support memcache

2 - I deleted the oc_t_user file from the database
And replace it with an updated file, but a primer key error appeared
And you solved the problem

/* Or is it a .htaccess file?
It has something to do with the problem */

Is there a relationship between them?
Or is the problem due to one of two things?

Thank you again
« Last Edit: August 26, 2022, 10:48:28 AM by rooman »

*

MB Themes

Re: Delay when registering on the site
« Reply #8 on: August 26, 2022, 12:50:31 PM »
None of those would cause such delay
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: Delay when registering on the site
« Reply #9 on: August 26, 2022, 01:19:57 PM »
Is there a way to see which commands are being processed in the background?
or mistakes
Or sites that check background orders?

*

MB Themes

Re: Delay when registering on the site
« Reply #10 on: August 26, 2022, 02:58:26 PM »
@rooman
Consult with your hosting provider.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: Delay when registering on the site
« Reply #11 on: August 26, 2022, 03:03:21 PM »
Host has been contacted
But they don't have any problem
I tried CloudFlare
Then I will see
Maybe the problem will be over
« Last Edit: August 26, 2022, 03:55:02 PM by rooman »

*

rooman

  • ****
  • 231 posts
Re: Delay when registering on the site
« Reply #12 on: August 28, 2022, 04:49:38 PM »
Why is the console page in the local server not showing errors on the page
While on the host appear errors

Quote
Uncaught TypeError: Cannot read properties of null (reading 'appendChild')
« Last Edit: August 28, 2022, 04:51:52 PM by rooman »