Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Compatibility issues with 7.x-4.x (#3):
- access denied after returning to site (using paypal for payment),
- form never submitted after successful payment (using paypal for payment).
- can't download results
Comments
Comment #2
torotil CreditAttribution: torotil at more onion commentedIt works perfectly fine with webform-7.x-3.x -- as long as you use PHP-5.4 or newer.
Comment #3
peter panes CreditAttribution: peter panes commentedThen maybe there should be a mesage on the module page that this module doesn't yet work with webform 7.x-4.x.
The problems I'm having are:
-access denied after returning to site (using paypal for payment),
-form never submitted after successful payment (using paypal for payment).
-cant download results
Comment #4
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedThanks for this. I was wondering why it wasn't working for me. It's because I am using webform 4.x. Updated the title. This really should be stated somewhere.
Comment #5
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedAlso wanted to chime in that I got the following error in my logs and a WSOD after
drush dis webform_paymethod_select
confirmed disabled
drush pm-uninstall webform_paymethod_select
confirmed uninstalled
drush rr --fiire-bazooka
I still got this error and WSOD:
HP Fatal error: Class 'PaymentLineItem' not found in webform_paymethod_select/src/PaymethodLineItem.php on line 11,
I had to delete the module for my site to come back up :(
Comment #6
katomat CreditAttribution: katomat commentedI added a "3.x" to the dependency section on the description page. (Might be still too subtle, though.)
Comment #7
torotil CreditAttribution: torotil at more onion commentedComment #8
torotil CreditAttribution: torotil at more onion commentedComment #9
torotil CreditAttribution: torotil at more onion commentedThere is a sub-module named wps_test_method. This is a dummy payment method that allows to simulate nearly every scenario for webform_paymethod_select. Except for the results I can't reproduce any of the issues described.
Comment #10
louisnagtegaal CreditAttribution: louisnagtegaal at Triquanta commentedHi,
I think the problem is that in the webform-module (version = "7.x-4.14")
webform/webform.module
access to a webform submission is checked in
function webform_confirmation_page_access($node)
It there is assumed that for anonymous users there is a token in the $_GET, line 576 of webform/webform.module
which is checked against the token for the current submission:
But when I look in
little_helpers/src/Webform/Webform.php
at the function
public function getRedirect($submission = NULL)
(which is said to be "mainly a c&p of the relevant parts of * @see webform_client_form_submit()."
the only parameter added to the query-option for the redirect url is the 'sid', line 91:
A possible solution would be to add the lines:
(see webform/webform.module line 3382) after line 94 of little_helpers/src/Webform/Webform.php so that the token is include for anonymous users.
Would you agree this is a viable solution? Of course the patch should be applied to https://www.drupal.org/project/little_helpers and not here, but it seems a solution for this problem.
Comment #11
torotil CreditAttribution: torotil at more onion commentedHi, thanks for the analysis. Would you mind telling me what "this problem" is in your case? It seems that this bug-report became a catch-all for "[whatever] doesn't work with webform4". Without ever spelling out any way to reproduce any of the issues.
Comment #12
torotil CreditAttribution: torotil at more onion commentedI'm closing this. Because it has become a wildcard issue for too many different bugs - most of them are fixed already.
If you experience a bug with using webform4 and webform_paymethod_select and find this issue: Please post a new bug-report instead of commenting here and include steps to reproduce your bug!