Title: Catchable fatal error
Last modified: August 22, 2016

---

# Catchable fatal error

 *  Resolved [Cartmell86](https://wordpress.org/support/users/cartmell86/)
 * (@cartmell86)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/catchable-fatal-error-54/)
 * Hello everyone
 * I’ve been trying to research and debug this issue myself with no resolve yet,
   so I am hoping someone can assist me here.
 * [http://beta.albertacraneservice.com/listings/tadano-tr-280xl/](http://beta.albertacraneservice.com/listings/tadano-tr-280xl/)
   is my website (linked right to page required). Whenever I click on the image 
   I get this error
 * Home
    Catchable fatal error: Object of class WP_Error could not be converted 
   to string in /****/******/beta.albertacraneservice.com/wp-content/themes/enigma/
   functions.php on line 235
 * Enigma Theme functions.php line 235 as followed
    `echo get_category_parents($
   cat, TRUE, ' ' . $delimiter . ' ');`
 * OF
 *     ```
       } elseif (is_attachment()) {
               $parent = get_post($post->post_parent);
               $cat = get_the_category($parent->ID);
               $cat = $cat[0];
               echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
               echo '<li><a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a></li> ' . $delimiter . ' ';
               echo $before . get_the_title() . $after;
           }
       ```
   
 * Enigma Theme, with BePro listings plugin
 * If I missed anything, let me know
 * Thank you in advance.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/catchable-fatal-error-54/#post-5928618)
 * – you active theme “enigma” seems to be the issue.
 * – does the error go away if you switched to the default Twenty Fourteen theme
   via [FTP or SFTP ](http://codex.wordpress.org/FTP_Clients)or whatever file management
   application provided by your [hosting provider](https://codex.wordpress.org/Glossary#Hosting_provider)(
   cPanel…)?
 *  Thread Starter [Cartmell86](https://wordpress.org/support/users/cartmell86/)
 * (@cartmell86)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/catchable-fatal-error-54/#post-5928621)
 * Yes, the error goes away on a the default theme Twenty Fourteen.
 * Although I’ve put a ton of dedicated and time into this other theme, I would 
   hate to have to rebuild from the ground up. Suggestions to possible fixes?
 *  Thread Starter [Cartmell86](https://wordpress.org/support/users/cartmell86/)
 * (@cartmell86)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/catchable-fatal-error-54/#post-5928625)
 * Nevermind, I have found a fix, very simple and easy. If anyone else runs into
   this issue with “Enigma” Theme
 * Taken from Line 231 – 238
 *     ```
       } elseif (is_attachment()) {
               $parent = get_post($post->post_parent);
               $cat = get_the_category($parent->ID);
               $cat = $cat[0];
               echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
               echo '<li><a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a></li> ' . $delimiter . ' ';
               echo $before . get_the_title() . $after;
           }
       ```
   
 * Change to
 *     ```
       } elseif (is_attachment()) {
               $parent = get_post($post->post_parent);
               $cat = get_the_category($parent->ID);
               $cat = $cat[0];
              #  echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
               echo '<li><a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a></li> ' . $delimiter . ' ';
               echo $before . get_the_title() . $after;
           }
       ```
   
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/catchable-fatal-error-54/#post-5928627)
 * > Yes, the error goes away on a the default theme Twenty Fourteen.
 * This is a clear indication that your Enigma Theme is broken.
 * If you are not using the latest version of Enigma Theme, try that first.
 * If you are, then bring the issue to its author’s attention at: [https://wordpress.org/support/theme/enigma](https://wordpress.org/support/theme/enigma)
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/catchable-fatal-error-54/#post-5928628)
 * Glad you got it sorted 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Catchable fatal error’ is closed to new replies.

## Tags

 * [BePro](https://wordpress.org/support/topic-tag/bepro/)
 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/catchable-fatal-error-54/#post-5928628)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
