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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade from 4.2.8 to 4.2.9 MySQL error and broken handlers in Views
Pages: [1]

Author Topic: Upgrade from 4.2.8 to 4.2.9 MySQL error and broken handlers in Views  (Read 440 times)

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Upgrade from 4.2.8 to 4.2.9 MySQL error and broken handlers in Views
April 08, 2013, 04:48:30 pm
I upgraded Drupal from 7.21 and checked it, everything seemed to work fine (just like before). The upgraded CiviCRM from 4.2.8 to 4.2.9 and my views field and filter handlers are broken, they are no longer accessible through Views. This SQl error message displays on the View page:

"SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM civicrm_event civicrm_event WHERE (( (civicrm_event.event_type_id IN ('7'' at line 1"

This shows up as the query in Views:

Query   
SELECT
FROM
{civicrm_event} civicrm_event
WHERE (( (civicrm_event.event_type_id IN  ('7')) ))


I cleared all the caches (including Views) but the problem persists. The View wasn't doing anything unusual although there is some PHP code (that was working) as described here:

http://wiki.civicrm.org/confluence/display/CRMDOC40/Event+listing+showing+fully-booked+result+using+Drupal+Views+PHP

It all worked perfectly prior to upgrading, any help will be very much appreciated.
« Last Edit: April 08, 2013, 05:00:52 pm by Michael »

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Upgrade from 4.2.8 to 4.2.9 MySQL error and broken handlers in Views
April 09, 2013, 06:02:37 am
Adding Eileen McNaughton's patch from this page:

https://github.com/fuzionnz/civicrm/commit/4c6ccffcdb5fb3273817efc5d70fa216beec9c06

... fixed it. The view now displays properly again.

Thank you, Eileen!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade from 4.2.8 to 4.2.9 MySQL error and broken handlers in Views

This forum was archived on 2017-11-26.