CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules »
  • Using CiviSchool (Moderators: Donald Lobo, Deepak Srivastava) »
  • DB table errors
Pages: [1]

Author Topic: DB table errors  (Read 1292 times)

ymmatt

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
DB table errors
August 19, 2011, 06:26:12 am
This might need to go somewhere else, but it seems like a couple of the database tables aren't created until you actually enter the first extended care entry.

I received a DB error, no table, on this page: /civicrm/sfschool/extendedCareSummary?reset=1
until I added an extended care entry, then the table was obviously there

Still get the error on this page: /civicrm/sfschool/extended/class?reset=1
Code: [Select]
Database Error Code: Table 'CiviCRM.sfschool_extended_care_source' doesn't exist, 1146
Additional Details:
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] => -18
    [message] => DB Error: no such table
    [mode] => 16
    [debug_info] =>
SELECT     count(entity_id) as current, s.max_participants as max, s.term, s.day_of_week, s.session, s.name
FROM       civicrm_value_extended_care e
INNER JOIN sfschool_extended_care_source s ON ( s.term = e.term AND s.day_of_week = e.day_of_week AND s.session = e.session AND s.name = e.name )
WHERE      e.has_cancelled = 0
AND        s.term = 'Spring 2011'
 GROUP BY term, day_of_week, session, name [nativecode=1146 ** Table 'CiviCRM.sfschool_extended_care_source' doesn't exist]
    [type] => DB_Error
    [user_info] =>
SELECT     count(entity_id) as current, s.max_participants as max, s.term, s.day_of_week, s.session, s.name
FROM       civicrm_value_extended_care e
INNER JOIN sfschool_extended_care_source s ON ( s.term = e.term AND s.day_of_week = e.day_of_week AND s.session = e.session AND s.name = e.name )
WHERE      e.has_cancelled = 0
AND        s.term = 'Spring 2011'
 GROUP BY term, day_of_week, session, name [nativecode=1146 ** Table 'CiviCRM.sfschool_extended_care_source' doesn't exist]
    [to_string] => [db_error: message="DB Error: no such table" code=-18 mode=callback callback=CRM_Core_Error::handle prefix="" info="
SELECT     count(entity_id) as current, s.max_participants as max, s.term, s.day_of_week, s.session, s.name
FROM       civicrm_value_extended_care e
INNER JOIN sfschool_extended_care_source s ON ( s.term = e.term AND s.day_of_week = e.day_of_week AND s.session = e.session AND s.name = e.name )
WHERE      e.has_cancelled = 0
AND        s.term = 'Spring 2011'
 GROUP BY term, day_of_week, session, name [nativecode=1146 ** Table 'CiviCRM.sfschool_extended_care_source' doesn't exist]"]
)

Again, all of this may belong in another thread

Sadly I don't think I'll be able to devote much time to beta testing this as I was hoping to use it for attendance at my weekly class meetings. Doesn't seem like it is meant or setup for that.

Thanks,
Matt

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: DB table errors
August 19, 2011, 09:20:31 am

There is another sql file you need to source to build that table (since it exists independent of CiviCRM)

sql/civicrm_sfs.mysql

The installation / packaging is quite bad, IMO :( But it does what you want to do quite nicely :)

If you can help with the install/packaging, ping me on IRC and we can make it a lot better (and maybe even upgrade it to D7/C4)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules »
  • Using CiviSchool (Moderators: Donald Lobo, Deepak Srivastava) »
  • DB table errors

This forum was archived on 2017-11-26.