Support

Home Forums Event Espresso Premium Fatal error: Class FPDF

Fatal error: Class FPDF

Posted: May 22, 2013 at 8:32 am


Gabriel Lai

May 22, 2013 at 8:32 am

Hi,

I have the following error. Please help

Fatal error: Class ‘FPDF’ not found in /home/panasia/public_html/panasiahash.com/wp-content/uploads/espresso/gateways/invoice/function.pdf.php on line 8


Josh

  • Support Staff

May 22, 2013 at 9:52 am

Hi Gabriel,

The that you’re seeing error indicates that the /invoice gateway folder was copied over to /wp-content/uploads/espresso/gateways, but something may not have been copied over.

There are a couple ways to fix this:

1) Copy over the entire /invoice gateway folder from /event-espresso/gateways to /wp-content/uploads/espresso/gateways and deactivate/reactivate the invoice gateway.

or

2) Remove the gateway files from /wp-content/uploads/espresso/gateways and reset the active gateways option value.
If you’re familiar with adding functions to your theme’s functions.php file, you can reset the active gateways option value by running this code from your theme’s functions.php file (it will run if you refresh a page in the admin and it only needs to be run once):

update_option('event_espresso_active_gateways','');

The above code will wipe the active gateways option clean, so it’s important to remove the code from functions.php after it’s run, then go back and re-activate the gateways that were previously active.


Gabriel Lai

May 23, 2013 at 8:21 am

Hi Josh,

Do you meant by removing all folders & files in /wp-content/uploads/espresso/gateways ?

This will remove all folders. Is this what you meant?


Seth Shoultes

  • Support Staff

May 23, 2013 at 10:25 am

Yes, remove all the folders in /wp-content/uploads/espresso/gateways.


Gabriel Lai

May 23, 2013 at 10:51 am

I have this after doing the option 2

Warning: Invalid argument supplied for foreach() in /home/panasia/public_html/panasiahash.com/wp-content/plugins/event-espresso/includes/functions/main.php on line 1086Warning: Cannot modify header information – headers already sent by (output started at /home/panasia/public_html/panasiahash.com/wp-content/plugins/event-espresso/includes/functions/main.php:1086) in/home/panasia/public_html/panasiahash.com/wp-includes/pluggable.php on line 876


Seth Shoultes

  • Support Staff

May 23, 2013 at 11:04 am

Try going to your gateways page and resaving the settings for your gateways.


Gabriel Lai

May 23, 2013 at 11:32 am

Now it’s running as per normal, but when I click on download PDF invoice, i have the following error again

Fatal error: Class ‘FPDF’ not found in /home/panasia/public_html/panasiahash.com/wp-content/plugins/event-espresso/gateways/invoice/function.pdf.php on line 8


Seth Shoultes

  • Support Staff

May 23, 2013 at 11:41 am

Mind if we take a look? Please send WordPress admin level log in credentials via this form:
https://eventespresso.com/send-login-details/

The support post ‘Fatal error: Class FPDF’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso