I've noted in the log on the Admin page that search engines and crawlers are creating the following log entry throughout the day:
Anonymous - ERROR 8: Undefined variable: place; 0 Error occurred on line 2216 of file functions_print.php in function format_fact_place1 called from line 401 of file functions_print_facts.php in function print_fact2 called from line 1365 of file individual_ctrl.php in function print_facts_tab3 called from line 1254 of file individual_ctrl.php in function getTab4 called from line 445 of file individual.php
I realize I could block the ip addresses (and I do have a robots.txt file), but the addresses don't appear to belong to bad bots and I'm also curious as to how they are triggering this error. Not very familiar with this side of administering a site - any insight appreciated.
Thank you,
Fred
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2009-06-28
What version of PGV?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2009-06-28
Ignore the last question. Its a bug in ver 4.2.1 (possibly earlier as well) that has been fixed in latest svn. You'll get it with the next release.
If you want to manually fix it now, add the following immediately before row 2182 $ctn=0;
} else {
$place='????';
}
(keep a copy of the original file in case this doesn't work - I can't be 100% sure there are no other changes required, as this was fixed sometime ago.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've noticed a similar error in access logs with 4.2.2:
Anonymous - ERROR 8: Undefined variable: place; 0 Error occurred on line 2141 of file functions _ print.php in function format _ fact_place1 called from line 366 of file functions _ print _ facts.php in function print _ fact2 called from line 461 of file functions _ charts.php in function print _ family _ facts3 called from line 168 of file family.php
Also, not sure of the meaning of some of the access log codes like URI or UA. Here's examples of what I'm seeing in the logs:
The UA (user agent) messages in your logs suggest that an automated script has been searching for vulnerabilities in web-pages, and that PGV identified and blocked it.
The first error is a bug, but it would only affects search engines. Please log the details in a bug report. Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I've noted in the log on the Admin page that search engines and crawlers are creating the following log entry throughout the day:
Anonymous - ERROR 8: Undefined variable: place; 0 Error occurred on line 2216 of file functions_print.php in function format_fact_place1 called from line 401 of file functions_print_facts.php in function print_fact2 called from line 1365 of file individual_ctrl.php in function print_facts_tab3 called from line 1254 of file individual_ctrl.php in function getTab4 called from line 445 of file individual.php
I realize I could block the ip addresses (and I do have a robots.txt file), but the addresses don't appear to belong to bad bots and I'm also curious as to how they are triggering this error. Not very familiar with this side of administering a site - any insight appreciated.
Thank you,
Fred
What version of PGV?
Ignore the last question. Its a bug in ver 4.2.1 (possibly earlier as well) that has been fixed in latest svn. You'll get it with the next release.
If you want to manually fix it now, add the following immediately before row 2182 $ctn=0;
} else {
$place='????';
}
(keep a copy of the original file in case this doesn't work - I can't be 100% sure there are no other changes required, as this was fixed sometime ago.
Thanks again kiwi!
Yes, I'm using 4.2.1. Just for your information, I tried the patch but it didn't work, giving me this when I tried to go to the welcome page:
Parse error: syntax error, unexpected T_ELSE in /home/xxxxx/public_html/phpgedview/includes/functions/functions_print.php on line 2182
But I'm happy to wait for the next version and appreciate very much you taking the time to help.
Regards,
lindonb
The instruction should have told you to replace line 2181 with the three lins quoted.
Line 2181 consists of a single right-bracket.
That got rid of the error - thank you!
I've noticed a similar error in access logs with 4.2.2:
Anonymous - ERROR 8: Undefined variable: place; 0 Error occurred on line 2141 of file functions _ print.php in function format _ fact_place1 called from line 366 of file functions _ print _ facts.php in function print _ fact2 called from line 461 of file functions _ charts.php in function print _ family _ facts3 called from line 168 of file family.php
Also, not sure of the meaning of some of the access log codes like URI or UA. Here's examples of what I'm seeing in the logs:
Anonymous - UA>DataCha0s/2.0<
Anonymous - URI>/phpgedview/index.php?ctype=ftp://wordtech.eti.br:805407@wordtech.eti.br/images/produtos/yenor.php?<
Anonymous - MSG>Embedded URL detected; script terminated.
Not too familiar with access logs so please forgive my ignorance!
Thanks,
lindonb
The UA (user agent) messages in your logs suggest that an automated script has been searching for vulnerabilities in web-pages, and that PGV identified and blocked it.
The first error is a bug, but it would only affects search engines. Please log the details in a bug report. Thanks.
Thanks for the quick response and info! I've submitted the bug report.
Thanks again, lindonb