Add user , but not an admin
Posted: Sun Jul 19, 2009 4:20 pm
cript URL: local
Version of script: helpdesk v 2.0
Hosting company:perso
URL of phpinfo.php: PHP 5.3.0 (tried with 2.XX)
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
add user, Warning: trim() expects parameter 1 to be string, array given in C:\wamp\www\ticket\inc\common.inc.php on line 173
Write your message below:
Hello,
First, sorry for my bad english (i'm french of course) .
I am currently testing this application very impressive and i just have one anxiety :
When i want to add an user (ticket/admin/manage_users.php) ,i check many categories and features (not all, not an admin) , I alway get the following message:
Please assign user at least one category.
Under wampserver, display APACHE ERROR :
Warning: trim() expects parameter 1 to be string, array given in C:\wamp\www\ticket\inc\common.inc.php on line 173
so I modified :
COMMON.INC.PHP :
function hesk_input($in,$error=0) {
$in = trim($in);
echo "$in";
I try to add this user :
name = name
mail = mail@mail.fr
username=username
password=password
and the result is :
newnameusername
result echo : 0
Warning: trim() expects parameter 1 to be string, array given in C:\wamp\www\ticket\inc\common.inc.php on line 173 with the message "Please assign user at least one category."
I searched the subtleties of but i found no solutions. I saw that I was the only one with this problem . What do you thinck about that ?
Thancks in advance
Eric
Version of script: helpdesk v 2.0
Hosting company:perso
URL of phpinfo.php: PHP 5.3.0 (tried with 2.XX)
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
add user, Warning: trim() expects parameter 1 to be string, array given in C:\wamp\www\ticket\inc\common.inc.php on line 173
Write your message below:
Hello,
First, sorry for my bad english (i'm french of course) .
I am currently testing this application very impressive and i just have one anxiety :
When i want to add an user (ticket/admin/manage_users.php) ,i check many categories and features (not all, not an admin) , I alway get the following message:
Please assign user at least one category.
Under wampserver, display APACHE ERROR :
Warning: trim() expects parameter 1 to be string, array given in C:\wamp\www\ticket\inc\common.inc.php on line 173
so I modified :
COMMON.INC.PHP :
function hesk_input($in,$error=0) {
$in = trim($in);
echo "$in";
I try to add this user :
name = name
mail = mail@mail.fr
username=username
password=password
and the result is :
newnameusername
result echo : 0
Warning: trim() expects parameter 1 to be string, array given in C:\wamp\www\ticket\inc\common.inc.php on line 173 with the message "Please assign user at least one category."
I searched the subtleties of but i found no solutions. I saw that I was the only one with this problem . What do you thinck about that ?
Thancks in advance
Eric