Add user , but not an admin

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Philosophe
Posts: 2
Joined: Sun Jul 19, 2009 4:01 pm

Add user , but not an admin

Post 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
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Philosophe
Posts: 2
Joined: Sun Jul 19, 2009 4:01 pm

Post by Philosophe »

Great ! it's ok thanks a lot !!!
Post Reply