Flexinode problem ? Events, locations, oh my.
| Project: | Flexinode |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
After following the steps 1-4 in http://drupal.org/comment/reply/52970 on a mostly new install (played around with a few modules), 4.7.3 drupal - with events, locations, flexinode installed, I get the following error when trying to add an event (step 4).
* warning: Invalid argument supplied for foreach() in /var/www/trib/modules/flexinode/flexinode.module on line 571.
* user warning: 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 node n LEFT JOIN flexinode_data flexinode_1 ON n.nid = flexinode_1.nid AND ' at line 1 query: SELECT FROM node n LEFT JOIN flexinode_data flexinode_1 ON n.nid = flexinode_1.nid AND flexinode_1.field_id = 1 WHERE n.nid = 6 in /var/www/trib/includes/database.mysql.inc on line 120.
The code block in questions reads as follows:
foreach ($ctype->fields as $field) {
$items = flexinode_invoke('form', $field, $node);
// if anyone knows a better way to pass back an array and key value at the same time without passing the $form by
// ref I would like to know ;)
foreach($items as $key => $item) {
$form[$key] = $item;
}
}
Not sure if this is my newness to drupal or an underlying bug. Tks.

#1
Looks like duplicate of http://drupal.org/node/76904
Please try http://drupal.org/files/issues/flexinode_5.module - patched module from that issue and then recreate content type. If problem persists - post comment there.
#2
I was having the exact same problem -- used code from flexinode_5.module and now it works just fine. Is this a permanent fix?
#3
I hope patch will be included in Flexinode 4.7 anytime soon.