DevinVinson / WordPress-Plugin-Boilerplate

[WordPress] A foundation for WordPress Plugin Development that aims to provide a clear and consistent guide for building your plugins.
http://wppb.io
7.67k stars 2.25k forks source link

Error 500 on windows servers #30

Closed artboard-studio closed 11 years ago

artboard-studio commented 11 years ago

Hi

Whenever I develop a plugin using Plugin/Widget Boilerplate, I have no problem using them on linux severs, but once I install it on a wordpress that is running on a windows server I get error 500 and the whole wordpress installation collapses.

Any idea how to fix it?

tommcfarlin commented 11 years ago

Is this still happening in 2.0 of the boilerplate?

artboard-studio commented 11 years ago

I have not tested it with version 2.0 yet.

Here is the log I got from a server of one of my clients:

origina: msgid "" msgstr "" "Project-Id-Version: WordPress Widget Boilerplate\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2011-07-11 12:22-0500\n" "PO-Revision-Date: 2011-07-11 12:22-0500\n" "Last-Translator: \n" "Language-Team: Tom McFarlin tom@tommcfarlin.com\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-KeywordsList: __;_e\n" "X-Poedit-Basepath: .\n" "X-Poedit-Language: English\n" "X-Poedit-Country: UNITED STATES\n" "X-Poedit-SourceCharset: utf-8\n" "X-Poedit-SearchPath-0: ..\n"

to

msgid "0001" msgstr "Error encoding" "Project-Id-Version: WordPress Widget Boilerplate\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2011-07-11 12:22-0500\n" "PO-Revision-Date: 2011-07-11 12:22-0500\n" "Last-Translator: \n" "Language-Team: Tom McFarlin tom@tommcfarlin.com\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-KeywordsList: __;_e\n" "X-Poedit-Basepath: .\n" "X-Poedit-Language: English\n" "X-Poedit-Country: UNITED STATES\n" "X-Poedit-SourceCharset: utf-8\n" "X-Poedit-SearchPath-0: ..\n"

Now, my best guess is that it should be something with po files or text domains. I hope the info provided would be helpfull.

ghost commented 11 years ago

Did you try to temporarily remove the language file (plugin-boilerplate/lang/plugin.po) and test if that 'fixes' it?

artboard-studio commented 11 years ago

I have sent the new plugin without the .po file and text domain functions for my client to test it on his windows server (I don't have access to a windows server to test it myself.)

He has not reported back if the issue is fixed or not, meanwhile I reported the issue to you so that you be aware of the situation and see if there could be any permanent fixes.

On Wed, May 8, 2013 at 11:58 AM, Mikkel Breum notifications@github.comwrote:

Did you try to temporarily remove the language file (plugin-boilerplate/lang/plugin.po) and test if that 'fixes' it?

— Reply to this email directly or view it on GitHubhttps://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/issues/30#issuecomment-17590669 .

tommcfarlin commented 11 years ago

Unfortunately, I don't have access to a Windows server. I've always had mixed results when it comes to running WordPress on IIS so I tend to avoid it, though I do want this Boilerplate to be as portable as possible.

Until I know the exact error (or if the plugin.po file is the error), I can't provide any permanent fixes just yet.

Keep me updated :)

artboard-studio commented 11 years ago

I will contact my client again, and ask him to update me with the new information on how testing the plugins went. I will report back to you as soon as possible.

leewillis77 commented 11 years ago

Can you confirm PHP versions of the two boxes. This may be a PHP version issue rather than *nix vs Windows?

tommcfarlin commented 11 years ago

This ticket has been idle for 5 months. I'm going to be closing this ticket. Please re-open if the issue persists.