Page 1 of 1
Can't save settings - PARSE ERROR
Posted: Wed Nov 10, 2010 7:19 pm
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
Re: Can't save settings - PARSE ERROR
Posted: Thu Nov 11, 2010 9:20 pm
by Klemen
Upload the original admin_settings_save.php file again, yours was edited.
Re: Can't save settings - PARSE ERROR
Posted: Thu Nov 11, 2010 10:08 pm
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.
Re: Can't save settings - PARSE ERROR
Posted: Fri Nov 12, 2010 9:35 am
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
Re: Can't save settings - PARSE ERROR
Posted: Fri Nov 12, 2010 10:39 am
by vinman57
Have no idea what plesk is.
But my path has always contained HTDOCS - and the path.php file confirmed that.
Re: Can't save settings - PARSE ERROR
Posted: Fri Nov 12, 2010 12:29 pm
by Klemen
Try setting the serve rpath to exactly this:
/hermes/web02/b1371/pow.cybermidi/htdocs/helpdesk
Re: Can't save settings - PARSE ERROR
Posted: Fri Nov 12, 2010 7:56 pm
by vinman57
Klemen,
that IS my path and I've been using that.
Re: Can't save settings - PARSE ERROR
Posted: Sat Nov 13, 2010 1:57 pm
by Klemen
So what is the EXACT error message then if you enable Debug mode??
Re: Can't save settings - PARSE ERROR
Posted: Sat Nov 13, 2010 2:21 pm
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.
Re: Can't save settings - PARSE ERROR
Posted: Sun Nov 14, 2010 5:58 pm
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?
Re: Can't save settings - PARSE ERROR
Posted: Sun Nov 14, 2010 6:42 pm
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.
Re: Can't save settings - PARSE ERROR
Posted: Mon Nov 15, 2010 7:46 pm
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
Re: Can't save settings - PARSE ERROR
Posted: Mon Nov 15, 2010 7:50 pm
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:
Re: Can't save settings - PARSE ERROR
Posted: Mon Nov 15, 2010 10:14 pm
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
Re: Can't save settings - PARSE ERROR
Posted: Tue Nov 16, 2010 4:21 pm
by Klemen
Yeah, sorry, missed the last one. I'm glad you got it working!