• Hello,

    I have installed this great plugin however when i activate it is giving me this error: (example.com 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/example.com/wp-content/plugins/mini-twitter-feed/mini-twitter-feed.php on line 59

    Please tell me how to fix this.

    Best,

    eeb1

    https://www.ads-software.com/extend/plugins/mini-twitter-feed/

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 oniswap

    (@webdevdesigner)

    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.