RSS Feed/News Best way to deal with Fatal error: Cannot declare class

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,662
Points
823

Reputation:

Occasionally I will make a mistake adding a class extension and end up with the dreaded Fatal error: Cannot declare class

Usually, I can find the mistake in the class file and correct it. But not today.

So, I thought a clever way to deal with this would be to remove the entry from the xf_class_extension table. That did not work, and I'd like to understand why so I can find a better way to deal with this issue in the future.

Continue reading...
 
Status
Not open for further replies.
Top