• Resolved Matt

    (@mdykhouse)


    Hey all, downloaded and activated the Participants Database Email Templates plugin. Things went well, created a template and the action. Went to try a sign up and got this error on the page after I hit submit.

    Fatal error: Call to private method cpt_email_templates\controller::set_signup_thanks_message() from context ” in /home/wasprcor/public_html/wp-content/plugins/pdb-email-expansion/cpt_email_templates/controller.php on line 97

    I did how ever get the email template I created to the email address I provided. However got that error on the signup page.

    Any suggestions?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Matt

    (@mdykhouse)

    Ok…now for some reason I have a different error…

    Warning: array_values() expects parameter 1 to be array, boolean given in /home/wasprcor/public_html/wp-content/plugins/pdb-email-expansion/cpt_email_templates/controller.php on line 360

    Warning: Cannot modify header information – headers already sent by (output started at /home/wasprcor/public_html/wp-content/plugins/pdb-email-expansion/cpt_email_templates/controller.php:360) in /home/wasprcor/public_html/wp-includes/pluggable.php on line 1179

    Plugin Author xnau webdesign

    (@xnau)

    OK, I need to get a clear picture of what is happening.

    What send event are you using in the template?

    Do you have the default signup receipt email turned off?

    Are you still getting the first error?

    Does the warning about the array_values() function happen every time you test the form?

    Thread Starter Matt

    (@mdykhouse)

    Thanks for the quick response ??

    Ok, I re-activated the script and I get the original error,

    Fatal error: Call to private method cpt_email_templates\controller::set_signup_thanks_message() from context ” in /home/wasprcor/public_html/wp-content/plugins/pdb-email-expansion/cpt_email_templates/controller.php on line 97

    I am using the “Signup Submission” event
    Yes, I tried the setting default signup receipt email turned off and on.
    Yes, every time I test the signup form I get the error.
    It does create the record in the database and I do get the signup submission email template I created, however that error shows up on the webpage.

    Here is the link to my signup form, https://wasprc.org/app/

    If you need back-end access let me know how to get you the login information.

    Thank you so much!

    Thread Starter Matt

    (@mdykhouse)

    PS, here is the phpn info of the server,

    https://wasprc.org/phpinfo.php

    Plugin Author xnau webdesign

    (@xnau)

    OK, the error is odd, I’m running the same PHP version and it doesn’t complain about the private method when I test what you’re doing, but the fix is simple: we just need to change the private method to a public method. You can do that on line 369 of the plugin file pdb-email-expansion/cpt_email_templates/controller.php

    I plan to change that in an upcoming update.

    See if everything works OK after you make that change.

    Thread Starter Matt

    (@mdykhouse)

    Thanks xnau, things look to working as they should now. I appreciate your help ??

    Thread Starter Matt

    (@mdykhouse)

    Well…I created a new template. With this action “PDb Admin List Selected:approve”

    However, when I select approve in the admin section of the memeber, it does not send the email template created.

    Is there a place I can look for logs, or a debug setting to turn on?

    Plugin Author xnau webdesign

    (@xnau)

    This currently only works when you are on the list page and you approve the record using the “with selected” action on the selected record in the list.

    BTW…it’s helpful to start a new topic when you have a new question, makes it easier for others to find answers.

    Thread Starter Matt

    (@mdykhouse)

    Gotcha, and yes it works that way, thanks again for your help ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fatal error: Call to private method’ is closed to new replies.