After unzipping the package I get the following at the beginning of the config web page right out of the box.
Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/web/html/genealogy/session.php on line 186
Warning: Cannot add header information - headers already sent by (output started at /home/web/html/genealogy/session.php:186) in /home/web/html/genealogy/editconfig.php on line 130
After doing the configuration, the homepage for phpGedView isn't shown. It shows a page with the warnings mention above (replace editconfig.php with session.php and replace 130 with 287) and nothing below it. Hence I cannot go any further.
I am trying to run 2.65.4 but I have tried it with 3.0beta6 with the exact same result. Other php apps work great so not sure what is going on.
Any help would be great as information on this error is scarce, spent the last couple of days trying to find something.
cheers.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You are probably using an outdated version of PHP.
Either upgrade your PHP or edit the session.php file and comment out the lines that use the htmlspecialchars function. They look something like this:
if (!empty($value)) ${$key} = htmlspecialchars($value, ENT_NOQUOTES, "UTF-8");
if (!empty($val)) ${$key}[$key1] = htmlspecialchars($val, ENT_NOQUOTES, "UTF-8");
However, commenting out these lines opens you up to an low security html code injection.
--John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-04-09
Thanks for the response.
I am running RH9 and php 4.2.2, documentation states tested with 4.1.0 and above, is my version too old ??
Commenting out the lines gets rid of the warnings and things seem to work as long as I run in index mode. Once I change to MySQL mode I get the following messages at the top of the pages :
Notice: Array to string conversion in /home/web/html/phpGedView/session.php on line 178
Warning: Cannot add header information - headers already sent by (output started at /home/web/html/phpGedView/session.php:178) in /home/web/html/phpGedView/functions_print.php on line 564
Do I need to upgrade to 4.3.x to solve the above ??
cheers - Jason
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After unzipping the package I get the following at the beginning of the config web page right out of the box.
Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/web/html/genealogy/session.php on line 186
Warning: Cannot add header information - headers already sent by (output started at /home/web/html/genealogy/session.php:186) in /home/web/html/genealogy/editconfig.php on line 130
After doing the configuration, the homepage for phpGedView isn't shown. It shows a page with the warnings mention above (replace editconfig.php with session.php and replace 130 with 287) and nothing below it. Hence I cannot go any further.
I am trying to run 2.65.4 but I have tried it with 3.0beta6 with the exact same result. Other php apps work great so not sure what is going on.
Any help would be great as information on this error is scarce, spent the last couple of days trying to find something.
cheers.
You are probably using an outdated version of PHP.
Either upgrade your PHP or edit the session.php file and comment out the lines that use the htmlspecialchars function. They look something like this:
if (!empty($value)) ${$key} = htmlspecialchars($value, ENT_NOQUOTES, "UTF-8");
if (!empty($val)) ${$key}[$key1] = htmlspecialchars($val, ENT_NOQUOTES, "UTF-8");
However, commenting out these lines opens you up to an low security html code injection.
--John
Thanks for the response.
I am running RH9 and php 4.2.2, documentation states tested with 4.1.0 and above, is my version too old ??
Commenting out the lines gets rid of the warnings and things seem to work as long as I run in index mode. Once I change to MySQL mode I get the following messages at the top of the pages :
Notice: Array to string conversion in /home/web/html/phpGedView/session.php on line 178
Warning: Cannot add header information - headers already sent by (output started at /home/web/html/phpGedView/session.php:178) in /home/web/html/phpGedView/functions_print.php on line 564
Do I need to upgrade to 4.3.x to solve the above ??
cheers - Jason
Jason,
I believe the problem is with PHP version 4.2.2 only. I know for sure that it will work on version 4.3.
--John