Title: Default image path error
Last modified: August 31, 2016

---

# Default image path error

 *  [Serafín Danessa](https://wordpress.org/support/users/sdanessa/)
 * (@sdanessa)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/default-image-path-error/)
 * In the thumBnail template (wri_template/template-wri-thumbnails-widget.php), 
   line 28, there’s a hardcoded path to the YARPP default image, that fails when
   your site isn’t on the main directory of your server, or your wp-content folder
   has been renamed.
    That results in a Fatal PHP Error when there’s not thumbnail
   to show that crashes, logging the following (For indexing purposes):
 * PHP Fatal error: Uncaught exception ‘Exception’ with message ‘Image file not 
   found: ****WRONG PATH***/wp-content/plugins/yet-another-related-posts-plugin/
   default.png’ in ****SITE PATH***/wp-content/plugins/wp-related-items/phpthumb/
   ThumbBaseWRI.inc.php:193
 * [https://wordpress.org/plugins/wp-related-items/](https://wordpress.org/plugins/wp-related-items/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [WebshopLogic](https://wordpress.org/support/users/webshoplogic/)
 * (@webshoplogic)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/default-image-path-error/#post-7306170)
 * Hi Sefod!
 * Thank you for let us know this issue.
 * We have tested this plugin on sites where the site in not in the main directory(
   e.g. the main URL is: [http://yoursite.com/demo1/](http://yoursite.com/demo1/)),
   but do not realized this problem.
    Can you give more information, how can be 
   reproduced this issue?
 * Thanks,
    Peter Rath WebshopLogic

Viewing 1 replies (of 1 total)

The topic ‘Default image path error’ is closed to new replies.

 * ![](https://ps.w.org/wp-related-items/assets/icon-256x256.png?rev=976025)
 * [WP Related Posts and Products (WRI)](https://wordpress.org/plugins/wp-related-items/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-related-items/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-related-items/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-related-items/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-related-items/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-related-items/reviews/)

## Tags

 * [default](https://wordpress.org/support/topic-tag/default/)
 * [path](https://wordpress.org/support/topic-tag/path/)
 * [phpthumb](https://wordpress.org/support/topic-tag/phpthumb/)
 * [template](https://wordpress.org/support/topic-tag/template/)
 * [thumbnail](https://wordpress.org/support/topic-tag/thumbnail/)
 * [YARPP](https://wordpress.org/support/topic-tag/yarpp/)

 * 1 reply
 * 2 participants
 * Last reply from: [WebshopLogic](https://wordpress.org/support/users/webshoplogic/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/default-image-path-error/#post-7306170)
 * Status: not resolved