Critical Error on checkout page / PHP Fatal error: Call to undefined function in Pro-Child

Hi, I’m trouble-shooting an “critical error on this website” issue on a checkout page,

I’ve come across this PHP Fatal error in my error_log file (I’ve added a “Q” in place of the personal information):

[15-Apr-2024 13:35:28 UTC] PHP Fatal error: Uncaught Error: Call to undefined function the_field() in /home/Q/public_html/www.Q/wp-content/themes/pro-child/framework/views/renew/wp-page.php:18

I’ve also turned on debug, and I’ll provide that information in a secure note.

The error is found on the bottom of our checkout page: https://bluemonster.ca/checkout/
It appears that some of it is related to the theme and child theme. I’m hoping you can please help :slight_smile:

(Also, I’m not sure why my checkout page looks like this. It used to be full width, and not have a boxed-in appearance)

Hey Tina,

Thanks for reaching out!

The error message indicates that there’s an issue with the function the_field() being called from the wp-page.php file of your child theme and then the function the_field() is being called but is not defined anywhere in the code.

The function the_field() is typically associated with the Advanced Custom Fields (ACF) plugin. Ensure that the ACF plugin is installed and activated on your WordPress site. If it’s not installed, you’ll need to install it.

Hope that helps.

1 Like

Well re-installing that plugin just made a huge difference! lol. I got rid of it a while ago because I didn’t think I was using it anywhere. Apparently it’s needed… which is weird because I had found ACF confusing and didn’t think it was in use. Thank you so much for catching that!!

Hey Tina,

You’re most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.