Title: error class-spu-rules.php
Last modified: March 8, 2017

---

# error class-spu-rules.php

 *  Resolved [Ziqurrat](https://wordpress.org/support/users/ziqurrat/)
 * (@ziqurrat)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-class-spu-rules-php/)
 * I want to open a poup on click on a link. I use this code:
    `<a href="#spu-3"
   title="Login">login</a>`
 * When I click, pop up doesn’t open.
    I get this error `Notice: Undefined variable:
   options in /wp-content/plugins/popups/public/includes/class-spu-rules.php on 
   line 621`
 * Any help?
 * Federica

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

 *  Thread Starter [Ziqurrat](https://wordpress.org/support/users/ziqurrat/)
 * (@ziqurrat)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-class-spu-rules-php/#post-8888260)
 * If I change the code of the link like this
    `<a href="#" title="Login" class="
   spu-open-3">login</a>`
 * popup opens but I still get the notice.
 * Maybe you can update your FAQ (How to open a popup by pressing a link or button?)
   
   and gist ([https://gist.github.com/timersys/d68690a85aed14a02318](https://gist.github.com/timersys/d68690a85aed14a02318))
 * Thanks
 * Federica
 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-class-spu-rules-php/#post-8896729)
 * Hi Federica, I will fix the undefined error on next version or you can grab developer
   versio in [https://github.com/timersys/popups/tree/develop](https://github.com/timersys/popups/tree/develop)
 * The method with #spu-123 should work, not sure why is not working for you without
   viewing the site.
 * If you like the plugin / support please [leave a short review](https://wordpress.org/support/view/plugin-reviews/popups?filter=5).
   It’s a tremendous help for us!
 * Thanks
 * Regards
    -  This reply was modified 9 years, 3 months ago by [Damian](https://wordpress.org/support/users/timersys/).

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

The topic ‘error class-spu-rules.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/popups_efeef0.svg)
 * [Popups - WordPress Popup](https://wordpress.org/plugins/popups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popups/)
 * [Active Topics](https://wordpress.org/support/plugin/popups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popups/reviews/)

## Tags

 * [notice](https://wordpress.org/support/topic-tag/notice/)
 * [onclick](https://wordpress.org/support/topic-tag/onclick/)

 * 2 replies
 * 2 participants
 * Last reply from: [Damian](https://wordpress.org/support/users/timersys/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/error-class-spu-rules-php/#post-8896729)
 * Status: resolved