Fatal Error MarketPress - Catchable fatal error: Object of class WP_Error could not be converted to

When I select a category I get this error:

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

Any ideas how to fix this?

  • aecnu

    Greetings MrBill,

    The first thing i would do is to deactivate the plugin and then FTP it into place using FTP over write and then see if there are any errors within the FTP and if no errors in FTP then check if the error you mentioned still exists.

    If it does then it is time for standard troubleshooting protocol.

    Standard plugin trouble shooting protocol - first to switch to the Twenty Eleven/Twelve theme just long enough to check for the problem - if the problem still exists next involves deactivating all plugins except the plugin in question and then see if the issue still exists.

    If it does not, then you want to activate plugins one at a time testing in between to see if the issue returns. Even when you find one plugin, it may be in your interest to deactivate the problem plugin and continue testing the rest of the plugins to insure no others are also conflicting.

    You will know the conflict when the issue returns and which plugin(s) you activated that cause the issue.

    Are you running caching on the WordPress installation in question by any chance?

    Are you using two completely different browsers for developing and testing? i.e. Firefox for developing and Chrome for testing and dumping the caching and cookies of the test browser before each test?

    Please advise if there are any plugin conflicts and if so what the plugins are that are conflicting.

    Cheers, Joe

  • MrBill

    Are you running caching on the WordPress installation in question by any chance?
    No.

    Are you using two completely different browsers for developing and testing? i.e. Firefox for developing and Chrome for testing and dumping the caching and cookies of the test browser before each test?
    Yes.

    Please advise if there are any plugin conflicts and if so what the plugins are that are conflicting.
    No plugins conflict.

    I still have the error problem. This is the action I've taken but i still have the problem:

    - Fresh database
    - Fresh WordPress
    - Fresh Genesis Theme
    - Fresh MarketPress Plugin
    - The plugin works without issues in the TwentyTwelve default theme
    - It gets the error message when using Genesis Framework theme (no child theme)
    - It gets the error message when using a Genesis Child Theme

    I received a reply from StudioPress regarding this issue and they say it's your plugin that is causing the issue.

    "StudoPress Says This: This is actually a problem with their plugin. It is just being highlighted in Genesis and a few other themes. Something is causing an error to be returned for one of the variables Genesis uses. The way the variable is being used it is causing the error you are seeing. This issue will exist in general but themes that aren't using the value like that will not show the error."

  • aecnu

    Greetings MrBill,

    Thank you for all your additional input and clarification of what we are working with there.

    Have you tried using the following shortcodes to intergrate with Genesis by any chance?

    For Categories:

    [mp_list_categories] ~or~ [mp_dropdown_categories]

    For Products:
    [mp_list_products list_view="0"]

    Also here is a specific article regarding the very topic of MarketPress and Genesis compatibility which includes a custom code snippet for Genesis: https://premium.wpmudev.org/forums/topic/marketpress-genesis-compability

    Let me know if either of these suggestions works for us.

    Please advise.

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.