Title: Undefined constant
Last modified: August 24, 2016

---

# Undefined constant

 *  Resolved [ertik](https://wordpress.org/support/users/ertik/)
 * (@ertik)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-constant-3/)
 * Notice: Undefined index: uzivatel in /var/www/virtual/sokoli/web/www/wp-content/
   plugins/wp-rajce-galerie/wp-rajce-galerie.php on line 30
 * –>> if ($atts[‘uzivatel’] == NULL) {
 * and plugin don’t work.
 * I know it is 0.8, but 😉
 * [https://wordpress.org/plugins/wp-rajce-galerie/](https://wordpress.org/plugins/wp-rajce-galerie/)

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

 *  Plugin Author [mikk_cz](https://wordpress.org/support/users/mikk_cz/)
 * (@mikk_cz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-constant-3/#post-5971470)
 * Thank you, reported [https://github.com/MikkCZ/wp-rajce-galerie/issues/1](https://github.com/MikkCZ/wp-rajce-galerie/issues/1)
 *  Plugin Author [mikk_cz](https://wordpress.org/support/users/mikk_cz/)
 * (@mikk_cz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-constant-3/#post-5971471)
 * This should be avoided by calling `shortcode_atts` function few lines above (
   but tonight I am unable to test it in more aggressive way). Can you please provide
   me more information for testing (WordPress and PHP version and the broken shortcode)?
 *  Thread Starter [ertik](https://wordpress.org/support/users/ertik/)
 * (@ertik)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-constant-3/#post-5971472)
 * Latest WP (4.1.1) cz, date of install December.
 * lebeda.skauting.cz/phpinfo
 *  Plugin Author [mikk_cz](https://wordpress.org/support/users/mikk_cz/)
 * (@mikk_cz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-constant-3/#post-5971483)
 * Thank you, I’ll try my best to fix and test it during weekend. Despite I’m still
   unable to reproduce it in a way the plugin won’t work, can you please copy here
   the exact shortcode you’ve used? E.g. `[rajce uzivatel="uživatel" limit="25" 
   popisky="false"]`.
 *  Plugin Author [mikk_cz](https://wordpress.org/support/users/mikk_cz/)
 * (@mikk_cz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-constant-3/#post-5971484)
 * Seems I’ve found it. Can you please test with [https://github.com/MikkCZ/wp-rajce-galerie/archive/master.zip](https://github.com/MikkCZ/wp-rajce-galerie/archive/master.zip)?
 * To make the plugin work, you have to provide the `uzivatel` attribute.
 *  Thread Starter [ertik](https://wordpress.org/support/users/ertik/)
 * (@ertik)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-constant-3/#post-5971517)
 * I use Widget area – standard mode
 *  Plugin Author [mikk_cz](https://wordpress.org/support/users/mikk_cz/)
 * (@mikk_cz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-constant-3/#post-5971520)
 * Please try current development version linked in my previous reply and let me
   know, if it’s OK.
 *  Plugin Author [mikk_cz](https://wordpress.org/support/users/mikk_cz/)
 * (@mikk_cz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-constant-3/#post-5971588)
 * Fixed in 0.8.1.

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

The topic ‘Undefined constant’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-rajce-galerie.svg)
 * [WP Rajče galerie](https://wordpress.org/plugins/wp-rajce-galerie/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rajce-galerie/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rajce-galerie/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rajce-galerie/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rajce-galerie/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rajce-galerie/reviews/)

## Tags

 * [php function](https://wordpress.org/support/topic-tag/php-function/)

 * 8 replies
 * 2 participants
 * Last reply from: [mikk_cz](https://wordpress.org/support/users/mikk_cz/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-constant-3/#post-5971588)
 * Status: resolved