Title: [Plugin: Custom Post Widget] Admin Errors: undefined variable
Last modified: August 20, 2016

---

# [Plugin: Custom Post Widget] Admin Errors: undefined variable

 *  Resolved [squidz](https://wordpress.org/support/users/squidz/)
 * (@squidz)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-admin-errors-undefined-variable/)
 * I have been having a problem in the WP admin with various pop ups related to 
   the WPML Translate plugin and Custom Post Widget. WPML has some links in the 
   admin that allow me to view translator bios, or get more info regarding a translation
   quote. However, when I click this links, the pop up returns 404. I also have 
   the WPML guys looking at this.
 * The error log, however, show that when I click on these WPML related links the
   error results from custom post widget. See below. Please advise if you can help
   resolve.
 * [03-Aug-2012 13:47:31] PHP Notice: Undefined variable: custom_post_id in /myserverpath/
   wp-content/plugins/custom-post-widget/popup.php on line 36
 * [http://wordpress.org/extend/plugins/custom-post-widget/](http://wordpress.org/extend/plugins/custom-post-widget/)

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

 *  Plugin Author [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * (@vanderwijk)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-admin-errors-undefined-variable/#post-2941271)
 * Hi Squidz,
 * I’m not sure if I correctly understood your issue, but I have created a new version
   of my plugin which should take care of the error message.
 * Could you please download and install version 1.9.8 and let me know if it resolves
   the issue? If not, please try to further explain the situation, and include screenshots
   of the error.
 * [http://downloads.wordpress.org/plugin/custom-post-widget.1.9.8.zip](http://downloads.wordpress.org/plugin/custom-post-widget.1.9.8.zip)
 *  Thread Starter [squidz](https://wordpress.org/support/users/squidz/)
 * (@squidz)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-admin-errors-undefined-variable/#post-2941312)
 * Thanks Johan. I’ll try it out and report back!
 *  Thread Starter [squidz](https://wordpress.org/support/users/squidz/)
 * (@squidz)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-admin-errors-undefined-variable/#post-2941317)
 * Johan –
 * I loaded the new version. I’m not longer getting the error in my error_log about
   the popup. It hasn’t solve the problem so perhaps it has nothing to do with the
   custom-post-widget.
 * BTW, I love your widget. It has become an essential one to allow end users to
   format rich widget content without HTML.
 *  Plugin Author [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * (@vanderwijk)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-admin-errors-undefined-variable/#post-2941318)
 * For testing I have installed the WPML Translation Management plugin, and I don’t
   get any 404 errors when clicking on the links in the blue Professional translations
   box so if all files of the Translation Management Plugin have uploaded correctly
   I guess there might be some kind of permalinks setting causing your problem.
 * As the debug error has been solved now, I’ll release version 1.9.8 via the automatic
   update when the next version of WordPress is available.
 * I’m glad you like my plugin and I would really appreciate it if you could favorite
   and/or rate it in the plugin directory: [http://wordpress.org/extend/plugins/custom-post-widget/](http://wordpress.org/extend/plugins/custom-post-widget/)

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

The topic ‘[Plugin: Custom Post Widget] Admin Errors: undefined variable’ is closed
to new replies.

 * ![](https://ps.w.org/custom-post-widget/assets/icon.svg?rev=2884166)
 * [Content Blocks (Custom Post Widget)](https://wordpress.org/plugins/custom-post-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-widget/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-admin-errors-undefined-variable/#post-2941318)
 * Status: resolved