Title: [Plugin: LastPostsImage] Broken, via undefined function
Last modified: August 19, 2016

---

# [Plugin: LastPostsImage] Broken, via undefined function

 *  [SmartLikeTruck](https://wordpress.org/support/users/smartliketruck/)
 * (@smartliketruck)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-lastpostsimage-broken-via-undefined-function/)
 * PHP Fatal error: Call to undefined function add_action() /wp-content/plugins/
   lastpostsimage/last-posts-image/last-posts-image.php line 266
 * I don’t speak PHP, so I’m currently unable to define the function, looking into
   it though!

Viewing 1 replies (of 1 total)

 *  Thread Starter [SmartLikeTruck](https://wordpress.org/support/users/smartliketruck/)
 * (@smartliketruck)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-lastpostsimage-broken-via-undefined-function/#post-1946425)
 * Okay, after poking it with a stick for a while, here is how I got the plugin 
   working
 * Delete “/wp-content/plugins/lastpostsimage/forwarder.php”
 * Move “/wp-content/plugins/lastpostsimage/last-posts-image/last-posts-image.php”
   to “/wp-content/plugins/lastpostsimage”
 * Edit
    “/wp-content/plugins/lastpostsimage/last-posts-image.php” line 144 from“
   $path = ‘/wp-content/plugins/last-posts-image/last-posts-image.php’; ###TODO###
   get path dynamicly”
 * to
 *  “$path = ‘/wp-content/plugins/lastpostsimage/last-posts-image.php’; ###TODO###
   get path dynamicly”
 * I’m not sure if this is the “right” way to fix this plugin, but it is working
   for me. Seems the author didn’t like how the directory structure worked in older
   versions and forward.php was to fix that, but just botched it further. Anywho,
   hope this works for you.
 * Now that I’ve got the basic gist of it, may have to try including truetype fonts
   and outputing to image format that is text friendlier.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: LastPostsImage] Broken, via undefined function’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/lastpostsimage.svg)
 * [LastPostsImage](https://wordpress.org/plugins/lastpostsimage/)
 * [Support Threads](https://wordpress.org/support/plugin/lastpostsimage/)
 * [Active Topics](https://wordpress.org/support/plugin/lastpostsimage/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lastpostsimage/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lastpostsimage/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [SmartLikeTruck](https://wordpress.org/support/users/smartliketruck/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-lastpostsimage-broken-via-undefined-function/#post-1946425)
 * Status: not resolved