Menu

Source declaration mismatch

Help
Mikel King
2009-12-07
2013-05-30
  • Mikel King

    Mikel King - 2009-12-07

    Recently installed pgv on one of my beta servers, and received the following error messages/warnings. I understand the header error is caused by this output, so I am ignoring it.

    While I don't believe that these are huge errors, I am curious which way is the code headed? As per the declared class or the actual class? I mean which is correct?

    ===============================

    Strict Standards: Declaration of *Person::getAllNames()* should be compatible with that of *GedcomRecord::getAllNames()* in /Volumes/Data/web/tree.o.com/public/includes/classes/class_person.php on line 1837

    Strict Standards: Declaration of *Family::getAllNames()* should be compatible with that of *GedcomRecord::getAllNames()* in /Volumes/Data/web/tree.o.com/public/includes/classes/class_family.php on line 463

    Strict Standards: Declaration of *Source::getAllNames()* should be compatible with that of *GedcomRecord::getAllNames()* in /Volumes/Data/web/tree.o.com/public/includes/classes/class_source.php on line 125

    Strict Standards: Declaration of *ServiceClient::getInstance()* should be compatible with that of *GedcomRecord::getInstance()* in /Volumes/Data/web/tree.o.com/public/includes/classes/class_serviceclient.php on line 907

    Strict Standards: Declaration of *Repository::getAllNames()* should be compatible with that of *GedcomRecord::getAllNames()* in /Volumes/Data/web/tree.o.com/public/includes/classes/class_repository.php on line 109

    Strict Standards: Declaration of Note::getAllNames() should be compatible with that of GedcomRecord::getAllNames() in /Volumes/Data/web/tree.o.com/public/includes/classes/class_note.php on line 118

    Strict Standards: Declaration of *Media::getAllNames()* should be compatible with that of *GedcomRecord::getAllNames()* in /Volumes/Data/web/tree.o.com/public/includes/classes/class_media.php on line 36

    ERROR 2: Cannot modify header information - headers already sent by (output started at /Volumes/Data/web/tree.o.com/public/includes/classes/class_person.php:1837)

    Warning: Cannot modify header information - headers already sent by (output started at /Volumes/Data/web/tree.o.com/public/includes/classes/class_person.php:1837) in /Volumes/Data/web/tree.o.com/public/install.php on line 96

     
  • Greg Roach

    Greg Roach - 2009-12-07

    I'll hazard a guess at the version of PGV and PHP (since you don't say), and say that this has been fixed in SVN……

     
  • Mikel King

    Mikel King - 2009-12-07

    Sorry for neglecting that…

    PHP 5.2.10

    I just downloaded the latest 4.2 release. I shall svn a copy and see if you are correct.

    Thanks for responding though…

     

Log in to post a comment.