mforno on "What is this Wordpress fatal exception error and how do I fix it?"

ساخت وبلاگ

This moing I edited the Functions.php file thinking I was knowing what I was doing and once I saved it I ended up having this fatal error come up on my screen. You can also see it when you go to http://www.airliebeachbackpackers.com I thought it would be all ok because I keep backups but when I went to login to the wordpress dashboard I then get the same message there too. Can someone please help me fix this problem and get my site back up online? :)

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Identifier "booking_form" is not defined.' in /home/hippyt5/public_html/airliebeachbackpackers.com/wp-content/themes/adventure-tours/vendor/juice/JuiceContainer.php:116 Stack trace: #0 /home/hippyt5/public_html/airliebeachbackpackers.com/wp-content/themes/adventure-tours/vendor/juice/JuiceContainer.php(89): JuiceContainer->getServiceOrParameter('booking_form') #1 /home/hippyt5/public_html/airliebeachbackpackers.com/wp-content/themes/adventure-tours/functions.php(38): JuiceContainer->offsetGet('booking_form') #2 /home/hippyt5/public_html/airliebeachbackpackers.com/wp-content/themes/adventure-tours/woocommerce/includes/WC_Tour_Integration_Helper.php(62): adventure_tours_di('booking_form') #3 /home/hippyt5/public_html/airliebeachbackpackers.com/wp-content/themes/adventure-tours/woocommerce/includes/WC_Tour_Integration_Helper.php(39): WC_Tour_Integration_Helper->init() #4 /home/hippyt5/public_html/airliebeachbackpackers.com/wp-content/themes/adventure-to in /home/hippyt5/public_html/airliebeachbackpackers.com/wp-content/themes/adventure-tours/vendor/juice/JuiceContainer.php on line 116

Use FTP to replace the Functions.php file with a fresh, unedited copy.

See Filezilla and FTP Clients « WordPress Codex.

Or use your web host's file manager in your control panel.

mfoo
Member
Posted 37 minutes ago #

Hi Mark,

I did what you said and replaced the functions.php file and I still get the same thing:

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Identifier "booking_form" is not defined.' in /home/hippyt5/public_html/airliebeachbackpackers.com/wp-content/themes/adventure-tours/vendor/juice/JuiceContainer.php:116 Stack trace: #0 /home/hippyt5/public_html/airliebeachbackpackers.com/wp-content/themes/adventure-tours/vendor/juice/JuiceContainer.php(89): JuiceContainer->getServiceOrParameter('booking_form') #1 /home/hippyt5/public_html/airliebeachbackpackers.com/wp-content/themes/adventure-tours/functions.php(38): JuiceContainer->offsetGet('booking_form') #2 /home/hippyt5/public_html/airliebeachbackpackers.com/wp-content/themes/adventure-tours/woocommerce/includes/WC_Tour_Integration_Helper.php(62): adventure_tours_di('booking_form') #3 /home/hippyt5/public_html/airliebeachbackpackers.com/wp-content/themes/adventure-tours/woocommerce/includes/WC_Tour_Integration_Helper.php(39): WC_Tour_Integration_Helper->init() #4 /home/hippyt5/public_html/airliebeachbackpackers.com/wp-content/themes/adventure-to in /home/hippyt5/public_html/airliebeachbackpackers.com/wp-content/themes/adventure-tours/vendor/juice/JuiceContainer.php on line 116

Replace the whole theme folder. But realize that if you do that, you lose any other changes you've made to the theme.

mfoo
Member
Posted 10 minutes ago #

Thank's for your tips Mark.

I decided to try another way by just disabling the theme and being able to login that way to perform a backup restore since I had made a backup using "backup guard" plugin. All seems to be working fine now.

Thanks

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 226 تاريخ : يکشنبه 16 خرداد 1395 ساعت: 10:31