Title: &#8216;Undefined variable: post&#8217;
Last modified: February 8, 2017

---

# ‘Undefined variable: post’

 *  [CAstijnen](https://wordpress.org/support/users/castijnen/)
 * (@castijnen)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-post-4/)
 * I get a php notice: NOTICE: /srv/www/example.com/current/web/app/plugins/optimizely/
   edit.php:13 – Undefined variable: post
 * I see it tries to access ‘$post->ID’ but there’s nothing to pass $post to the
   function ‘get_full_permalink’. Can you fix this please? 🙂
 * thanks!

The topic ‘‘Undefined variable: post’’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/optimizely_004a69.svg)
 * [Optimizely Classic](https://wordpress.org/plugins/optimizely/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/optimizely/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/optimizely/)
 * [Active Topics](https://wordpress.org/support/plugin/optimizely/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/optimizely/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/optimizely/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [CAstijnen](https://wordpress.org/support/users/castijnen/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-post-4/)
 * Status: not resolved