Hello
I am running under Drupal 7.38 and have a new site with web form.
I have renamed the webform to basic (if this is important)
The webform works but when I click on results I get the following message
Fatal error: Call to a member function preview() on a non-object in /home/french2/public_html/archers-confolentais.org/sites/all/modules/webform/includes/webform.report.inc on line 35
This seems to indicate that there is a problem with the webform_table but a I can not find this. The code section is
if (!webform_variable_get('webform_table')) {
// Load the submissions view
$view = webform_get_view($node, 'webform_submissions');
if ($user_filter) {
if ($user->uid) {
drupal_set_title(t('Submissions for %user', array('%user' => $user->name)), PASS_THROUGH);
}
else {
drupal_set_title(t('Your submissions'));
webform_disable_page_cache();
}
return $view->preview('default', array($node->nid, $user->uid));
}
else {
return $view->preview('default', array($node->nid));
}
}
Any help in resolving this would be greatly appreciated.
I have already reloaded the module, run update.php and cleared all caches using phpmyadmin
Comments
Comment #1
DanChadwick CreditAttribution: DanChadwick commentedViews is required. Install and enable it. Clear caches if needed.
Comment #2
riverrat CreditAttribution: riverrat commentedViews are installed and activated
Comment #3
DanChadwick CreditAttribution: DanChadwick commentedThe issue is definitely views. So:
1) Clear your cache. You didn't say whether you did this properly or not.
2) Install Views UI and preview the webform_submissions view, passing the node ID as the argument.
3) Check of a view of your creation with the same machine name (webform_submissions)
4) Step through the code to see why the view isn't being loaded.
Comment #4
riverrat CreditAttribution: riverrat commentedHi
Thanks
Yes I had cleared the cache using phpmyadmin to clear all cache tables
Already have Views UI installed
When I tried to create a webform-submissions view everything worked until I tried to save it then I got a PDO exception saying that views_view table did not exist. So I am wondering if the views module did not install properly and had not created the appropriate tables
Comment #5
DanChadwick CreditAttribution: DanChadwick commentedFirst using phpmyadmin is not the same as truncating cache tables. Use drush or the UI.
Second, yes, you are missing a table for sure. I would completely uninstall, then re-install. You will lose any views you have customized, so take care to do something about that (e.g. export, uninstall, reinstall, use views import module).
Good luck. You issue isn't webform, but rather webform depending upon views, which isn't working right.
Comment #6
riverrat CreditAttribution: riverrat commentedThanks will do
Comment #7
riverrat CreditAttribution: riverrat commentedRemoved everything and re-installed from scratch and it worked
Thanks for everything