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

Edited by Arctix
Link to comment
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...

Edited by Arctix
Link to comment
Share on other sites

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....

Edited by Arctix
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.