I was testing the program and everything was fine, then I suddenly got this error.
Parse error: parse error, unexpected ';' in /my path.../phpgedview/index/myged_conf.php on line 49
This error message appears on every single page that I try to load.
I tried downloading myged_conf.php to see what's wrong with it but the ftp program says I don't have permission. How do I download the files in the index directory?
Thanks,
wyk
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-05-19
Hello Wyk,
Well, you should be able to set the permissions on the index folder. The index folder should have worldwide rights. It is not possible to download the file via the browser.
How did you upload your files? It should go exactly the same way.
Regards,
Roland
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The permission is set on the index folder is set to 777. I use an ftp program to upload and download the files.
I just noticed that I'm listed as the owner of the index folder and all the other files on the site, but apache is listed as the owner and group of all the files inside the index folder. I don't know anything about server software issues, but maybe that's the problem.
Do you think this a glitch caused by the program, or a glitch caused by the way my host has their server set up?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To clarify my last post, I'm listed as owner of the gedcome file I uploaded by ftp, but the files created by the program (log, _conf.php, _priv.php, pgv_changes.php, gedcoms.php, and gedcoms I uploaded using PGV) list apache as owner and group.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The owner is apache because the files were created by PHP and PHP is running as the apache user. Since the file is in your webspace you should be able to erase or modify it, but this is dependant on your server setup.
A parse error in the _conf.php file means that when you were updating the gedcom configuration it probably didn't finish writing the file or something didn't get written correctly. If you can get ahold of the file I would like to see it to see what happened.
To get your site working again, copy the config_gedcom.php and rename it to myged_conf.php and upload it to the index directory replacing the old one. This will reset all of the default gedcom configuration settings.
If you cannot modify the files, then create a new PHP file called setpermissions.php and put it in your PhpGedView directory. Place the following code into the file:
Note that this code assumes you left your index directory as the default ./index. If not you will need to change the paths.
It also assumes that your host has not disabled the chmod function in PHP. If the chmod function won't work then you will have to put in a support request to your host to change the permissions of the files or erase them.
--John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been testing things and here's my very weird results.
The fatal parse error was caused by my browser. When I use iCab (Mac only browser) to upload the files, this problem occurs. When I use other browsers, everything is fine.
If I upload the gedcom using PGV, the gedcom is set 600. If I upload the gedcom using via ftp, it is set to 644.
Sometimes the _conf.php and _priv.php are set to 600, sometimes they are set to 644.
If the files are 644, I can download them. If they are set to 600, I can move, delete, and rename the files, but I can't download or change permission via ftp. Is this normal behavoir for files set to 600?
I can change permission for the 600 files using the setuppermissions.php. Once I change permission to 777, I can download the files.
thanks,
Wai-Yin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I was testing the program and everything was fine, then I suddenly got this error.
Parse error: parse error, unexpected ';' in /my path.../phpgedview/index/myged_conf.php on line 49
This error message appears on every single page that I try to load.
I tried downloading myged_conf.php to see what's wrong with it but the ftp program says I don't have permission. How do I download the files in the index directory?
Thanks,
wyk
Hello Wyk,
Well, you should be able to set the permissions on the index folder. The index folder should have worldwide rights. It is not possible to download the file via the browser.
How did you upload your files? It should go exactly the same way.
Regards,
Roland
Hi,
The permission is set on the index folder is set to 777. I use an ftp program to upload and download the files.
I just noticed that I'm listed as the owner of the index folder and all the other files on the site, but apache is listed as the owner and group of all the files inside the index folder. I don't know anything about server software issues, but maybe that's the problem.
Do you think this a glitch caused by the program, or a glitch caused by the way my host has their server set up?
To clarify my last post, I'm listed as owner of the gedcome file I uploaded by ftp, but the files created by the program (log, _conf.php, _priv.php, pgv_changes.php, gedcoms.php, and gedcoms I uploaded using PGV) list apache as owner and group.
The owner is apache because the files were created by PHP and PHP is running as the apache user. Since the file is in your webspace you should be able to erase or modify it, but this is dependant on your server setup.
A parse error in the _conf.php file means that when you were updating the gedcom configuration it probably didn't finish writing the file or something didn't get written correctly. If you can get ahold of the file I would like to see it to see what happened.
To get your site working again, copy the config_gedcom.php and rename it to myged_conf.php and upload it to the index directory replacing the old one. This will reset all of the default gedcom configuration settings.
If you cannot modify the files, then create a new PHP file called setpermissions.php and put it in your PhpGedView directory. Place the following code into the file:
--------------- Start of setpermissions.php
<?php
chmod("./index/gedcoms.php", 0777);
chmod("./index/myged_conf.php", 0777);
chmod("./index/*", 0777);
print "Permissions changed";
?>
----------------- end of setpermissions.php
Note that this code assumes you left your index directory as the default ./index. If not you will need to change the paths.
It also assumes that your host has not disabled the chmod function in PHP. If the chmod function won't work then you will have to put in a support request to your host to change the permissions of the files or erase them.
--John
Hi,
I've been testing things and here's my very weird results.
The fatal parse error was caused by my browser. When I use iCab (Mac only browser) to upload the files, this problem occurs. When I use other browsers, everything is fine.
If I upload the gedcom using PGV, the gedcom is set 600. If I upload the gedcom using via ftp, it is set to 644.
Sometimes the _conf.php and _priv.php are set to 600, sometimes they are set to 644.
If the files are 644, I can download them. If they are set to 600, I can move, delete, and rename the files, but I can't download or change permission via ftp. Is this normal behavoir for files set to 600?
I can change permission for the 600 files using the setuppermissions.php. Once I change permission to 777, I can download the files.
thanks,
Wai-Yin