Error when trying to delete entries

maxp76 - January 30, 2007 - 11:37
Project:Webform
Version:5.x-1.x-dev
Component:User interface
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

[sorry for my english ;-) ]
Hello to everybody,
I've got an issue with webform 5.x in junction with Drupal 5 - 5.1 .

When I try to delete webform's submitted entries, the sistem return an error :

"warning: call_user_func_array(): First argumented is expected to be a valid callback, 'delete_submission' was given in /var/www/vhosts/bioanchio.it/httpdocs/includes/form.inc on line 218."

I've searched on Goglee, but no answer. Also I've searched this on Drupal.org but no lucky!..
Instead of it, I've used webform 4.7 on drupal 4.7 without this problem.

Can Anybody help me?
Thank you very much.
Masismo

#1

nelson_rp - February 1, 2007 - 17:02

I've experienced the same problem. I believe that it is due to an incomplete port of this feature to the Drupal 5.x form API. I figure it should be a matter of replicating the confirmation process used in the "clear" results function. Unfortunately, I haven't had the time to look into it too hard. Sorry, that's probably not much help to you.

#2

Deyan - February 4, 2007 - 12:40

I am experiencing the same thing. PLEASE help!

#3

nelson_rp - February 6, 2007 - 01:08
Status:active» needs review

This patch updates the "delete" function to work with Drupal 5's FormAPI. I've also included a fix for the "clear" function "cancel" url redirecting to a 404.

AttachmentSize
webform_delete_formapi_d5.patch 3.38 KB

#4

Deyan - February 10, 2007 - 14:51

This patch does not seem to work. It is not possible to patch using it. :(

#5

Deyan - February 10, 2007 - 15:15

Just to clear things up - I use patch -p0 FILENAME as I usually do via SSH, but it dies not execute.

#6

streng - February 12, 2007 - 13:53

Thank you for this patch, it was fine for me.
I patched the original files locally on my PC (webform.inc, webform.module with “patch.exe” for Windows than copied to the server.

Now delete feature works well.
Zs

#7

BioALIEN - February 13, 2007 - 12:52
Priority:normal» critical

This should be committed back into the module itself. Can someone review whether the patch still applies to HEAD and patch accordingly?

#8

JHeffner - February 20, 2007 - 22:17

patch applies to HEAD. The patch worked for me as well.

#9

quicksketch - February 22, 2007 - 04:26
Status:needs review» fixed

Thanks nelson_rp for the patch! It works great and has been committed to the 5.x branch.

#10

maxp76 - February 22, 2007 - 13:25

Hello to everybody,
I've just tried Drupal 5.1 with Webform 5.x-1.x-dev , on a XAMPP envirorment, and the error does'n appear!
Thanks to everybody.
Massimo

#11

Anonymous - March 8, 2007 - 13:32
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.