Ticket #2565 (closed defect: fixed)

Opened 7 months ago

Last modified 2 months ago

DB build ignores comments and doesn't generate useful errors

Reported by: sbrenneis Owned by: sminnee
Priority: critical Milestone:
Component: Sapphire Framework Version: 2.2.2
Severity: medium effort / impact Keywords:
Cc: Hours:

Description

Creating a new class (see attached file). Cannot get db to build. Commented out offending class, but build function ignores comments and continues to spit out same useless error message:

FATAL ERROR: Bad class to singleton() - Account_Address At line 85 in /home/atcoonli/public_html/test1/sapphire/core/Core.php

user_error(Bad class to singleton() - Account_Address,256) line 85 of Core.php

singleton(Account_Address) line 175 of DatabaseAdmin?.php

DatabaseAdmin?->doBuild() line 90 of DatabaseAdmin?.php

DatabaseAdmin?->build(Array) line 261 of Controller.php

Controller->run(Array) line 104 of Director.php

Director::direct(db/build) line 158 of main.php Context Debug (Debug::showError() in line 180 of Debug.php)

  • className =

Account_Address

  • _SINGLETONS =

o Member =

Database record: Member

+ ID :

0

o Newsletter =

Database record: Newsletter

+ ID :

0

o Newsletter_SentRecipient =

Database record: Newsletter_SentRecipient

+ ID :

0

o Newsletter_Recipient =

Database record: Newsletter_Recipient

+ ID :

0

o NewsletterType? =

Database record: NewsletterType?

+ ID :

0

o PageComment? =

Database record: PageComment?

+ ID :

0

Attachments

Account.php (0.8 kB) - added by sbrenneis 7 months ago.

Change History

Changed 7 months ago by sbrenneis

Changed 7 months ago by sbrenneis

Forgot to add, problem is missing PHP tags, but db build error messages don't give any indication of the problem and the function acts like it is parsing the file regularly.

Changed 2 months ago by sminnee

  • status changed from new to closed
  • resolution set to fixed

AFAIK this has been fixed - the issue was that classes in comments were still read by the manifest.

Note: See TracTickets for help on using tickets.