Fatal error in class-webdados-fb-open-graph-public.php
-
Dear Support Team,
I hope this message finds you well. I am encountering a critical error on my WordPress website related to the “Open Graph and Twitter Card Tags” plugin.
I am reaching out to request detailed assistance and generate a support ticket for this issue.
Error Details:
Error Type: PHP Fatal error
Error Message: Uncaught TypeError: preg_replace(): Argument #3 ($subject) must be of type array|string, WP_Error given in /var/www/html/wp-includes/formatting.php:5396
Stack Trace: [26-Jul-2023 06:17:36 UTC] PHP Fatal error: Uncaught TypeError: preg_replace(): Argument #3 ($subject) must be of type array|string, WP_Error given in /var/www/html/wp-includes/formatting.php:5396
Stack trace:
#0 /var/www/html/wp-includes/formatting.php(5396): preg_replace()
#1 /var/www/html/wp-content/plugins/wonderm00ns-simple-facebook-open-graph-tags/public/class-webdados-fb-open-graph-public.php(468): wp_strip_all_tags()
#2 /var/www/html/wp-includes/class-wp-hook.php(307): Webdados_FB_Public->insert_meta_tags()
#3 /var/www/html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#4 /var/www/html/wp-includes/plugin.php(474): WP_Hook->do_action()
#5 /var/www/html/wp-includes/general-template.php(3042): do_action()
#6 /var/www/html/wp-content/themes/experience-engine-v2/header.php(100): wp_head()
#7 /var/www/html/wp-includes/template.php(770): require_once(‘…’)
#8 /var/www/html/wp-includes/template.php(716): load_template()
#9 /var/www/html/wp-includes/general-template.php(48): locate_template() #10 /var/www/html/wp-content/themes/experience-engine-v2/category.php(3): get_header()
#11 /var/www/html/wp-includes/template-loader.php(106): include(‘…’)
#12 /var/www/html/wp-blog-header.php(19): require_once(‘…’)
#13 /var/www/html/index.php(17): require(‘…’)
#14 {main}
thrown in /var/www/html/wp-includes/formatting.php on line 5396
Problematic Code:
File: /wordpress/wp-content/plugins/wonderm00ns-simple-facebook-open-graph-tags/public/class-webdados-fb-open-graph-public.php
Line Number: 287
Code Snippet: $fb_url = get_term_link( $term, $term->taxonomy );
WordPress Version: 6.1.3
Plugin Version: 3.1.2
Context: This error seems to be related to generating an URL based on a term in the plugin. However, the specific issue with the data being passed to the preg_replace() function in “formatting.php” is not clear to me.
Additional Information: I have not made any recent changes to the plugin or my WordPress installation before encountering this error.
I kindly request your expertise and support to resolve this issue as soon as possible, as it is affecting the functionality of my website.
Please let me know if you require any further information or if there are any troubleshooting steps I can perform from my end to help identify the problem.
Thank you for your prompt attention to this matter.
Thank you in advanceThe page I need help with: [log in to see the link]
- The topic ‘Fatal error in class-webdados-fb-open-graph-public.php’ is closed to new replies.