Jump to content

Strange timeouts in admin area when adding a client


Recommended Posts

I've posted a ticket to support relating to this problem, but was wondering if anyone else has experienced this:

 

At the moment I am adding new clients to my WHMCS system from the admin area and am experiencing a strange delay when adding a new account. I enter all the client's details and click the "Add Client" button, then have a five minute wait until the new account details screen is shown. During this period all access to the WHMCS system is held up from my browser.

 

If I open another browser I am able to navigate the front end and back end with no problems whilst the original browser window is locked up.

 

I have noticed that there are a couple of MySQL processes related to the WHMCS install in a "Sleep" state for 300 seconds. As soon as these time out the admin page proceeds to the next step.

 

I have no such delay issues when adding a client via the front end (ie. ordering page).

 

:?

Link to comment
Share on other sites

I have implemented a temporary workaround until we get a WHMCS where we can force SSL for the whole admin section via a general configuration option. I have disabled the https rewrite in ./admin/.htaccess for the ./admin/clientsadd.php script and this has stopped the timeout issue with clientsadd.php while allowing all other pages to be forced to SSL:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^clientsadd.php$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

If timeouts are found in other areas of the admin system I will have to keep adding them to the exclusion conditions shown above.

Link to comment
Share on other sites

I placed the above code into a new .htaccess file in my whmcs/admin directory (minus the clientsadd.php exclusion) and tested adding a client. It added just fine and took me to the clientsummary page without any problems.

 

Something else must be messing you up.

Link to comment
Share on other sites

I placed the above code into a new .htaccess file in my whmcs/admin directory (minus the clientsadd.php exclusion) and tested adding a client. It added just fine and took me to the clientsummary page without any problems.

 

Something else must be messing you up.

Hmmn, well it seems that the bug is only evident on certain user's setups. I now have the .htaccess as in the end of my previous post (it's been edited a couple of times but now correct) and I am able to add new clients in the admin area with no timeout delays. If I remove the clientsadd.php exclusion then I get a tedious 5 minute wait while the two MySQL threads sleep and time out.

 

I wonder if any of these factors in my hosting setup are different to yours:

Should we be comparing anything else?

Link to comment
Share on other sites

See the reply below from this post - moving discussion here to make it simpler to follow.

 

I tested the clientsadd page from a ssl connection and it worked fine, without any apparent redirect to an insecured page...

 

I then tried the original .htaccess info you provided in my whmcs admin folder and verified that going to the non ssl version of any admin page redirected me to the secure page.

 

So next, I tested the clientsadd page again, same thing - worked like a charm.

 

I looked in my general configuration and noticed I had an SSL address for "domain" so I changed that back to a non ssl address, tested, no problems.

 

I changed the WHMCS SSL System URL under general config to a non SSL url and tested, no problems.

 

I change the WHMCS System URL under general config to an SSL url (just for kicks and giggles) then tested and much to my surprise, no problems.

 

I am unable to reproduce the problem you are experiencing, and your htaccess appears to be correct...

 

Perhaps there is a problem with your apache build, or PHP? Sorry I can't offer you much more help than that.

 

You replied above with:

 

I placed the above code into a new .htaccess file in my whmcs/admin directory (minus the clientsadd.php exclusion) and tested adding a client. It added just fine and took me to the clientsummary page without any problems.

 

Something else must be messing you up.

Hmmn, well it seems that the bug is only evident on certain user's setups. I now have the .htaccess as in the end of my previous post (it's been edited a couple of times but now correct) and I am able to add new clients in the admin area with no timeout delays. If I remove the clientsadd.php exclusion then I get a tedious 5 minute wait while the two MySQL threads sleep and time out.

 

I wonder if any of these factors in my hosting setup are different to yours:

Should we be comparing anything else?

 

I have 3.1.2 installed in a subdirectory of my domain.

CentOS - WHM X v3.1.0

WHM 10.8.0

PHP 4.4.3 (suEXEC)

MySQL 4.1.21

Link to comment
Share on other sites

I have 3.1.2 installed in a subdirectory of my domain.

CentOS - WHM X v3.1.0

WHM 10.8.0

PHP 4.4.3 (suEXEC)

MySQL 4.1.21

Damn this is a good community! :D

 

Since I'm still setting up I was able to test further by moving my WHMCS installation to a subdirectory (https://domain.com/whmcs/) and now the admin system works fine forced to SSL without the clientsadd.php excusion in the admin .htaccess

 

So - the bug appears to be when WHMCS is running from the root of the domain. Hopefully if someone else is able to confirm this it can be fixed soon.

Link to comment
Share on other sites

I have it in support.domain.com which just reads folder domain.com/support.

 

If I access through domain.com/support I still have the same problem although this time after hanging it goes to "An upgrade is currently in progress". I don't still have the install diretory on the server ;)

 

Version 3.1.2

PHP 4.4.3

MySQL 4.1.20

 

Ad

Link to comment
Share on other sites

I think I just worked it out. My general config settings were:

WHMCS System URL: [url]http://whmcs.domain.com/[/url]
WHMCS SSL System URL: [url]https://whmcs.domain.com/[/url]

I just removed the trailing slash from both:

WHMCS System URL: [url]http://whmcs.domain.com[/url]
WHMCS SSL System URL: [url]https://whmcs.domain.com[/url]

And now I have no timeouts, even with my admin/.htaccess file being this:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Joy! :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated