directadmin search buttons

vitasis

Verified User
Joined
Nov 2, 2009
Messages
20
Location
Lithuanian
I have problems this directadmin search. There are two buttons in Admin Level search by domain and user and they don't works for me. When i type to search for example user "vitasis" i have this address: mywebsite:2222/CMD_ALL_USER_SHOW?comparison1=contains&comparison8=contains&value1=&value8=vitasis&value=vitasis

Search nothing found, but i have this user this name "vitasis".
Where can be problem?
 
It works sporadically. I just checked two servers both running the same version of DA. One searches and the other does not.
 
when you search, are you clicking on the actual button or pressing "Enter" ?

I've found it to be OK.
 
I am pressing the button. It works on some servers and not on others. This is not the first thread with this issue.
 
I almost agree with Floyd. For me it works for some entries and not others.

I almost always end up speeding up the process this way:

I use the enter key.

That way if it comes up empty, I can just use the enter key again, without waiting more than a half second or so, without even lifting my finger :).

Jeff
 
Hello,

Thanks vitasis, the output you've provided is telling us what's going wrong, we just need to figure out why.

The form has 2 key values:
value1 and value8

by default, both are blank, and both are hidden in the form.
value1 is for usernames
value8 is for domains

When either button is clicked, a JavaScript function will set the value1 or value8 to the "value" typed in (the name of the actual search field).

Now in the url you've pasted, value8 is holding the username.. which means the form thinks that the "Domain" button was clicked. I'm not sure if this is true or not. Going over the code, the "logic" is:
if user, set the value1, else set value 8
So, it's possible that the check to see if user was selected is failing.. I'm not sure why (perhaps 'type' is a reserved javascript name).

The fact that this is random makes it quite tricky to debug. Now we know what we're looking at, for anyone who is affected by this, see if you can spot any patterns in the setup conditions to duplicate it..eg: if you can get it from logging in and submitting it right away, or if you need to use your browser's "back" button to get it to cause the error... etc... I'm having troubles getting it to trigger the issue at all.

John
 
John,

For example, I have many domains with the word nobaloney in them. When I type nobaloney into the main menu form and press the enter key, I get some of them. When I press the enter again, I get all of them.

Email me if you'd like to login to my server for testing; it's a working system but I trust you :).

Jeff
 
Back
Top