Title: Scope Resolution Operator (::)
Last modified: August 20, 2016

---

# Scope Resolution Operator (::)

 *  [fmiyata](https://wordpress.org/support/users/fmiyata/)
 * (@fmiyata)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/scope-resolution-operator/)
 * I’ve found a minor bug:
    PHP Fatal error: Uncaught exception ‘ReflectionException’
   with message ‘Function class_name::function_name() does not exist’ in wp-content/
   plugins/shortcode-reference/lib/ShortcodeReference.php:63
 * here’s the fix:
    shortcode-reference\lib\ShortcodeReference.php add to line 61:
   if ( (is_string($this->_function_name)) && (strpos($this->_function_name, ‘::’)!
   ==false) ) $this->_function_name = explode(‘::’, $this->_function_name);
 * [http://wordpress.org/extend/plugins/shortcode-reference/](http://wordpress.org/extend/plugins/shortcode-reference/)

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

 *  [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/scope-resolution-operator/#post-3349598)
 * This has also been reported as an issue with the Media Library Assistant plugin:
 * [Small issue](http://wordpress.org/support/topic/small-issue?replies=1)
 * Is there a plan/schedule to update Shrtcode Reference with a fix?
 *  [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/scope-resolution-operator/#post-3349609)
 * I did a bit more testing after applying the fix suggested by fmiyata (above).
   Things improved, but I get these notices in the “Reference” textarea at the bottom
   of the metabox when run with “define(‘WP_DEBUG’, true);” in the wp-config.php
   file (I always run my test system this way). The notices are:
 * `Notice: Undefined property: ShortcodeReference::$_url in C: ... \wp-content\
   plugins\shortcode-reference\lib\ShortcodeReference.php on line 183`
 * `Notice: Undefined variable: final_line in C: ... \wp-content\plugins\shortcode-
   reference\lib\ShortcodeReference.php on line 89`
 * It doesn’t matter which shortcode I click on; these notices always appear.
 * Below the notices is a link that says “PHP native” (all of the shortcodes say
   this) which goes to the [http://www.php.net](http://www.php.net) site. This seems
   inappropriate. Following that is the phpDocs information (which I put in all 
   of my source code). There some minor formatting issues here, e.g., the return
   value for the “mla_attachment_list” shortcode is garbled.
 * The Shortcode reference idea is great, the presentation is good and I like the
   use of the phpDocs information. If there’s anything I can do to help get this
   plugin working smoothly, let me know.

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

The topic ‘Scope Resolution Operator (::)’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [David Lingren](https://wordpress.org/support/users/dglingren/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/scope-resolution-operator/#post-3349609)
 * Status: not resolved