Can't save settings - PARSE ERROR
Moderator: mkoch227
Can't save settings - PARSE ERROR
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
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.
Re: Can't save settings - PARSE ERROR
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 
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


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
Re: Can't save settings - PARSE ERROR
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:
Hope you can assist.
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:
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?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
Hope you can assist.
-
- Posts: 45
- Joined: Mon Dec 18, 2006 3:20 pm
Re: Can't save settings - PARSE ERROR
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
/hermes/web02/b1371/pow.cybermidi/htdocs/helpdesk/attachments/H69BB5LY1M_865fc3bd7a423731d80a48174d6bd6bb.txt
If you use plesk this should read httpdocs
Re: Can't save settings - PARSE ERROR
Have no idea what plesk is.
But my path has always contained HTDOCS - and the path.php file confirmed that.
But my path has always contained HTDOCS - and the path.php file confirmed that.
Re: Can't save settings - PARSE ERROR
Try setting the serve rpath to exactly this:
/hermes/web02/b1371/pow.cybermidi/htdocs/helpdesk
/hermes/web02/b1371/pow.cybermidi/htdocs/helpdesk
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Can't save settings - PARSE ERROR
Klemen,
that IS my path and I've been using that.
that IS my path and I've been using that.
Re: Can't save settings - PARSE ERROR
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 
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


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
Re: Can't save settings - PARSE ERROR
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.
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.
Re: Can't save settings - PARSE ERROR
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?
/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 
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


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
Re: Can't save settings - PARSE ERROR
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.
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.
Re: Can't save settings - PARSE ERROR
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
My host had to change permissions from their end - not sure
why, but it works now.
thanks for the help
Re: Can't save settings - PARSE ERROR
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:
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 
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


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
Re: Can't save settings - PARSE ERROR
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
Thanks again for the help anyway. I think I need to register this thing. It normally
works great. Will get to that.
Vin
Re: Can't save settings - PARSE ERROR
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 
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


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