Title: Error when creating a plugin
Last modified: August 19, 2016

---

# Error when creating a plugin

 *  [ShMk](https://wordpress.org/support/users/shmk/)
 * (@shmk)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/error-when-creating-a-plugin/)
 * I’m trying to create a plugin, I’ve made a folder in plugins and inserted a php
   file named like the folder in it.
 * in the main php I’ve inserted the description comment like this
    /* Plugin Name:
   My Plugin Name Plugin URI: [http://www.example.tld](http://www.example.tld) Description:
   My Plugin Description Author: Me Version: 1.0.0 Author URI: [http://www.example.tld](http://www.example.tld)*/
 * When I go in the Plugins page I can see my new plugin but the name is not the
   one I’ve inserted in Plugin Name but are ALL the data I’ve inserted and in a 
   single line.
    Something like: Plugin Name: My Plugin NamePluginURI:[http://www.example.tldDescription](http://www.example.tldDescription):
   My Plugin DescriptionAuthor: MeVersion: 1.0.0Author URI: [http://www.example.tld](http://www.example.tld)
 * Anyone could give me a hand?

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

 *  [Ganners](https://wordpress.org/support/users/ganners/)
 * (@ganners)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/error-when-creating-a-plugin/#post-1922695)
 * What if you copy this straight out:
 *     ```
       <?php
       /*
       Plugin Name: Hello-World
       Plugin URI: http://yourdomain.com/
       Description: A simple hello world wordpress plugin
       Version: 1.0
       Author: Me
       Author URI: http://yourdomain.com
       License: GPL
       */
       ?>
       ```
   
 * Does that work? Did you include <?php and ?> in it?
 *  Thread Starter [ShMk](https://wordpress.org/support/users/shmk/)
 * (@shmk)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/error-when-creating-a-plugin/#post-1922709)
 * Yes I’ve inserted the php opening and closing tag.
 * If I copy/paste your code in a new file I get the same error…
 * BUT I’VE FOUND THE SOLUTION 🙂
 * My text editor was saving the file in “MAC” (oh my gosh… and think that I hate
   them so much…) endline format, so I’ve converted to Unix and now is fine 😉

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

The topic ‘Error when creating a plugin’ is closed to new replies.

## Tags

 * [description](https://wordpress.org/support/topic-tag/description/)
 * [name](https://wordpress.org/support/topic-tag/name/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [ShMk](https://wordpress.org/support/users/shmk/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/error-when-creating-a-plugin/#post-1922709)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
