I'm a new user. I have just uploaded the current beta version to my website and pointed my browser to the directory. I received the following error message (plus sseveral similar messages for other lines):
ini_set, get_current_user, get_defined_constants, get_include_path, php_ini_scanned_files, php_uname, phpcredits, restore_include_path, set_include_path, set_magic_quotes_runtime, set_time_limit, version_compare, zend_version, getmyinode, getmypid, getmyuid, getmygid, getopt, getrusage, assert_options, assert, extension_loaded, dl, mysql_pconnect() has been disabled for security reasons in /home/content/.../html/PhpGedView/session.php on line 33
Upon contacting the website, I was told that the problem is that PhpGedView contains server includes which are not allowed by the website. Is there a work around for this problem or have I done something wrong? Any ideas would be appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is what I get now after trying the patch. Seems to be a problem magic quotes in line 41 and
header("Location: editconfig.php") in line 63. Any thoughts?
Warning: set_magic_quotes_runtime, set_time_limit, version_compare, zend_version, getmyinode, getmypid, getmyuid, getmygid, getopt, getrusage, assert_options, assert, extension_loaded, dl, mysql_pconnect() has been disabled for security reasons in /home/content/d/a/v/davidson2/html/genealogy/session.php on line 41
Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/a/v/davidson2/html/genealogy/session.php:41)
in /home/content/d/a/v/davidson2/html/genealogy/session.php on line 63
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm a new user. I have just uploaded the current beta version to my website and pointed my browser to the directory. I received the following error message (plus sseveral similar messages for other lines):
ini_set, get_current_user, get_defined_constants, get_include_path, php_ini_scanned_files, php_uname, phpcredits, restore_include_path, set_include_path, set_magic_quotes_runtime, set_time_limit, version_compare, zend_version, getmyinode, getmypid, getmyuid, getmygid, getopt, getrusage, assert_options, assert, extension_loaded, dl, mysql_pconnect() has been disabled for security reasons in /home/content/.../html/PhpGedView/session.php on line 33
Upon contacting the website, I was told that the problem is that PhpGedView contains server includes which are not allowed by the website. Is there a work around for this problem or have I done something wrong? Any ideas would be appreciated.
This means that the host has disabled the functions in that list. That is a very aggressive list of functions to disable.
In order to get PGV to work, you will have to comment out all of the lines that use any of the functions in that list.
I can tell you for sure that PGV uses:
ini_set and set_time_limit
You should only have to change the session.php file.
--John
I tried commenting out the functions as suggested and got this response. Any further suggestions?
Parse error: parse error in /home/content/d/a/v/.../html/genealogy/session.php on line 64
Fatal error: main(): Failed opening required '' (include_path='.:/usr/local/lib/php') in /home/content/.../html/genealogy/index.php on line 35
I've uploaded a patched session.php file to the patches section of the website for you to try out. You can download it here:
http://sourceforge.net/tracker/index.php?func=detail&aid=926710&group_id=55456&atid=477081
--John
This is what I get now after trying the patch. Seems to be a problem magic quotes in line 41 and
header("Location: editconfig.php") in line 63. Any thoughts?
Warning: set_magic_quotes_runtime, set_time_limit, version_compare, zend_version, getmyinode, getmypid, getmyuid, getmygid, getopt, getrusage, assert_options, assert, extension_loaded, dl, mysql_pconnect() has been disabled for security reasons in /home/content/d/a/v/davidson2/html/genealogy/session.php on line 41
Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/a/v/davidson2/html/genealogy/session.php:41)
in /home/content/d/a/v/davidson2/html/genealogy/session.php on line 63
Add an @ before line 41 so that it looks like:
@set_magic_quotes_runtime(0);
--John
That did the trick. Thanks.