Menu

Upgrading to latest version

Help
Ian Binns
2020-11-14
2021-01-10
  • Ian Binns

    Ian Binns - 2020-11-14

    Hi,
    I've recently take over managing my family's genealogy site, and am about to upgrade my family's site to the latest version. The site is currently running PHPGedView version 4.1.3 on PHP 5.2.17.

    I understand the PHPGedView upgrade should be to the latest SVN snapshot, but I have a couple of questions:

    1. Can I upgrade directly from 4.1.3 to the latest version?
    2. I want to upgrade PHP to as late a version as possible. The hosting company support PHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4, and PHP 8.0. What is the latest PHP version I can be confident of upgrading to?
    3. Chicken and egg question next - should I upgrade PHPGedview first or PHP?

    Many thanks,

    Ian

     
  • Gerry Kroll

    Gerry Kroll - 2020-11-14

    You should upgrade PhpGedView first, since the old version will not run on PHP 7.x

    The upgrade is simple:
    Export the database to a GEDCOM, using the old version. No need to download. This just ensures that the GEDCOM in your /index directory is current.

    Delete everything in your server's directory where PhpGedView is installed, except file /config.php and directories /index and /media.

    On you local PC, you can delete modules you don't plan to use. On my own system, the only modules that are of any use are GEDFact_assistant, slideshow, JWplayer, and lightbox.

    On your local PC, you can delete the language files (in the /languages directory) that correspond to languages you don't plan to support. You MUST keep the English files. They're called xxx.en.php The new PhpGedView does not have a /config.php file, and the /media and /index directories don't contain anything useful to you.

    Copy the new PhpGedView into the server's directory, except directories /index and /media. No harm will come if you copy these directories to your server, except that you'll get an overwrite warning.

    Launch the new PhpGedView and immediately access the Manage GEDCOMs page, where you will need to import the existing GEDCOM into the database. Let PhpGedView delete existing database contents. If you're asked, don't let PhpGedView keep media links.

    That's it. Pretty simple, once you've done it a few times.

    Now you can upgrade PHP. PhpGedView is known to work OK with PHP 7.4.

    I have no idea about PHP 8. You can try it. If you run into errors, PLEASE let me know, so that I can investigate and make appropriate corrections. No harm will come if you DO run into PHP 8 incompatibilities -- just downgrade to 7.4 and the errors will go away.

     

    Last edit: Gerry Kroll 2020-11-14
  • Ian Binns

    Ian Binns - 2020-11-14

    Hi Gerry.

    Many thanks for the quick response. Much appreciated.

    Cheers,

    Ian

     
  • Ian Binns

    Ian Binns - 2020-11-16

    HI,

    So on the manage GEDCOM page I don't have an export options - only download. see attached. Does the download function export from the database to the index folder first before zipping. If I don't select the zip file option will it therefore generate the server GEDCOM file? Or do I need to download, unzip and the re-upload?

    Cheers,

    Ian

     
  • Gerry Kroll

    Gerry Kroll - 2020-11-16

    Hmmmm, .... That's weird. That must have been one of several improvements made after your copy of PhpGedView was released umpteen years ago.

    You can download the ZIP file. It's up to you whether you extract the GEDCOM and then upload the unzipped GEDCOM, or whether you just upload the ZIP file itself.

    If you upload a ZIP file, PhpGedView will discover the GEDCOM in it, extract the GEDCOM, and then import that extracted GEDCOM.

    On my server, there are strict limits on upload file sizes, so I have to use the ZIP method always.

     
  • Ian Binns

    Ian Binns - 2020-11-16

    Thanks Gerry

     
  • Ian Binns

    Ian Binns - 2020-11-16

    HI,

    Having got as far as deleting the folders and uploading the new vesrion I am encountering the following error on trying to access the site:
    Parse error: syntax error, unexpected T_FUNCTION in /home/thebinns/public_html/includes/classes/class_gedcomrecord.php on line 441

    Any ideas?

     
  • Ian Binns

    Ian Binns - 2020-11-16

    I should add I haven't upgraded PHP at this stage

     
  • Gerry Kroll

    Gerry Kroll - 2020-11-16

    You are running with a PHP version that's too old. The line of code being pointed to requires PHP 5.3 or newer. There is a work-around, but it's not worth "fixing" a problem like this.

    I suggest you just upgrade your PHP to 7.4, and try again. If you want to try PHP 8, you can. I won't guarantee that you won't run into problems with PHP 8, but it doesn't hurt to try.

     
  • Ian Binns

    Ian Binns - 2020-11-16

    I suspected that might be the case - OK I'll upgrade PHP - but only to 7.4

    Thanks again

     
  • Ian Binns

    Ian Binns - 2020-11-16

    Hi Gerry,

    Thanks for your help with this - much appreciated. I ended up on PHP 7.3.23 - when I tried 7.4.11 i encountered a bunch of errors.

    I'm going to leave it at this point for a week or so, and then will look at the PHP 8 upgrade. The site is used quite heavily and I've been nagged about letting users back in for the last hour or so :$

    Cheers,

    Ian

     
  • Gerry Kroll

    Gerry Kroll - 2020-11-16

    It would help me if you could post a few of the errors you saw when you tried PHP 7.4.11

    These errors should be corrected, but I have no access to that version of PHP, so I need your help.

     
    • Ian Binns

      Ian Binns - 2020-12-01

      Hi Gerry,

      Apologies for not getting back to you sooner - but I'm able to upgrade downgade PHp very easily so I'll pick a time when the sites quiet and get those errors for you.

      Cheers,

      Ian

       
  • Gerry Kroll

    Gerry Kroll - 2020-11-16

    The only thing I notice is that the PHP 7.4 release notes state that ZIP support is no longer part of the standard package. You have to compile ZIP support explicitly.

    The other PHP 7.4 changes should not affect PhpGedView.

     
  • hc9316

    hc9316 - 2020-12-01

    Gerry, I used phpgedview about 10 years ago successfully. I wanted to use it again for the report features. I installed version 4.3.0 and it seems to be working for everything except the individual reports. The server is running php version 7.4.22-1. I was getting an error during setup but I found where you posted a new file and I used it to complete the install. Are there other files that need to be replaced to fix the deprecated methods and waarnings for reportpdf.php?

     
  • Gerry Kroll

    Gerry Kroll - 2020-12-01

    This thread:
    https://sourceforge.net/p/phpgedview/discussion/185166/thread/870ea26639/

    discusses what you need to do. You need to replace what you have with the 4.3.1 "SVN Snapshot".

    Don't replace just part of the existing PhpGedView installation. Replace everything except the config.php file and the directories /index and /media.

     
  • hc9316

    hc9316 - 2020-12-01

    Thank you for the prompt reply. I'm glad you are keeping it alive.

     
  • Sam Young

    Sam Young - 2021-01-01

    I updated my PHPGedView to the latest version using Gerry's advice with the server running PHP 7.2. It worked fine at first but when I tried to edit a record, I got the following error: "Fatal error: Cannot redeclare imagecreatefrombmp() . . . on line 2190"

    Now I get the same error when I try to bring up the site and I can no longer log in.

    I tried re-uploading the new PHPGedView files (keeping my config.php file and the /index and /media directories) but still get the same error.

    Can I get a fix for this error?

     

    Last edit: Sam Young 2021-01-01
  • Gerry Kroll

    Gerry Kroll - 2021-01-05

    You will need to upgrade if you are contemplating upgrading to PHP 7.4 . There are quite a few bugs caused by this version of PHP because the PHP folks decided, in their infinite wisdom, to "upgrade" the language by removing some features that were used by PhpGedView. Their response was, "Well, we TOLD you about these upcoming changes." dumbasses.

    I'm still working on updating PhpGedView to accommodate PHP version 7.4 . It works OK with version 7.3 and earlier. Be SURE to always use the latest SVN snapshot.

    You can check which SVN level you're at by looking at the top of the changelog.txt file. There's nothing in the program that you can use to display the version. Future enhancement, maybe?

     
    • Lawrence Lamprecht

      Gerry,

      I am still running php7.3 on my server, but unfortunately I had a major crash and had to completely reinstall my server. So now is a good time to upgrade, but I have two questions.

      1. where can I get the latest version available, when I look on sourceforge the latest seems to have a date of 2017, so not sure that is the latest.
      2. After reinstalling everything, I could not login with my admin account. So I saved my config.php, and tried to do the install.php. Inserted all my details, got to step 6, where the config is saved, I then try to create an admin account, but it redirects me to the login page, but seeing as I do not have an admin account. I cannot get in. Seems to be in a circle. How can I get to create an admin account.

      Thanks
      Lawrence


      From: Gerry Kroll canajun2eh@users.sourceforge.net
      Sent: Tuesday, January 5, 2021 12:07 PM
      To: [phpgedview:discussion] 185166@discussion.phpgedview.p.re.sourceforge.net
      Subject: [phpgedview:discussion] Upgrading to latest version

      You will need to upgrade if you are contemplating upgrading to PHP 7.4 . There are quite a few bugs caused by this version of PHP because the PHP folks decided, in their infinite wisdom, to "upgrade" the language by removing some features that were used by PhpGedView. Their response was, "Well, we TOLD you about these upcoming changes." dumbasses.

      I'm still working on updating PhpGedView to accommodate PHP version 7.4 . It works OK with version 7.3 and earlier. Be SURE to always use the latest SVN snapshot.

      You can check which SVN level you're at by looking at the top of the changelog.txt file. There's nothing in the program that you can use to display the version. Future enhancement, maybe?


      Upgrading to latest versionhttps://sourceforge.net/p/phpgedview/discussion/185166/thread/bf0a3c86e7/?limit=25#690e


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/phpgedview/discussion/185166/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Gerry Kroll

    Gerry Kroll - 2021-01-06

    Come on, Lawrence, you know better than that!

    I've said many times, in many posts, that you do NOT want to use the PhpGedView from the "download" link. Use the SVN snapshot.

    There are lots of instructions in recent posts both in the Help and the Discussion forums on downloading and installing the SVN snapshot. They do not need to be repeated yet again.

    PhpGedView should work with PHP 7.4 on the server. If it doesn't, you need to report the bugs.

    Send me an e-mail (you already have the address) if you need more help in getting this thing going.

     
  • Lawrence Lamprecht

    I have installed the latest version. Will keep you posted

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.