• I have really enjoyed the plugin! Ran into a problem this morning when I went to publish a question. I got this error: Catchable fatal error: Object of class WP_Error could not be converted to string in /home/agproshp/public_html/wp-admin/includes/class-wp-posts-list-table.php on line 778

    I am not sure what to do. Do you know what the problem is? As you can see form the screen shot, I should be showing 16 FAQ, but only the one appears, and that with an error. Please help!

    Woocommerce: 2.3.13
    Woocommerce Product FAQ: 3.0.2
    Wordpress: 4.2.2
    PHP Version 5.4.42
    website: http://www.airgunproshop.com

    https://wordpress.org/plugins/woocommerce-product-faqs/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter sdbish

    (@sdbish)

    Ok I got that post to go to the trash and all my others appeared. Then I tried to edit one and I got this error:
    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/agproshp/public_html/wp-includes/formatting.php on line 3106

    Thread Starter sdbish

    (@sdbish)

    Now I see this:

    Warning: trim() expects parameter 1 to be string, object given in /home/agproshp/public_html/wp-includes/link-template.php on line 3109

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/agproshp/public_html/wp-includes/formatting.php on line 3106

    Thread Starter sdbish

    (@sdbish)

    I uninstalled 3.0.2 and reinstalled 2.04 and there was no change. I still have the error. Any chance of fixing this or do I need to remove the plugin?

    Thread Starter sdbish

    (@sdbish)

    I cannot delete FAQ’s either. I get this error:

    Warning: parse_url() expects parameter 1 to be string, object given in /home/agproshp/public_html/wp-content/plugins/wordpress-seo-premium/premium/classes/class-post-watcher.php on line 249

    Warning: Cannot modify header information – headers already sent by (output started at /home/agproshp/public_html/wp-content/plugins/wordpress-seo-premium/premium/classes/class-post-watcher.php:249) in /home/agproshp/public_html/wp-includes/pluggable.php on line 1196

    What can I do to fix this?????

    Thread Starter sdbish

    (@sdbish)

    tried to add a new FAQ post, and got this error:
    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/agproshp/public_html/wp-includes/formatting.php on line 3106

    Thread Starter sdbish

    (@sdbish)

    this error as well:

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/agproshp/public_html/wp-content/plugins/woocommerce-product-faqs/admin/admin.php on line 240

    Plugin Author Josh Levinson

    (@joshlevinson)

    Have you tried deactivating wordpress-seo-premium and seeing if issues still persist?

    Thread Starter sdbish

    (@sdbish)

    Yes, SEO disabled = no change.
    Yoast analytics off = no change
    re-saving permalink structure = no change
    I have also opened each of the php files identified in the errors above and looked at the line referenced. I have removed any line spacing and deleted anything that appeared at the bottom of the files and added ?> to the end of each file. There is no change. I returned the files to the original awaiting response.
    I can give you login info so you look at what is going on if you like, but this is a production site, cant leave it inoperable for too long.

    Thread Starter sdbish

    (@sdbish)

    I was looking at aother plugin and I wasn’t properly checking (in php) to make sure the variable as actually an array and not a string. The plugin was throwing similar errors to what we have here. Could it likely be a similar issue? Am I the only one with this problem?

    Thread Starter sdbish

    (@sdbish)

    this had not resolved. Any suggestions / ideas on how to repair?

    Thread Starter sdbish

    (@sdbish)

    Even if I try to save a FAQ as pending I get this error:
    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/agproshp/public_html/wp-includes/formatting.php on line 3177

    Is this problem only with my install? Is this being worked on? Please let me know, I really would like the plugin working properly. What info can I provide to assist?

    Thread Starter sdbish

    (@sdbish)

    Upgrade to wordpress 4.2.4 had no effect. Is this problem only on my site or are others having it as well? What can be done to correct it?

    Hi all,

    Thanks Josh for great plugin!

    I have also got same issue, and here is how I fixed it:

    https://github.com/evgalak/woocommerce-product-faqs/commit/58374ca0c6136827e8233cbda26d100186c4f15a

    Ash

    (@ashbryant)

    @evgalak Thanks, I was just about to say I was having the same issue and then you posted that. Great fix thanks.

    Thread Starter sdbish

    (@sdbish)

    Josh,
    Will you be completing an update to correct this?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Catchable Fatal error’ is closed to new replies.