Fatal error: Array and string offset access syntax with curly braces is no longer supported in /customers/c/f/9/familienskog.com/httpd.www/phpGedView/includes/functions/functions.php on line 715
Old phpGedView site that Im not able to open anymore.
Have an old backup, so Ive tried deleting the whole folder and uploading the SVN version. Still get the same message.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tried without copying old config.php file. Trying to set it all up from scratch.
This dont make any sense. Ive tried putting in the arguments needed but will not accept it
Line 1483 in functions.print.php say this:
$sentence=preg_replace_callback('/~([^<>]{1,})~/e', "''.UTF8_strtoupper('\ul').''", $sentence);
This is the error I get during setup
ERROR 2: preg_replace_callback(): Requires argument 2, '''.UTF8_strtoupper('\ul').''', to be a valid callback
0 Error occurred on in function preg_replace_callback
1 called from line 1483 of file functions_print.php in function print_text
2 called from line 1475 of file functions_print.php in function print_text
3 called from line 773 of file install.php in function printConfigForm
4 called from line 449 of file install.php
Warning: preg_replace_callback(): Requires argument 2, '''.UTF8_strtoupper('\ul').''', to be a valid callback in /customers/c/f/9/familienskog.com/httpd.www/phpGedView/includes/functions/functions_print.php on line 1483
ERROR 2: preg_replace_callback(): Requires argument 2, '''.UTF8_strtoupper('\ul').''', to be a valid callback
0 Error occurred on in function preg_replace_callback
1 called from line 1483 of file functions_print.php in function print_text
2 called from line 773 of file install.php in function printConfigForm
3 called from line 449 of file install.php
Warning: preg_replace_callback(): Requires argument 2, '''.UTF8_strtoupper('\ul').''', to be a valid callback in /customers/c/f/9/familienskog.com/httpd.www/phpGedView/includes/functions/functions_print.php on line 1483
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When you're upgrading from an old installation, you need to preserve file /config.php and directories /index and /media. Everything else can be blown away. If you have any customizations in the /languages directory, keep that directory too, and let the upgrade just replace what's there. Your language customizations are supposed to be in files named extra.xx.php, and these files aren't in the SVN repository.
Don't forget that as soon as the new version is running, you need to access the Manage Gedcoms page and re-import the existing GEDCOM file, letting the program erase the database contents. This is necessary to ensure that the database indexes are properly built.
Note: If you aren't sure that the GEDCOM file in your /index directory matches the database contents (because your GEDCOM configuration says to not synchronize the database with the GEDCOM), you have to export that database to a GEDCOM before re-importing it. This works because the Export doesn't use the database indexes at all; it simply uses copies of the GEDCOM records that are incorporated into the database.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When you're upgrading from an old installation, you need to preserve file /config.php and directories /index and /media. Everything else can
be blown away. If you have any customizations in the /languages directory,
keep that directory too, and let the upgrade just replace what's there.
Your language customizations are supposed to be in files named
extra.xx.php, and these files aren't in the SVN repository.
Don't forget that as soon as the new version is running, you need to
access the Manage Gedcoms page and re-import the existing GEDCOM file,
letting the program erase the database contents. This is necessary to
ensure that the database indexes are properly built.
Note: If you aren't sure that the GEDCOM file in your /index directory
matches the database contents (because your GEDCOM configuration says to
not synchronize the database with the GEDCOM), you have to export that
database to a GEDCOM before re-importing it. This works because the Export
doesn't use the database indexes at all; it simply uses copies of the
GEDCOM records that are incorporated into the database.
I just deleted all files and folders. Started fresh without keeping the original config file and still gets this error
ERROR 2: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
0 Error occurred on in function preg_replace
1 called from line 1483 of file functions_print.php in function print_text
2 called from line 1475 of file functions_print.php in function print_text
3 called from line 773 of file install.php in function printConfigForm
4 called from line 449 of file install.php
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /customers/c/f/9/familienskog.com/httpd.www/phpGedView/includes/functions/functions_print.php on line 1483
ERROR 2: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
0 Error occurred on in function preg_replace
1 called from line 1483 of file functions_print.php in function print_text
2 called from line 773 of file install.php in function printConfigForm
3 called from line 449 of file install.php
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /customers/c/f/9/familienskog.com/httpd.www/phpGedView/includes/functions/functions_print.php on line 1483
Last edit: Kim Skog 2021-08-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Those line numbers STILL don't match what they should be, according to the SVN repository.
Please inspect your copies of the following files, as they exist on your server:
- changelog.txt
- includes/functions/functions_print.php
Look at the line, near the beginning of each file, that contains $Id: . What do these lines claim to be the version number? They should be 7312 for changelog.txt and 7293 for functions_print.php
If these version numbers don't match, you are NOT using the correct version of the SVN files. Don't assume that, because you downloaded an SVN snapshot sometime in the past, that SVN download is still current. The SVN repository can change frequently, sometimes even two or three times in one day.
I just did a download of the SVN snapshot. SourceForge told me that it had to create the snapshot first. This indicates that nobody else did a download today. Also, the version numbers in the copy I just downloaded match what I expected.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please check the version numbers, both on the server, and in the server directory into which you downloaded the snapshot. The SVN repository hasn't changed since 2021-07-17 18:46:14Z . The "Z" here means "GMT".
Even though you downloaded a snapshot yesterday, it's still possible that you uploaded an outdated copy of the snapshot to your server, or that you are accidentally accessing the wrong version on your server.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Old phpGedView site that I
m not able to open anymore. Have an old backup, so Ive tried deleting the whole folder and uploading the SVN version. Still get the same message.Tried without copying old config.php file. Trying to set it all up from scratch.
This dont make any sense. Ive tried putting in the arguments needed but will not accept it
Line 1483 in functions.print.php say this:
$sentence=preg_replace_callback('/~([^<>]{1,})~/e', "''.UTF8_strtoupper('\ul').''", $sentence);
This is the error I get during setup
ERROR 2: preg_replace_callback(): Requires argument 2, '''.UTF8_strtoupper('\ul').''', to be a valid callback
0 Error occurred on in function preg_replace_callback
1 called from line 1483 of file functions_print.php in function print_text
2 called from line 1475 of file functions_print.php in function print_text
3 called from line 773 of file install.php in function printConfigForm
4 called from line 449 of file install.php
Warning: preg_replace_callback(): Requires argument 2, '''.UTF8_strtoupper('\ul').''', to be a valid callback in /customers/c/f/9/familienskog.com/httpd.www/phpGedView/includes/functions/functions_print.php on line 1483
ERROR 2: preg_replace_callback(): Requires argument 2, '''.UTF8_strtoupper('\ul').''', to be a valid callback
0 Error occurred on in function preg_replace_callback
1 called from line 1483 of file functions_print.php in function print_text
2 called from line 773 of file install.php in function printConfigForm
3 called from line 449 of file install.php
Warning: preg_replace_callback(): Requires argument 2, '''.UTF8_strtoupper('\ul').''', to be a valid callback in /customers/c/f/9/familienskog.com/httpd.www/phpGedView/includes/functions/functions_print.php on line 1483
The line numbers quoted don't match the current SVN line numbers. You are NOT using the latest-and-greatest version of PhpGedView, downloaded from the SVN repository:
https://sourceforge.net/p/phpgedview/svn/HEAD/tree/trunk/phpGedView
When you're upgrading from an old installation, you need to preserve file /config.php and directories /index and /media. Everything else can be blown away. If you have any customizations in the /languages directory, keep that directory too, and let the upgrade just replace what's there. Your language customizations are supposed to be in files named extra.xx.php, and these files aren't in the SVN repository.
Don't forget that as soon as the new version is running, you need to access the Manage Gedcoms page and re-import the existing GEDCOM file, letting the program erase the database contents. This is necessary to ensure that the database indexes are properly built.
Note: If you aren't sure that the GEDCOM file in your /index directory matches the database contents (because your GEDCOM configuration says to not synchronize the database with the GEDCOM), you have to export that database to a GEDCOM before re-importing it. This works because the Export doesn't use the database indexes at all; it simply uses copies of the GEDCOM records that are incorporated into the database.
I just deleted all files and folders. Started fresh without config file and
still gets this error
[image: image.png]
On Thu, Aug 5, 2021 at 1:05 PM Gerry Kroll canajun2eh@users.sourceforge.net
wrote:
I just deleted all files and folders. Started fresh without keeping the original config file and still gets this error
ERROR 2: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
0 Error occurred on in function preg_replace
1 called from line 1483 of file functions_print.php in function print_text
2 called from line 1475 of file functions_print.php in function print_text
3 called from line 773 of file install.php in function printConfigForm
4 called from line 449 of file install.php
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /customers/c/f/9/familienskog.com/httpd.www/phpGedView/includes/functions/functions_print.php on line 1483
ERROR 2: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
0 Error occurred on in function preg_replace
1 called from line 1483 of file functions_print.php in function print_text
2 called from line 773 of file install.php in function printConfigForm
3 called from line 449 of file install.php
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /customers/c/f/9/familienskog.com/httpd.www/phpGedView/includes/functions/functions_print.php on line 1483
Last edit: Kim Skog 2021-08-05
Those line numbers STILL don't match what they should be, according to the SVN repository.
Please inspect your copies of the following files, as they exist on your server:
- changelog.txt
- includes/functions/functions_print.php
Look at the line, near the beginning of each file, that contains $Id: . What do these lines claim to be the version number? They should be 7312 for changelog.txt and 7293 for functions_print.php
If these version numbers don't match, you are NOT using the correct version of the SVN files. Don't assume that, because you downloaded an SVN snapshot sometime in the past, that SVN download is still current. The SVN repository can change frequently, sometimes even two or three times in one day.
I just did a download of the SVN snapshot. SourceForge told me that it had to create the snapshot first. This indicates that nobody else did a download today. Also, the version numbers in the copy I just downloaded match what I expected.
I download the SVN snapshot yesterday
But I just downloaded a snapshot again.. I`ll do another try
Please check the version numbers, both on the server, and in the server directory into which you downloaded the snapshot. The SVN repository hasn't changed since 2021-07-17 18:46:14Z . The "Z" here means "GMT".
Even though you downloaded a snapshot yesterday, it's still possible that you uploaded an outdated copy of the snapshot to your server, or that you are accidentally accessing the wrong version on your server.
I
ve deleted the folder on the webserver and Im now uploading the freshly downloaded snapshot.I`ll keep you updated about the results