Menu

Parse error

Help
taramis
2017-10-21
2017-10-21
  • taramis

    taramis - 2017-10-21

    hello, I have an installation problem that I can not solve, I have the following error: "Parse error: syntax error, unexpected '{' in / mnt / 109 / sda / 7 / b / taramis / phpgedview2 /includes/session.php on line 319 " Thanks a lot
    try { // remove escape codes before using PW $DBPASS=str_replace(array("\\\\", "\\\"", "\\\$"), array("\\", "\"", "\$"), $DBPASS); PGV_DB::createInstance($DBTYPE, $DBHOST, $DBPORT, $DBNAME, $DBUSER, $DBPASS, $DB_UTF8_COLLATION); unset($DBUSER, $DBPASS); try { PGV_DB::updateSchema(PGV_ROOT.'includes/db_schema/', 'PGV_SCHEMA_VERSION', PGV_SCHEMA_VERSION); } catch (PDOException $ex) { // The schema update scripts should never fail. If they do, there is no clean recovery. die($ex); } } catch (PDOException $ex) { // Can't connect to the DB? We'll get redirected to install.php later..... }

     
  • taramis

    taramis - 2017-10-21

    la suite....

     
  • Gerry Kroll

    Gerry Kroll - 2017-10-21

    You're trying to install an ancient version of PhpGedView (version 4.2.4). You should be using the latest "SVN" version.

    The "SVN" version is very hard to find on the SourceForge site. You can e-mail me directly at gkroll (at) keldine (dot) ca , and I can then send you a link to my site where you download a ZIP copy of what you need.

    Since you're just starting out, you should consider using Webtrees in preference to PhpGedView. The Webtrees project was started by the PhpGedView developers in 2010 / 2011, and only Lester Caine and I continue to support PhpGedView. There are many reasons for this decision, but I won't get into details.

    Webtrees has much better support than PhpGedView has, and its user community is very active.

     

Log in to post a comment.