• Hey guys,

    I pushed my plugin today in the SVN but there is an issue and I’m lost to be honest. I was developing / testing my plugin on a live server without having the slightest issue and everything worked as intended so I submitted it to WordPress.

    As my working environment changed it was better to have a local WordPress install as well for easier fixes and access to the files but there’s where everything went wrong.

    I’ve setup a simple xampp localhost server, installed WordPress as usual without any problems and when I’m trying to active my plugin the Admin Panel breaks up with the error PHP Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\wordpress\wp-content\plugins\tattoo-shop-manager\inc\clients.php:1) in D:\xampp\htdocs\wordpress\wp-includes\option.php on line 837 and it just prints out the whole php file inside the Admin Panel above the plugins list.

    This happens at least for now only on my localhost / xampp setup. I’ve tried 5 different online servers that I work with without having any issues.

    Any ideas what could be wrong so I can throw a fix in there as people could benefit from having it on a localhost setup as well? ( I would as well to be honest 😀 ).

    You can always view the full code on the SVN here

    Thank you in advance.

    Best regards,
    Konstantinos

    —- Edit 1 —–
    Oh darn, I had 2 tabs open and it got submitted in the wrong category, it should’ve been under Developing -.- . Really sorry about that.

    • This topic was modified 6 years, 9 months ago by Konstantinos Xenos. Reason: Wrong category
Viewing 1 replies (of 1 total)
  • Thread Starter Konstantinos Xenos

    (@xkon)

    Never mind found it… One of my .php files was starting with <? instead of <?php.

    That did the trick!

    You can close the topic down if you like.

    Sorry again for having it in the wrong forum category.

    Best regards,
    Konstantinos

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin problem – Headers already sent on localhost xampp’ is closed to new replies.