I tried to update my site using phpgedview and it did not work, i have tried to restore some back ups and they have also not worked ( it does not show all of the people etc) and i am left with a site which by all account should work but does not.
how do i get the site back up working and updated?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm sure there's plenty of people willing to help here but you'll need to supply some more details. At least:
What version were you on?
What version did you try and update to?
What backups sort of backup do you have and what sort of restore did you attempt?
If the site is publicly visible it might help to post the URL.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
running, PhpGedView v4.0.3
trying to update to 4.1.5
i have backups of the sql database phpgedview files (including media) the gedcom file (downloaded from the working site)
www.closefamily.po.gs/tree/index.php (make sure to add index.php or it will not work)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
nothing i have followed those instructions and they resolved in no working website at all, no graphs work and the data stats on the first page to not show.
how about if i change my question to, how to i recreate my website from old backups in to a new website which works.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Are these backup files created by that old version of PhpGedView, or are they actual database backups? Ideally, you should have a copy of the GEDCOM that can be re-uploaded or re-imported. Backups of the database would help too -- especially the user table.
Exactly WHAT did you do to your site to damage it to the extent that you need to recover instead of just doing an install of the new version where the old was?
I don't want to launch into a long-winded series of possibly wrong instructions without having full information on the situation as it is right now.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanks, my gedcom file was created by the old version (as this was the way of creating the family tree) and i have an entire database backup Not created by phpgedview. i also have the entire sites old files.
i replaced the old files with the updated ones just as the instructions stated, went to the website and there was some red error text...(cant remember what it said)i then re-uploaded the gedcom like it told me and then i got what is on the website now (accept with the new files)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Start by doing a database restore and also restore ALL of the old PhpGedView installation. Make SURE that in that restored installation, the following files and directories have FULL (world) read-write-modify permission (0777 permission). You could get away with less open permissions, but 0777 is easiest. Everything else needs at least 755.
file config.php
directory index and ALL its contents
directory media and ALL its contents and sub-directories, etc.
Start the old copy of PhpGedView and log in as Admin. If this doesn't work, stop right there and get back to us.
If the database appears to be OK, use this old copy of PhpGedView to export (and download) the GEDCOM to your local PC. Let PhpGedView create a ZIP file for you. This action creates a new GEDCOM from the database contents (ignoring the old one in the "index" directory), Zips it, and then downloads the ZIP file to your local PC. You'll find the "export" option on the Manage GEDCOMs page.
Log out of the old copy of PhpGedView.
Download the most recent version of PhpGedView from SourceForge. Download the "all" version, so that you're sure to have all files. Unzip this on your local PC, and get rid of things you don't need. Except for the recommendations about the "modules" directory, the clean-ups aren't really necessary.
Delete subdirectories in the "modules" directory that correspond to modules you don't want to use. If you don't want to use any of the modules, you can delete the entire "modules" directory. This will ensure that the top-of-page menus don't have any links to unused modules.
Delete subdirectories in the "themes" directory that correspond to themes you don't want to have available on your site.
Delete files in the "languages" directory that correspond to languages you don't want to use on your site. NEVER delete files for English. These files all end in ".en.php". If you're not sure which files belong to which language, just ask.
That's it for the new copy of PhpGedView on your local PC.
Connect to the server with a tool like the FileZilla FTP client. Make sure you use the most recent version of this, available from SourceForge.
On the server, delete EVERYTHING in the PhpGedView install directory, except:
file config.php
directory index and all its contents
directory media and all its contents
in the "index" directory, delete the Upcoming Events cache file. This file has a name ending in "_upcoming.php".
Copy the cleaned-up PhpGedView file and directory from your local PC to the server, except for the following:
file config.php (should NOT be present on your local PC)
directory index
directory media
Launch the new copy of PhpGedView and log in as administrator. Immediately access the Manage GEDCOMs menu and click the "Upload replacement" link on that page. Point your browser at the ZIP file containing the GEDCOM you previously downloaded. Let PhpGedView erase existing database contents. If PhpGedView asks for permission to correct certain errors in the GEDCOM, let it do so.
Now that you have a working installation, you can play with file permissions. You need to set all files to 755, except the directories "index" and "media" and ALL their contents. These need 775.
You can also play with the layout of the main Welcome page by deleting and adding or re-arranging blocks. You do this from the Customize Welcome Page menu. You'll find a link for this in the Welcome block on the main Welcome page. If this block is not present, you'll see the link at the bottom of the page.
If you run into ANY problems or encounter error messages that you don't understand, please post back here. The text of the error messages would be very helpful. Just saying "I got an error" doesn't tell us very much. Likewise, don't hesitate to ask for clarification any part of these instructions.
I hope this helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello, thanks very much indeed for that. however, i have just finished "Upload replacement" and i am getting this error in redtext "Unable to find family with ID F001Unable to find family with ID F177"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had v.4.2.4 stable on a shared host site that got hacked and everything went away. I have a PGV backup as well as the database dump… both recent. So I pretty much did what canajun2eh laid out in the above post.
My database looks good so I tried exporting a Gedcom file and I get this error.
index => ./index
ERROR 2: unlink(./index) : Is a directory
0 Error occurred on in function unlink
1 called from line 71 of file export_gedcom.php
Warning: unlink(./index) : Is a directory in /home/xxxxxxxx/www/PhpGedView/export_gedcom.php on line 71
ERROR 2: rename(./index.tmp,./index) : Is a directory
0 Error occurred on in function rename
1 called from line 72 of file export_gedcom.php
Warning: rename(./index.tmp,./index) : Is a directory in /home/xxxxxxxx/www/PhpGedView/export_gedcom.php on line 72
4096 bytes, 0.094 seconds
So is there another way to get a Gedcom file from my database other than exporting it from PGV?
The other thing is that I have two Gedcoms on that database.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please don't hijack someone else's ooooold post. You should have started a new topic.
If you're having trouble exporting the database to a GEDCOM and you're getting error messages like you describe, your GEDCOM configuration is damaged. I suspect that the file "index/gedcoms.php" doesn't contain a valid GEDCOM file name.
If the GEDCOM file name in the "index/gedcoms.php" file IS valid, try creating a file by that name in the "index" directory before you export the database. I haven't looked at the code recently; it's possible that the program requires a GEDCOM file (or one that appears to be a GEDCOM) to be present before the database export will proceed.
Make sure that the "index" directory and all files in it have 777 (universal read/write/modify) permission.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Rather than EXPORT, did you try DOWNLOAD? That would put one on your local drive.
EXPORT puts one into a directory (index) on your website. Chances are you have bad permissions or a locked file by the same name. OR, as Gerry suggests, a corrupted gedcoms.php file. -Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Stephen, when you "download" does that get the gedcom from the database or from the index directory.
I would like to get a gedcom from my database or from my database dump that's on my PC. How is that done?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ALL features of PGV (for some time) and now webtrees, pulls the data from the database.
There is no concurrency or update to the text files any longer and they are not necessary.
The only difference between the two is the location that the file goes to:
Export from DB -> copy to your Index folder
Download from DB -> copy to your local computer download default or specified directory.
Either way - be sure any pending changes are accepted into the GEDCOM or you will lose them. -Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is the corrupted GEDCOMS.PHP file that Gerry discussed. If the family tree is not listed within this text file (one of the last remaining text-type pointers outside the DB, then you must either replace it with a previous backed-up version before your problem OR add it manually. There are some examples of how two GEDCOMS appear in the file, but it would be better if you did a local installation, using the SQLdump of your remote server as the data locally, and then add a new GEDCOM by a very similar name. Then simply change the newly-modified GEDCOMS.php file to reflect the precise information already contained within your database pointers. -Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok, got my gedcoms installed. thank you all very much. Can I replace my backed up media directory with the media directory on my website and the links be in tact? or is there a special way to do that?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You need to use PGV to look at one of the individuals that you KNOW should have associated media. The success or failure of the media display will tell you what you need to do.
You should be very careful if you are going to replace the existing media directory with a backup copy. There's only one media directory, and it's shared among all of your GEDCOM files. Thus, if you're replacing the whole directory, you might damage what was already working.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried to update my site using phpgedview and it did not work, i have tried to restore some back ups and they have also not worked ( it does not show all of the people etc) and i am left with a site which by all account should work but does not.
how do i get the site back up working and updated?
I'm sure there's plenty of people willing to help here but you'll need to supply some more details. At least:
What version were you on?
What version did you try and update to?
What backups sort of backup do you have and what sort of restore did you attempt?
If the site is publicly visible it might help to post the URL.
running, PhpGedView v4.0.3
trying to update to 4.1.5
i have backups of the sql database phpgedview files (including media) the gedcom file (downloaded from the working site)
www.closefamily.po.gs/tree/index.php (make sure to add index.php or it will not work)
does anyone have an answer?
<<does anyone have an answer?>>
I'm not sure anyone understands the question.
You asked <<I tried to update my site using phpgedview and it did not work>>
I'm afraid <<it did not work>> doesn't give us much to work on.
The Wiki articles should provide ample instructions on implementing a new version of PhpGedView to replace an old one.
I've also posted instructions here quite a few times.
What's unclear about the instructions already available?
nothing i have followed those instructions and they resolved in no working website at all, no graphs work and the data stats on the first page to not show.
how about if i change my question to, how to i recreate my website from old backups in to a new website which works.
Please clarify what sort of old backups you have.
Are these backup files created by that old version of PhpGedView, or are they actual database backups? Ideally, you should have a copy of the GEDCOM that can be re-uploaded or re-imported. Backups of the database would help too -- especially the user table.
Exactly WHAT did you do to your site to damage it to the extent that you need to recover instead of just doing an install of the new version where the old was?
I don't want to launch into a long-winded series of possibly wrong instructions without having full information on the situation as it is right now.
thanks, my gedcom file was created by the old version (as this was the way of creating the family tree) and i have an entire database backup Not created by phpgedview. i also have the entire sites old files.
i replaced the old files with the updated ones just as the instructions stated, went to the website and there was some red error text...(cant remember what it said)i then re-uploaded the gedcom like it told me and then i got what is on the website now (accept with the new files)
OK, that makes things quite a bit easier.
Start by doing a database restore and also restore ALL of the old PhpGedView installation. Make SURE that in that restored installation, the following files and directories have FULL (world) read-write-modify permission (0777 permission). You could get away with less open permissions, but 0777 is easiest. Everything else needs at least 755.
file config.php
directory index and ALL its contents
directory media and ALL its contents and sub-directories, etc.
Start the old copy of PhpGedView and log in as Admin. If this doesn't work, stop right there and get back to us.
If the database appears to be OK, use this old copy of PhpGedView to export (and download) the GEDCOM to your local PC. Let PhpGedView create a ZIP file for you. This action creates a new GEDCOM from the database contents (ignoring the old one in the "index" directory), Zips it, and then downloads the ZIP file to your local PC. You'll find the "export" option on the Manage GEDCOMs page.
Log out of the old copy of PhpGedView.
Download the most recent version of PhpGedView from SourceForge. Download the "all" version, so that you're sure to have all files. Unzip this on your local PC, and get rid of things you don't need. Except for the recommendations about the "modules" directory, the clean-ups aren't really necessary.
Delete subdirectories in the "modules" directory that correspond to modules you don't want to use. If you don't want to use any of the modules, you can delete the entire "modules" directory. This will ensure that the top-of-page menus don't have any links to unused modules.
Delete subdirectories in the "themes" directory that correspond to themes you don't want to have available on your site.
Delete files in the "languages" directory that correspond to languages you don't want to use on your site. NEVER delete files for English. These files all end in ".en.php". If you're not sure which files belong to which language, just ask.
That's it for the new copy of PhpGedView on your local PC.
Connect to the server with a tool like the FileZilla FTP client. Make sure you use the most recent version of this, available from SourceForge.
On the server, delete EVERYTHING in the PhpGedView install directory, except:
file config.php
directory index and all its contents
directory media and all its contents
in the "index" directory, delete the Upcoming Events cache file. This file has a name ending in "_upcoming.php".
Copy the cleaned-up PhpGedView file and directory from your local PC to the server, except for the following:
file config.php (should NOT be present on your local PC)
directory index
directory media
Launch the new copy of PhpGedView and log in as administrator. Immediately access the Manage GEDCOMs menu and click the "Upload replacement" link on that page. Point your browser at the ZIP file containing the GEDCOM you previously downloaded. Let PhpGedView erase existing database contents. If PhpGedView asks for permission to correct certain errors in the GEDCOM, let it do so.
Now that you have a working installation, you can play with file permissions. You need to set all files to 755, except the directories "index" and "media" and ALL their contents. These need 775.
You can also play with the layout of the main Welcome page by deleting and adding or re-arranging blocks. You do this from the Customize Welcome Page menu. You'll find a link for this in the Welcome block on the main Welcome page. If this block is not present, you'll see the link at the bottom of the page.
If you run into ANY problems or encounter error messages that you don't understand, please post back here. The text of the error messages would be very helpful. Just saying "I got an error" doesn't tell us very much. Likewise, don't hesitate to ask for clarification any part of these instructions.
I hope this helps.
hello, thanks very much indeed for that. however, i have just finished "Upload replacement" and i am getting this error in redtext "Unable to find family with ID F001Unable to find family with ID F177"
PS and other errors all with versions like the above "Unable to find family with ID F229Unable to find family with ID F237"
These error messages mean that your GEDCOM file is damaged, and probably needs to be repaired off-line using some sort of text editing program.
If you wish, you can e-mail the ZIP file to me, and I can take a look at it for you, perhaps even fixing it.
e-mail: gkroll at keldine dot ca
thanks :) i have sent you an email
I had v.4.2.4 stable on a shared host site that got hacked and everything went away. I have a PGV backup as well as the database dump… both recent. So I pretty much did what canajun2eh laid out in the above post.
My database looks good so I tried exporting a Gedcom file and I get this error.
index => ./index
ERROR 2: unlink(./index) : Is a directory
0 Error occurred on in function unlink
1 called from line 71 of file export_gedcom.php
Warning: unlink(./index) : Is a directory in /home/xxxxxxxx/www/PhpGedView/export_gedcom.php on line 71
ERROR 2: rename(./index.tmp,./index) : Is a directory
0 Error occurred on in function rename
1 called from line 72 of file export_gedcom.php
Warning: rename(./index.tmp,./index) : Is a directory in /home/xxxxxxxx/www/PhpGedView/export_gedcom.php on line 72
4096 bytes, 0.094 seconds
So is there another way to get a Gedcom file from my database other than exporting it from PGV?
The other thing is that I have two Gedcoms on that database.
Please don't hijack someone else's ooooold post. You should have started a new topic.
If you're having trouble exporting the database to a GEDCOM and you're getting error messages like you describe, your GEDCOM configuration is damaged. I suspect that the file "index/gedcoms.php" doesn't contain a valid GEDCOM file name.
If the GEDCOM file name in the "index/gedcoms.php" file IS valid, try creating a file by that name in the "index" directory before you export the database. I haven't looked at the code recently; it's possible that the program requires a GEDCOM file (or one that appears to be a GEDCOM) to be present before the database export will proceed.
Make sure that the "index" directory and all files in it have 777 (universal read/write/modify) permission.
Rather than EXPORT, did you try DOWNLOAD? That would put one on your local drive.
EXPORT puts one into a directory (index) on your website. Chances are you have bad permissions or a locked file by the same name. OR, as Gerry suggests, a corrupted gedcoms.php file.
-Stephen
Stephen, when you "download" does that get the gedcom from the database or from the index directory.
I would like to get a gedcom from my database or from my database dump that's on my PC. How is that done?
ALL features of PGV (for some time) and now webtrees, pulls the data from the database.
There is no concurrency or update to the text files any longer and they are not necessary.
The only difference between the two is the location that the file goes to:
Export from DB -> copy to your Index folder
Download from DB -> copy to your local computer download default or specified directory.
Either way - be sure any pending changes are accepted into the GEDCOM or you will lose them.
-Stephen
My PGV only shows one Gedcom. How do I download both gedcoms that's in my database?
This is the corrupted GEDCOMS.PHP file that Gerry discussed. If the family tree is not listed within this text file (one of the last remaining text-type pointers outside the DB, then you must either replace it with a previous backed-up version before your problem OR add it manually. There are some examples of how two GEDCOMS appear in the file, but it would be better if you did a local installation, using the SQLdump of your remote server as the data locally, and then add a new GEDCOM by a very similar name. Then simply change the newly-modified GEDCOMS.php file to reflect the precise information already contained within your database pointers.
-Stephen
ok, got my gedcoms installed. thank you all very much. Can I replace my backed up media directory with the media directory on my website and the links be in tact? or is there a special way to do that?
You need to use PGV to look at one of the individuals that you KNOW should have associated media. The success or failure of the media display will tell you what you need to do.
You should be very careful if you are going to replace the existing media directory with a backup copy. There's only one media directory, and it's shared among all of your GEDCOM files. Thus, if you're replacing the whole directory, you might damage what was already working.