Php8 upgrade causes...
Clear all

Php8 upgrade causes a conflict with the Woocommerce PDF voucher plugin

3 Posts
2 Users
Posts: 6
Active Member
Topic starter

Our hosting service is retiring php7.4 in January so a resolution is quite urgent.

After upgrading to php8, the wpforo plugin causes the woocomerce PDF voucher plugin to break. I have disabled wpforo and it works fine. When I revert back to php7.4 both plugins work as expected. This is the error:

2022-11-21T21:04:21+00:00 CRITICAL Uncaught TypeError: property_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in .../wp-content/plugins/wpforo/includes/functions.php:2911 Stack trace: #0 .../wp-content/plugins/wpforo/includes/functions.php(2911): property_exists(NULL, 'components') #1 .../wp-content/plugins/wpforo/includes/functions-template.php(106): wpforo_setting('components', 'page_title') #2 .../wp-includes/class-wp-hook.php(308): wpforo_hide_title('An awesome title', 134120) #3 .../wp-includes/plugin.php(205): WP_Hook->apply_filters('An awesome title', Array) #4 .../wp-includes/post-template.php(173): apply_filters('the_title', 'An awesome title', 134120) #5 .../wp-content/plugins/woocommerce-pdf-product-vouchers/includes/customizer/class-wc-pdf-product-vouchers-customizer.php(638): get_the_title(Object(WP_Post))


### WordPress Environment ###

WordPress address (URL): —
Site address (URL): —
WC Version: 7.1.0
REST API Version: ✔ 7.1.0
WC Blocks Version: ✔ 8.7.5
Action Scheduler Version: ✔ 3.5.2
Log Directory Writable: ✔
WP Version: 6.1.1
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: –

### Server Environment ###

Server Info: nginx/1.21.3
PHP Version: 7.4.33
PHP Post Max Size: 128 MB
PHP Time Limit: 300
PHP Max Input Vars: 10000
cURL Version: 7.68.0

SUHOSIN Installed: –
MySQL Version: 5.5.5-10.3.34-MariaDB-0ubuntu0.20.04.1
Max Upload Size: 128 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

### Database ###

WC Database Version: 7.1.0

### Security ###

Secure connection (HTTPS): ✔
Hide errors from visitors: ✔

### Active Plugins (48) ###

WooCommerce PDF Product Vouchers: by SkyVerge – 3.8.0
wpForo: by gVectors Team – 2.1.1

Posted : 23/11/2022 9:20 am
Posts: 2335
Support Team Admin

Hi @diyafury,

The problem was that wpForo conflicted with WooCommerce PDF product vouchers. 

The Problem has been fixed and would be available in the new version of wpForo.

If you need to fix it now, we can do it in your website, just need to send Admin Access Credentials to info[at] 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Posted : 24/11/2022 11:42 am
diyafury reacted
Posts: 6
Active Member
Topic starter

@chris That's great, thank you for such a speedy resolution! We have until January before we need to upgrade to Php8, if you will be rolling out an update before then, then we're happy to hang on and stick with php7.4 until then.

Posted : 24/11/2022 1:56 pm
Chris reacted