• Resolved photoMaldives

    (@photomaldives)


    Hi Support
    I see this error 3 times, several days apart, in my php-errors.log.
    I guess it’s triggered when someone uses the form? However, I tested my form, and it seems to be OK (takes me to PayPal, and doesn’t log a new error).
    There are no browser console errors on my page.
    I have no corresponding FAILED donations (give-payment-history).
    Thanks, and keep up the great work. ??

    Fatal error: Class name must be a valid object or a string in Templates.php:120

    Fatal error: Uncaught Error: Class name must be a valid object or a string in .../plugins/give/src/Form/Templates.php:120
    
    Stack Trace
    1.	
    Give\Form\Templates->getTemplateObject(NULL)
    ...plugins/give/src/Form/Templates.php:104
    2.	
    Give\Form\Templates->getTemplate()
    ...plugins/give/src/Controller/Form.php:139
    3.	
    Give\Controller\Form->loadDonationFormView('')
    ...wp-includes/class-wp-hook.php:308
    4.	
    WP_Hook->apply_filters(NULL, Array)
    ...wp-includes/class-wp-hook.php:332
    5.	
    WP_Hook->do_action(Array)
    ...wp-includes/plugin.php:517
    6.	
    ...wp-includes/t in .../plugins/give/src/Form/Templates.php on line 120

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @photomaldives,

    Glad you reached out. We’ve seen this particular code when someone attempts to access an invalid form (meaning a form that doesn’t exist any more), or when accessing forms that have been deleted or are in draft status. If you happen to have drafted or deleted forms, this is most likely why you are seeing that code. It shouldn’t cause any issues with your site, it is more of a “head’s up” that someone is trying to access forms that aren’t available.

    If you do bump into any issues with this in the console or in the error logs of GiveWP, you can send them along right here and we’ll dig in. For now though, it looks like you are in good shape!

    I’ll go ahead and mark this one as resolved for now, but if you have any questions you can create a new ticket here and we’ll be happy to give things a look.

    Have a great day!

    Thread Starter photoMaldives

    (@photomaldives)

    Thanks for your quick reply and words of advice, stephanieliy (@stephanieliy)

    I will heed your advice, and keep a look out in future (but not worry!)

    Thanks, and keep up the great work. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Class name must be a valid object or a string in Templates.php:120’ is closed to new replies.