• Resolved dada606

    (@dada606)


    I copy/pasted the foreground color (white) into the background color box and got this error on my site:

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/content/96/5244096/html/wp-content/themes/wpfolio/functions.php on line 218

    I’ve tried various ways to reset. I reset the function to default through the dashboard. I deactivated and deleted WPFolio, both through WordPress and through FTP. I’ve reinstalled it both ways as well, but when I activate it again I end up with the fatal error.

    I went through my Host to restore to previous versions of the database, but anytime WPFolio is added, the fatal error shows up again. I’ve also manually deleted and replaced the functions.php from the server and uploaded a previous version from the zip on my own HD. I’ve compared the code on line 218 as well, and cannot find what the issue is. But I don’t know anything about code so maybe I’m missing something. All plugins are currently inactive, as far as I can tell this is purely theme related.

    I haven’t done much work, nothing that isn’t easy to redo, just want to get back to a clean slate with WPFolio.

    The site itself is fine, if I activate the default themes everything runs. The last thing I could think to do was follow the thread about upgrading to restore WordPress except like I said; the site seems to be working fine. just some communication between WPFolio and WordPress that won’t fix itself even when I reinstall the theme.

    Thank you for your time.

Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi

    (@esmi)

    Try uploading a new copy of the WPFolio theme.

    Thread Starter dada606

    (@dada606)

    https://davidkalkaphoto.com/

    This is the site. Esmi, I’ve tried that; both through FTP to my host, and through dashboard. This is the source of my frustration. I can’t reset the Theme back to square one.

    The website is fine if I use any default theme, but as soon as WPFolio is on there (even a new version) I get the fatal error. At this point I have deleted all plugins, media, links, pages, posts.

    The only thing left I can think of would be to reinstall WordPress.

    esmi

    (@esmi)

    How handy are you with PhpMyAdmin?

    I’m guessing that the change you made in the theme’s options earlier on is at the root of your problem. Unfortunately, it may have been saved to the wp_options table – which means that every time that you re-activate WPFolio, it picks the error straight back up again. Removing the relevant record in the wp-options table should stop this happening but do remember to backup your database before making any changes.

    Thread Starter dada606

    (@dada606)

    Thanks for the quick response. I’ve only been working with websites and WordPress for about 3 days. Its the best news I’ve had all day. I am not handy with PhpMyAdmin. I installed the plugin and looked at the index of wp_options, but I don’t know what I’m looking for on that screen. There isn’t anything on the site that can’t be quickly and easily reloaded. I never made much headway before I ran into this problem. Can I delete the wp_options file and reinstall it? Otherwise what would be the next step?
    Thanks.

    esmi

    (@esmi)

    It’s not the wp-options.php file that you need to be looking at but the wp_options table in the database. If WPFolio follows the common options process, you need to be looking under option_name in that table for anything that references ‘wpfolio’.

    Thread Starter dada606

    (@dada606)

    I deleted everything and started over. I think what was at the root of the problem actually was a default category called “Uncategorized”. I changed it to something else and when it interacted with widgets and other navigation on the site, it was creating fatal errors. But once I had changed it, there was nothing I could do. Going into the code was too much to deal with, the site is brand new and redoing it only took me an hour once I reinstalled WordPress and WPFolio. Thanks for following up Esmi.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal Error in line 218 of functions.php for WPFolio’ is closed to new replies.