• villarroel

    (@villarroel)


    Hi,

    I’ve added a custom post type to this theme and have created various categories for them. When I try and use the Categories widget, I get this message on the page where it should show up:

    https://istudyenglishonline.com/english-expressions-idioms/

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/content/47/8650547/html/istudyenglishonline/wp-includes/formatting.php on line 2583

    I don’t really know much about CSS, so don’t want to play around too much. I have Path’s child theme installed and my site is https://istudyenglishonline.com/

    Any help would be greatly appreciated.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator t-p

    (@t-p)

    – To rule out any theme-specific issue, try switching to the unedited default Twenty Twelve theme for a moment using the WP dashboard. If you don’t have access to your admin area, you can switch to the default theme by renaming your current theme’s folder in wp-content/themes and adding “-old” to the end of the folder name using via FTP or SFTP or whatever file management application your host provides.

    Thread Starter villarroel

    (@villarroel)

    Thanks for your reply.

    I tried what you suggested and with the Twenty Twelve theme the widget worked in the sense that it displayed the category where I have a post assigned to it (I’ve just assigned one post to one category as a test for now). However, when I clicked on the category name, it said “apologies but there are currently no posts in this category”. So, in summary, changing the theme seemed to fix half the problem.

    Any more help you can provide would be great.
    Thanks!

    Theme Author Sami Keijonen

    (@samikeijonen)

    Is this your custom plugin or public one?

    Thread Starter villarroel

    (@villarroel)

    Hi Sami,

    Are you referring to the Categories plugin? It’s the one that is already installed in WP, without having to add it separately.

    Theme Author Sami Keijonen

    (@samikeijonen)

    No, I meant how have you enabled your custom post type.

    Thread Starter villarroel

    (@villarroel)

    Ah sorry, this is the plugin that I used: https://www.ads-software.com/extend/plugins/custom-post-type-ui/

    However, I’ve tried adding some test blogs to the normal blog section and the categories are not working for that either.

    Theme Author Sami Keijonen

    (@samikeijonen)

    It’s hard to say what is wrong. Have you tried to ask from plugin author?

    Thread Starter villarroel

    (@villarroel)

    I will ask them now to see what they say. As the plugin seemed to work with other themes, I assumed it would be a theme issue.

    thanks

    Theme Author Sami Keijonen

    (@samikeijonen)

    It can be theme issue of course. Try this one. It removes theme widgets and original WP widgets come back alive.

    Put this code in child theme functions.php inside setup function.

    remove_theme_support( 'hybrid-core-widgets' );
    Thread Starter villarroel

    (@villarroel)

    I tried that code and as you say it removes the widget entirely. However, when I place another category widget in it’s place, it doesn’t show up. What I’m wanting to do, is have a list of all my categories which when clicked on show a search results page with all the posts in that category.

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