Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating new donation due to new templates #4884

Closed
gaudigva opened this issue Jul 1, 2020 · 4 comments
Closed

Error creating new donation due to new templates #4884

gaudigva opened this issue Jul 1, 2020 · 4 comments

Comments

@gaudigva
Copy link

gaudigva commented Jul 1, 2020

When i try to create a new donation, when saving it, I've got that error :
An error of type E_ERROR was caused in line 112 of the file /home/cibpynqb/public_html/wp-content/plugins/give/src/Form/Templates.php. Error message: Uncaught Error: Class name must be a valid object or a string in /home/cibpynqb/public_html/wp-content/plugins/give/src/Form/Templates.php:112
Stack trace:
#0 /home/cibpynqb/public_html/wp-content/plugins/give/src/Form/Templates.php(98): Give\Form\Templates->getTemplateObject('')
#1 /home/cibpynqb/public_html/wp-content/plugins/give/src/Helpers/Form/Template.php(50): Give\Form\Templates->getTemplate('')
#2 /home/cibpynqb/public_html/wp-content/plugins/give/includes/admin/forms/class-metabox-form-data.php(1141): Give\Helpers\Form\Template::saveOptions(1039, Array)
#3 /home/cibpynqb/public_html/wp-includes/class-wp-hook.php(289): Give_MetaBox_Form_Data->save_form_template_settings('_give_form_temp...', 'sequoia', 1039)
#4 /home/cibpynqb/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#5 /home/cibpynqb/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#6 /home/cibpynqb/public_html/wp-content/plugins/give/includes/admin/forms/class-metabox-form-data.php(1035): do

best regards ;)

@ravinderk ravinderk changed the title Error ceating new donation due to new templates Error creating new donation due to new templates Jul 1, 2020
@DevinWalker
Copy link
Member

Both @ravinderk and myself are unable to reproduce. Please let us know more specifically how to get this PHP notice to appear. Creating a new donation form isn't reproducing it for us.

@ravinderk
Copy link
Collaborator

@gaudigva Can you confirm that you are not getting any javascript error on Add Form page? because we implemented a logic that you can not save existing or new donation form settings until you choose a Form Template.

Admin will see this alert when Form Template is not selected:
image

@gaudigva
Copy link
Author

gaudigva commented Jul 6, 2020

Hello,
No, i don't have javascript error when i open my form existing form I had before upgrading to v2.7 or when I open the New Donation form.
I've selected Multi-Step Donation Form Template, and when i update it, it's starting to process and a few seconds after, I've got that error : https://mywebsite.com/wp-admin/post.php 500

And it's the same when I'm creating a new form with Multi-Step Template form and also Legacy Donation Form.
And If i don't choose a template, I've got the message telling me to choose one.

I'm using Wordpress 5.4.2 and all my plugins are up to date. And I hadn't that problem with v2.6.3.

@matheuswd
Copy link
Member

Hi @gaudigva,

We've tested this and we are unable to replicate this issue. I noticed that you are facing an error 500, which makes me think that there is some incompatibility with your other plugins or themes.

This is also the reason that makes me think it's not an issue with the plugin itself, so you do not need to open a Github issue. In this case, if you have a paid plan, you can contact us via priority support. Otherwise, you can reach out via WordPress.org for free support. These are the best places to discuss this kind of issue you are facing.

Send us a message on these channels and we'll get back to with troubleshooting suggestions.

Looking forward to helping you get to the bottom of this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants