Support

Home Forums Event Espresso Premium Fatal error: Class 'FPDF' not found

Fatal error: Class 'FPDF' not found

Posted: February 25, 2013 at 12:25 pm

Viewing 12 reply threads


gwinnettehc

February 25, 2013 at 12:25 pm

Receiving the following error message when clicking the PDF icon for an attendee:

Fatal error: Class 'FPDF' not found in /home/xxx/xxx/xxx/xxx/xxx/xxx/invoice/function.pdf.php on line 8

Removed full directory link for privacy.

Please advise, thanks!


Seth Shoultes

  • Support Staff

February 25, 2013 at 12:35 pm

What directory is it trying to load the invoice files from? The core plugin or the uploads directory?


Seth Shoultes

  • Support Staff

February 25, 2013 at 12:35 pm

What directory is it trying to load the invoice files from? The core plugin or the uploads directory?


gwinnettehc

February 26, 2013 at 7:43 am

This is the PDF link in Espresso.

https://gwinnettehc.org/?download_invoice=true&attendee_id=348&r_id=5127caa469e1a4.01478681

This is the error message

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


Josh

  • Support Staff

February 26, 2013 at 9:28 am

Hi Gabriele,

It looks like it’s trying to load the invoice gateway files from /wp-content/uploads/espresso/gateways. If you can deactivate then reactivate the invoice payment option in Event Espresso>Payment settings, that will reset the gateway option. If you cannot access the gateway options, you can copy the /invoice folder from the Event Espresso plugin’s /gateway folder over to /wp-content/uploads/espresso/gateways.


gwinnettehc

February 26, 2013 at 11:26 am

I tried this fix, but it did not seem to fix the situation.


Josh

  • Support Staff

February 26, 2013 at 11:39 am

Hi Gabriele,

Which fix did you try? I listed two different things to try.


gwinnettehc

February 26, 2013 at 12:09 pm

I deactivated then reactivated the invoice payment option in Event Espresso>Payment settings.


Josh

  • Support Staff

February 26, 2013 at 1:51 pm

Hi Gabrielle, If there are any invoice gateway files in /wp-content/uploads/espresso/gateways, then it will try to load those first. You could try copying over the /gateways/invoice directory from the Event Espresso plugin into /wp-content/uploads/espresso/gateways. -or- Another way to fix this is by manually deactivating all the current gateways by adding this line to your theme’s functions php file and save:

update_option('event_espresso_active_gateways',''); 

Then refresh any page on your site to run the above code. Then you can remove the above code from functions.php and save functions.php. Now that the active gateways settings are reset, you’ll need to remove the invoice folder from /wp-content/uploads/espresso/gateways. Then you can go back to your payments options page and reactivate the gateways you are using.


gwinnettehc

February 27, 2013 at 2:38 pm

Thanks Josh, I tried adding the update_option code but I’m still getting the same error message.

It start showing a massive amount of error messages on the Payment page once I added that line of code to the functions.php file and deleted the invoice folder.


Josh

  • Support Staff

February 28, 2013 at 8:02 am

Hi Gabriele,

Did you remove the update_option code after running it? If not, it needs to be removed.

I would check and make sure that there are still gateway files in the /gateways directory of the event espresso plugin. Once verified, you’ll need to go to the payment options screen and reactivate the gateways you are using.


gwinnettehc

March 1, 2013 at 10:45 am

I can now see and print the PDF invoices.

However, I can not longer see any of my payments settings in Espresso and get this error message.

Manage Payment Gateways

Fatal error: Cannot redeclare event_espresso_invoice_payment_settings() (previously declared in /home/gehc/public_html/wp-content/uploads/espresso/gateways/invoice-original/settings.php:4) in /home/gehc/public_html/wp-content/uploads/espresso/gateways/invoice/settings.php on line 81


Josh

  • Support Staff

March 1, 2013 at 12:26 pm

Hi Gabriele,

The /wp-content/uploads/espresso/gateways/invoice-original folder should be removed. It’s conflicting with the the code in wp-content/uploads/espresso/gateways/invoice/.

Viewing 12 reply threads

The support post ‘Fatal error: Class 'FPDF' not found’ 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