Support » Plugin: Mini twitter feed » Mini Twitter giving error

  • Hello,

    I have installed this great plugin however when i activate it is giving me this error: ( is suppose to be the name of my site not to avoid disclosure)

    Notice: Use of undefined constant mtf_create_shortcode – assumed ‘mtf_create_shortcode’ in /var/www/ on line 59

    Please tell me how to fix this.



Viewing 2 replies - 1 through 2 (of 2 total)
  • I ran into this error too, WP 3.5.1 and from what I could tell, it was causing an invalid JSON response from the Media Gallery in debug mode by adding the error message at the top of the JSON response, causing the Add Media and Featured Image buttons to only show an empty gallery. (Not the fault of this plugin in my opinion, I don’t think an unformatted and unhandled debug message should appear in an unrelated JSON response).

    Line 59 is:
    add_shortcode(‘minitwitter’, mtf_create_shortcode);

    it should be:
    add_shortcode(‘minitwitter’, ‘mtf_create_shortcode’);

    Properly formatting this line according to the Codex (enclosing mtf_create_shortcode in quotes) removes the debug message and fixed the Add Media/Featured Image issue for me as well.

    Plugin Author hectopod


    With the new version, the error should be gone.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mini Twitter giving error’ is closed to new replies.