Trying to save a certificate causes errors
-
Hi,
We’re having an issue where trying to save a certificate causes an error. It brings up the WSOD with the message
There has been a critical error on your website.
If I enable debugging, it shows this error:
Recoverable fatal error: Object of class WP_Error could not be converted to string in /home/sites/9a/a/aeb6643cec/public_html/wp-content/plugins/lifterlms/includes/class.llms.certificates.php on line 230
Are you able to help with this?
-
Hi @rokkashthomas
thanks for reporting this.We’ve been able to recreate the unhandled WP_Error issue you reported here, and a fix is on the way.
Although what is happening is that, when you try to export (save) a certificate, a WP_Error is produced during the process and this error is not handled and properly turned into a readable notice.
The fix we’re working on regards to only this part: handling the error so that you won’t see a WSOD but a proper notice that gives you more information on what went wrong.
This means that the main reason why you cannot save a certificate still stands, and needs to be troubleshooted.
Could you please provide us with your LifterLMS System Report.
Also, does it happen with every certificate?
Thanks.
Hi Rocco,
Thanks for getting back to me and it’s good to hear that you’re working on a fix for the error handling. The error seems to occur on all certificates. The LifterLMS system report is below:
Wordpress
——————————————-Home Url: https://exetercct.org
Site Url: https://exetercct.org
Login Url: https://exetercct.org/wp-login.php
Version: 5.4.2
Debug Mode: Yes
Debug Log: Yes
Debug Display: No
Locale: en_GB
Multisite: No
Page For Posts: Not Set
Page On Front: Home (#182) [https://exetercct.org/]
Permalink Structure: /%year%/%monthnum%/%day%/%postname%/
Show On Front: page
Wp Cron: YesSettings
——————————————-Version: 4.3.0
Db Version: 4.3.0
Course Catalog: Course Catalog (#4533) [https://exetercct.org/courses/]
Membership Catalog: Membership Catalog (#4534) [https://exetercct.org/memberships/]
Student Dashboard: Dashboard (#4536) [https://exetercct.org/dashboard/]
Checkout Page: Purchase (#4535) [https://exetercct.org/purchase/]
Course Catalog Per Page: 9
Course Catalog Sorting: menu_order
Membership Catalog Per Page: 9
Membership Catalog Sorting: menu_order
Site Membership: Not Set
Courses Endpoint: my-courses
Edit Endpoint: edit-account
Lost Password Endpoint: lost-password
Vouchers Endpoint: redeem-voucher
Autogenerate Username: yes
Password Strength Meter: yes
Minimum Password Strength: weak
Terms Required: no
Terms Page: Not Set
Checkout Names: required
Checkout Address: required
Checkout Phone: optional
Checkout Email Confirmation: yes
Open Registration: no
Registration Names: required
Registration Address: optional
Registration Phone: hidden
Registration Voucher: optional
Registration Email Confirmation: no
Account Names: required
Account Address: required
Account Phone: optional
Account Email Confirmation: yes
Confirmation Endpoint: confirm-payment
Force Ssl Checkout: no
Country: GB
Currency: GBP
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Decimals: 2
Trim Zero Decimals: no
Recurring Payments: yes
Email From Address: [email protected]
Email From Name: Jack at CITY Community Trust
Email Footer Text:
Email Header Image:
Cert Bg Width: 800
Cert Bg Height: 616
Cert Legacy Compat: yesGateways
——————————————-Manual: Disabled
Manual Logging:
Manual Order: 1Server
——————————————-Mysql Version: 5.5.5
Php Curl: Yes
Php Default Timezone: UTC
Php Fsockopen: Yes
Php Max Input Vars: 2500
Php Max Upload Size: 128 MB
Php Memory Limit: 512M
Php Post Max Size: 128M
Php Soap: Yes
Php Suhosin: No
Php Time Limt: 300
Php Version: 7.3.19
Software: Apache
Wp Memory Limit: 40MBrowser
——————————————-HTTP USER AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Theme
——————————————-Name: CityCommunityTrust
Version: 1.0
Themeuri:
Authoruri:
Template: astra
Child Theme: Yes
Llms Support: YesPlugins
——————————————-Advanced Custom Fields PRO: 5.8.12
Autocomplete WooCommerce Orders: 1.3.1
Autoptimize: 2.7.6
Classic Editor: 1.5
Code Snippets: 2.14.0
Cookie Notice: 1.3.2
Custom Post Type UI: 1.7.4
Disable Cart Fragments: 1.21
Duplicate Page: 4.2
Elementor: 2.9.14
Elementor Pro: 2.10.3
Event Tickets: 4.12.3
Event Tickets Plus: 4.12.3
Event Tickets Plus Extension: Enhance Woo Order Templates: 1.0.2
Extras for Elementor: 2.2.32
FileBird: 3.5
GA Google Analytics: 20200325
Give – Donation Plugin: 2.7.3
Give – Gift Aid: 1.2.4
GiveWP Donation Widgets for Elementor: 1.1.1
LifterLMS: 4.3.0
Mailchimp for WooCommerce: 2.4.3
ManageWP – Worker: 4.9.7
Redirection: 4.8
Safe SVG: 1.9.9
Simple CSS: 1.1.1
User Role Editor: 4.55.1
User Switching: 1.5.5
Webcraftic Robin image optimizer: 1.4.3
WebP Express: 0.17.4
WooCommerce: 4.3.1
WooCommerce Stripe Gateway: 4.5.0
Woo Discount Rules: 2.0.2
Woo Discount Rules PRO 2.0: 1.9.12
Wordfence Security: 7.4.9
WP All Export Pro: 1.5.10
WP Extended Search: 1.3.1
Yoast SEO: 14.6.1Integrations
——————————————-BbPress: No
BuddyPress: NoTemplate Overrides
——————————————-Hi @rokkashthomas
and thanks for the system info.Looks like you have several plugins I can’t event test as they’re premium.
I suspect a plugin (or child-theme) conflict, but cannot be sure 100%. The best would be that you create a staging website, disable all your plugins and switch to a default theme, and see if the issue still occurs, and go ahead enabling the plugins one by one in order to find the culprit, if any.Anyways, we’ve just released a new version that, as said in my previous reply, will handle the error and possibly give you more information on what’s causing it.
Best
Since I haven’t heard back from you in a week I’m going to mark this thread as resolved. Don’t worry, if you have more questions or still need help just hit reply and let me know!
Have a great day!
The topic ‘Trying to save a certificate causes errors’ is closed to new replies.