This Help forum is for issues relates to the latest release (1.7.9). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

TOPIC: Fatal Error!!!

Fatal Error!!! 5 days 2 hours ago #1

  • michealgimies
  • michealgimies's Avatar
  • Offline
  • New
  • Posts: 3
My site running 1.7.9 has come up with this error:

Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in C:\home\site\wwwroot\family\index.php on line 23

Help?Youjizz Pornhub Tubegalore
Last Edit: 4 days 18 hours ago by michealgimies.
The administrator has disabled public write access.

Fatal Error!!! 5 days 2 hours ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10908
The file index.php should look like this:

github.com/fisharebest/webtrees/blob/1.7.9/index.php

Notice that the line "namespace" is on line 16.

Your error message says two things

1) you have a "namespace" command on line 23
2) you have some other code before the namespace.

I'd guess that someone (your webhost? a virus? a hacker?) has added 7 lines to the beginning of this file.

Maybe post the first part of this file here, so we can take a look.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.
Powered by Kunena Forum