WordPress.org

Ready to get started?Download WordPress

Forums

Mini twitter feed
Mini Twitter giving error (3 posts)

  1. eeb1
    Member
    Posted 1 year ago #

    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

    http://wordpress.org/extend/plugins/mini-twitter-feed/

  2. breinsch
    Member
    Posted 1 year ago #

    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.

  3. hectopod
    Member
    Plugin Author

    Posted 1 year ago #

    With the new version, the error should be gone.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags