Title: Error in Shortcodes.php file [Solution Inside]
Last modified: September 1, 2016

---

# Error in Shortcodes.php file [Solution Inside]

 *  [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-in-shortcodesphp-file-solution-inside/)
 * My IDXPress installs have been getting the following errors:
 * `PHP Notice: Use of undefined constant mlsnumber - assumed 'mlsnumber' in /wp-
   content/plugins/dsidxpress/shortcodes.php on line 45`
 * Tried to get in contact with Diverse Solutions who wanted my WordPress logins
   which is entirely unnecessary to fix a PHP error, so here’s the solution:
 * On line 45 of `shortcodes.php` in the root of the plugin we see this:
 * `return '<p class="dsidx-error">'.sprintf(DSIDXPRESS_INVALID_MLSID_MESSAGE, $
   atts[mlsnumber]).'</p>';`
 * It’s trying to access an array index by a PHP constant which doesn’t exist – 
   it needs to be changed to this:
 * `return '<p class="dsidx-error">'.sprintf(DSIDXPRESS_INVALID_MLSID_MESSAGE, $
   atts["mlsnumber"]).'</p>';`
 * And the problem is solved.
 * [https://wordpress.org/plugins/dsidxpress/](https://wordpress.org/plugins/dsidxpress/)

The topic ‘Error in Shortcodes.php file [Solution Inside]’ is closed to new replies.

 * ![](https://ps.w.org/dsidxpress/assets/icon-128x128.png?rev=2902025)
 * [Diverse Solutions IDX Real Estate Listings & MLS Search](https://wordpress.org/plugins/dsidxpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dsidxpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dsidxpress/)
 * [Active Topics](https://wordpress.org/support/plugin/dsidxpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dsidxpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dsidxpress/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/error-in-shortcodesphp-file-solution-inside/)
 * Status: not resolved