Can't save settings - PARSE ERROR

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Can't save settings - PARSE ERROR

Post by vinman57 »

Script URL: http://www.cybermidi.com/helpdesk
Version of script: 2.2
Hosting company: powweb
URL of http://www.cybermidi.com/helpdesk/phpinfo.php:
URL of session_test.php: http://www.cybermidi.com/helpdesk/
What terms did you try when SEARCHING for a solution:

Write your message below: Hesk was working fine, then suddenly attachments no longer worked. I had the same path problems as other have had, although I haven't touched the admin section in a year.

For some reason, I noticed that the path set was to /admin - which I'm pretty sure is wrong. So I downloaded path.php and ran it, then tried to paste it.

However, any time I try to save my settings I get:

Parse error: syntax error, unexpected ';', expecting ']' in /hermes/web02/b1371/pow.cybermidi/htdocs/helpdesk/admin/admin_settings_save.php on line 274

Also, path.php showed my path as

/hermes/web02/b1371/pow.cybermidi/htdocs/helpdesk

In the settings, it shows System/Root Path as:
/hermes/web02/b1371/pow.cybermidi/htdocs/helpdesk/admin ( I don't know if that's what it is supposed to show)

In the settings FILE, it shows
/hermes/web02/b1371/pow.cybermidi/htdocs/helpdesk

Either way, I cannot "SAVE SETTINGS due to that parse error
Thanks
Please advise
Last edited by vinman57 on Thu Nov 11, 2010 11:36 pm, edited 1 time in total.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Can't save settings - PARSE ERROR

Post by Klemen »

Upload the original admin_settings_save.php file again, yours was edited.
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
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: Can't save settings - PARSE ERROR

Post by vinman57 »

Ok, however I still have the problem - Cannot move file to the attachments folder, please check your server path settings

My host say contact developer about server path. But I read a solution you provided to someone else and edited attachements_inc.php to get this:
DEBUG:

FILES:
Array
(
[attachment] => Array
(
[name] => Array
(
[1] => video-script.txt
[2] =>
[3] =>
)

[type] => Array
(
[1] => text/plain
[2] =>
[3] =>
)

[tmp_name] => Array
(
[1] => /hermes/web02/b1371/pow.cybermidi/htdocs/cgi-bin/tmp/phprM5OBK
[2] =>
[3] =>
)

[error] => Array
(
[1] => 0
[2] => 4
[3] => 4
)

[size] => Array
(
[1] => 1350
[2] => 0
[3] => 0
)

)

)


COPY TO: /hermes/web02/b1371/pow.cybermidi/htdocs/helpdesk/attachments/H69BB5LY1M_865fc3bd7a423731d80a48174d6bd6bb.txt

IS WRITABLE: YES
What do YOU see here? I also uploaded the required files you want (phpinfo & session_test to the script folder). Can "TMP NAME" be the problem here?

Hope you can assist.
hostwebservice.com
Posts: 45
Joined: Mon Dec 18, 2006 3:20 pm

Re: Can't save settings - PARSE ERROR

Post by hostwebservice.com »

Are you sure of this path ?

/hermes/web02/b1371/pow.cybermidi/htdocs/helpdesk/attachments/H69BB5LY1M_865fc3bd7a423731d80a48174d6bd6bb.txt

If you use plesk this should read httpdocs
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: Can't save settings - PARSE ERROR

Post by vinman57 »

Have no idea what plesk is.

But my path has always contained HTDOCS - and the path.php file confirmed that.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Can't save settings - PARSE ERROR

Post by Klemen »

Try setting the serve rpath to exactly this:
/hermes/web02/b1371/pow.cybermidi/htdocs/helpdesk
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
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: Can't save settings - PARSE ERROR

Post by vinman57 »

Klemen,
that IS my path and I've been using that.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Can't save settings - PARSE ERROR

Post by Klemen »

So what is the EXACT error message then if you enable Debug mode??
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
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: Can't save settings - PARSE ERROR

Post by vinman57 »

Error:
Cannot move file to the attachments folder, please check your server path settings

WARNING
Debug mode is enabled. Make sure you disable debug mode in settings once HESK is installed and working properly.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Can't save settings - PARSE ERROR

Post by Klemen »

Just had another look at your phpinfo file. It actually shows a different server path than
/hermes/web02/b1371/pow.cybermidi/htdocs/helpdesk

Try using this one istead:
/home/users/web/b1371/pow.cybermidi/htdocs/helpdesk

Any luck?
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
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: Can't save settings - PARSE ERROR

Post by vinman57 »

No luck Klemen - say "can't move" error.

What is interesting is that I changed the path in settings to
/home/users/web/b1371/pow.cybermidi/htdocs/helpdesk

by everytime I look at settings, it shows

/hermes/web02/b1371/pow.cybermidi/htdocs/helpdesk

but the settings.inc file shows
/home/users/web/b1371/pow.cybermidi/htdocs/helpdesk

Regardless, the program works fine, except for the attachments.
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: Can't save settings - PARSE ERROR

Post by vinman57 »

Klemen, it is finally working again.

My host had to change permissions from their end - not sure
why, but it works now.

thanks for the help
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Can't save settings - PARSE ERROR

Post by Klemen »

Hmm, I'm running out of ideas here...

You are sure the folder is chmoded to 777?
What if you manually change the variable in the settings file to empty:

Code: Select all

$hesk_settings['server_path']='';
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
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: Can't save settings - PARSE ERROR

Post by vinman57 »

Klemen, I believe you missed my last post - it is resolved.

Thanks again for the help anyway. I think I need to register this thing. It normally
works great. Will get to that.

Vin
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Can't save settings - PARSE ERROR

Post by Klemen »

Yeah, sorry, missed the last one. I'm glad you got it working!
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
Post Reply