Page 1 of 1

Add user , but not an admin

Posted: Sun Jul 19, 2009 4:20 pm
by Philosophe
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

Posted: Tue Jul 21, 2009 3:06 pm
by Klemen
Try this file which is updated for PHP 5.3.

Download this file and upload it to the "inc" folder instead of the original one:
http://www.phpjunkyard.com/extras/hesk_php53_common.zip

Posted: Tue Jul 21, 2009 5:39 pm
by Philosophe
Great ! it's ok thanks a lot !!!