Jump to content

Class Declarations Fatal Error


Arctix

Recommended Posts

Hello, I've been running a e107 website for awhile, but suddenly I've come across a PHP error that's disabled my website. Sadly, the support at e107 weren't very helpful.

I've been fixing errors for the last 2 hours, and now I've finally been stumped.

 

First-off, here's my error :

Fatal error: Class declarations may not be nested in /home/judge/public_html/fawdean/class2.php on line 1310

 

PasteBin Link

 

I pasted my code starting at Line 1310 and ending at Line 1441, which is the section of code this error is referring to. Any help will be appreciated in helping me solve this problem.

Thank you,

Kind regards, Arctix

Link to comment
https://forums.phpfreaks.com/topic/270377-class-declarations-fatal-error/
Share on other sites

I will bet it has something to do with the fact that your have an open curly brace before your class declaration

{class e_online {

 

Thanks Zane for your response, however, I have tried seeing what happens when I remove that brace, and it's corresponding closing brace, HOWEVER, nothing changes whatsoever....the error remains the same...

It's probably still nested within something. Post what was in the lines before that spot.

 

Lines 1041 - 1309

http://pastebin.com/3fuQBfvq

 

 

Just in case here is the entire code:

http://pastebin.com/Jifbm5Bm

 

 

This is the first time this problem has ever arisen

i think there is more to read about this issue https://bugs.php.net/bug.php?id=35634

 

I've read through that article, yet still can not determine what has to be the cause.

I've removed the " { " and it's corresponding " } " , I've tried putting the class class e_online before the {.

Nothing has solved my problem sadly....

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.