Posted: February 25, 2013 at 12:25 pm
|
Receiving the following error message when clicking the PDF icon for an attendee:
Removed full directory link for privacy. Please advise, thanks! |
What directory is it trying to load the invoice files from? The core plugin or the uploads directory? |
|
What directory is it trying to load the invoice files from? The core plugin or the uploads directory? |
|
|
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 |
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. |
|
|
I tried this fix, but it did not seem to fix the situation. |
Hi Gabriele, Which fix did you try? I listed two different things to try. |
|
|
I deactivated then reactivated the invoice payment option in Event Espresso>Payment settings. |
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:
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. |
|
|
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. |
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. |
|
|
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 |
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/. |
|
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.