Title: PHP Errors in Various Plugin Options
Last modified: February 21, 2020

---

# PHP Errors in Various Plugin Options

 *  [Michael Samson](https://wordpress.org/support/users/illuminice/)
 * (@illuminice)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-errors-in-various-plugin-options/)
 * Hello,
 * Just confirming what the other user below reported about the php errors. I can
   see this in the plugin options while running php 7.4.
 * There are error warnings on the following options:
 * **Animation in**
    **Animation out** **On which page the balloon should appear?**
 * …..
 * Warning: Use of undefined constant drop – assumed ‘drop’ (this will throw an 
   Error in a future version of PHP) in /wp-content/plugins/add-to-home-screen-wp/
   options.php on line 114
 * Warning: Use of undefined constant bubble – assumed ‘bubble’ (this will throw
   an Error in a future version of PHP) in /wp-content/plugins/add-to-home-screen-
   wp/options.php on line 115
 * Warning: Use of undefined constant fade – assumed ‘fade’ (this will throw an 
   Error in a future version of PHP) in /wp-content/plugins/add-to-home-screen-wp/
   options.php on line 116
 * Warning: Use of undefined constant drop – assumed ‘drop’ (this will throw an 
   Error in a future version of PHP) in /wp-content/plugins/add-to-home-screen-wp/
   options.php on line 125
 * Warning: Use of undefined constant bubble – assumed ‘bubble’ (this will throw
   an Error in a future version of PHP) in /wp-content/plugins/add-to-home-screen-
   wp/options.php on line 126
 * Warning: Use of undefined constant fade – assumed ‘fade’ (this will throw an 
   Error in a future version of PHP) in /wp-content/plugins/add-to-home-screen-wp/
   options.php on line 127
 * Warning: Use of undefined constant homeonly – assumed ‘homeonly’ (this will throw
   an Error in a future version of PHP) in /wp-content/plugins/add-to-home-screen-
   wp/options.php on line 218
 * Warning: Use of undefined constant allpages – assumed ‘allpages’ (this will throw
   an Error in a future version of PHP) in /wp-content/plugins/add-to-home-screen-
   wp/options.php on line 219
 * …..
 * Hope this helps!
 * ~ Michael
    -  This topic was modified 6 years, 3 months ago by [Michael Samson](https://wordpress.org/support/users/illuminice/).
    -  This topic was modified 6 years, 3 months ago by [Michael Samson](https://wordpress.org/support/users/illuminice/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [Michael Samson](https://wordpress.org/support/users/illuminice/)
 * (@illuminice)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-errors-in-various-plugin-options/#post-12468705)
 * **For anyone wanting to fix this issue directly, simply edit options.php as follows:**
 * Add the $ in front of **homeonly** and **allpages** as shown below:
 *     ```
       <option value="homeonly"<?php echo selected(get_option('pagetarget'),$homeonly); ?>><?php _e('Home Only', 'adhs'); ?></option
       >
       <option value="allpages"<?php echo selected(get_option('pagetarget'),$allpages); ?>><?php _e('All Pages', 'adhs'); ?></option>
       ```
   
 * Add the $ in front of **drop**, **bubble**, and **fade** as shown below:
 *     ```
       <option value="drop"<?php echo selected(get_option('animationin'),$drop); ?>>Drop</option>
       <option value="bubble"<?php echo selected(get_option('animationin'),$bubble); ?>>Bubble</option>
       <option value="fade"<?php echo selected(get_option('animationin'),$fade); ?>>Fade</option>
       ```
   
 * Please note that the drop, bubble, and fade variables are in two locations, for
   the Animation In and Animation Out settings. So make these corrections in both
   spots.
 * This is a simple fix for the plugin author to make btw… =)
 * ~ Michael

Viewing 1 replies (of 1 total)

The topic ‘PHP Errors in Various Plugin Options’ is closed to new replies.

 * ![](https://ps.w.org/add-to-home-screen-wp/assets/icon-256x256.png?rev=1716149)
 * [Add to Home Screen & Progressive Web App](https://wordpress.org/plugins/add-to-home-screen-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-to-home-screen-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-to-home-screen-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/add-to-home-screen-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-to-home-screen-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-to-home-screen-wp/reviews/)

## Tags

 * [PHP errors](https://wordpress.org/support/topic-tag/php-errors/)
 * [plugin options](https://wordpress.org/support/topic-tag/plugin-options/)

 * 1 reply
 * 1 participant
 * Last reply from: [Michael Samson](https://wordpress.org/support/users/illuminice/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/php-errors-in-various-plugin-options/#post-12468705)
 * Status: not resolved