500 Internal Server Error on Skin files ???

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
12/31/2011 8:55:11 AM
Gravatar
Total Posts 130

500 Internal Server Error on Skin files ???

Hello,

I've attempted to finalize my upgrade of 2.3.7.5 MSSQL on our windows server.  The site functions flawlessly on my local site, but when I move it onto the server, the site loads and shows that it has been upgraded, all the data is intact, but the stylesheets in the site skin directory and scripts in the clientscript directory are not loading.  When I look at the browser console I'm showing a 500 internal server error on those files, which I've never seen before.  I've checked the directory structure to make sure the files are there, I've checked the permissions and they are in place. The app pool also appears to be correct.

I tried upgrading to your new release 2.3.7.6 with the same results.  It appears to work locally just fine but again the 500 error on the skin files.  Has this happened to anyone before?  Hopefully it's something silly I'm overlooking but I've worked on this for two days without resolving the issue.

@Joe  Audette - I'm sorry I wasn't able to play with your source code prior to your release.  Being out of town for the holidays with my family I've barely had time to test out the sites with the upgrade I'd been working on and attempt to deploy the upgrade before returning to work on Monday.

Best,

Beth

12/31/2011 9:02:09 AM
Gravatar
Total Posts 18439

Re: 500 Internal Server Error on Skin files ???

Hi Beth,

500 is just a generic http error code, what are the error details in the log?

When you say skin files do you mean theme.skin or something else?

Best,

Joe

12/31/2011 12:04:46 PM
Gravatar
Total Posts 130

Re: 500 Internal Server Error on Skin files ???

Yeah the 500 error is generic.  I've enabled db logging but am not seeing meaningful errors.  There is this: 

Referrer(none) useragent System.NullReferenceException: Object reference not set to an instance of an object.
at Brettle.Web.NeatUpload.Internal.Module.Config.get_UseHttpModule()
at Brettle.Web.NeatUpload.UploadHttpModule.Application_EndRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

I didn't see any meaningful errors in the system logs on the server either.  I've updated the skins referencing your "Upgrading Info for skins" and all the skins are working locally.  All I did was take the working installation and move it onto the server. I think the theme.skin is loading because it's not a listed file in the Chrome Console (the errors are across Chrome, IE and FF) ... actually i guess that would be incorporated on the server ... so how would I know then?  I'll email you a screenshot of the files getting the error as there are quite a few of them.  They are the specific css files within the skin directory but there are also js files in the clientscript directory not loading.

It occurred to me that my skin wasn't in the Web->Data->skins directory so I added it just now, touched the web.config and restarted the application in IIS but that doesn't seem to have made a difference.

Any advice you have to offer would be much appreciated.

~ Beth

1/1/2012 7:42:29 AM
Gravatar
Total Posts 18439

Re: 500 Internal Server Error on Skin files ???

Hi Beth,

Happy New Year!

One thing that did change a few versions back is that the Web.config file has runAllManagedModulesForAllRequests="true" on the <modules element in the system.webServer section.

This is needed to support extensionless urls but if you are not using extensionless urls you could try removing that and see if it changes anything. With it true then .NET is involved in all requests including those for static files like css and js and if not true then those static files are just served by IIS. So removing that should eliminate .NET code from the equation for requests for those files and then we can determine if the error is happening in .NET code.

Do you have any custom http modules plugged in in Web.config other than the ones included by default in mojoPortal?

Are you accessing the site by ip address as your screen shot indicates or is that happening only for those css and js files?

Also from the screenshot you sent it seems you have

<add key="CombineCSS" value="false"/>

in your user.config file so it is rendering static links to all of the CSS files instead of combining them into one request. I would highly recommend changing that to true. Other settings such as cache settings have no effect when that is false because with static urls the browser will cache them whereas when they are returned from our csshandler.ashx we can specify the cache settings.

Best,

Joe

1/3/2012 2:31:04 PM
Gravatar
Total Posts 130

Re: 500 Internal Server Error on Skin files ???

Hi Joe,

Happy New Year! 

I checked for runAllManagedModulesForAllRequests="true" and it is present. I don't have any custom modules. I am accessing the site by IP address (not just the styles) since I don't have an extra test domain on my server to use. I had the CombineCss value set to false in the user.config so I could test out skin changes ... I changed it to true, touched the web.config, but that hasn't helped with the files loading.

The issue is definitely somewhere in the web.config.  When I put the older web.config in place on the server (pointing to the new db in the user.config) the upgraded site loads fine.  When I switch to the web.config that shipped with the most recent version, the  stylesheets and clientscript files don't load.

Any ideas for what to look for in the web.config?  I'm comparing them line by line but quite a few things are different and I can see that you've pretty much rewritten it over time.

Thanks,

Beth

1/3/2012 2:34:32 PM
Gravatar
Total Posts 18439

Re: 500 Internal Server Error on Skin files ???

Hi Beth,

Did you try removing runAllManagedModulesForAllRequests="true"?

That could be the change that is causing the problem on your server, we used to not have that by default and it isn't essential if you are not using extensionless urls.

Best,

Joe

1/3/2012 2:38:20 PM
Gravatar
Total Posts 130

Re: 500 Internal Server Error on Skin files ???

I commented out the line which caused a 500 error for the site. I uncommented it and set it to false and the site loaded but with the skins still throwing an error.

~ Beth

1/3/2012 2:44:24 PM
Gravatar
Total Posts 18439

Re: 500 Internal Server Error on Skin files ???

Hi Beth,

Try commenting out this line:

<add name="WordpressXmlRpcHandler" verb="POST" path="*xmlrpc.php" type="mojoPortal.Web.BlogUI.metaweblogapi, mojoPortal.Features.UI" preCondition="integratedMode"/>

If you have php also installed it is possible that might be the culprit.

Can you tell me whether you are using an Integrated or a Classic Application pool?

You are using .NET 4 right?

Is it IIS 6 or 7.x? ie Win 2003 or Win 2008?

Best,

Joe

1/3/2012 2:51:44 PM
Gravatar
Total Posts 130

Re: 500 Internal Server Error on Skin files ???

I commented out that line in the web.config but it didn't make a difference.  We don't have PHP installed on the server.  The app pool is running in 4.0 integrated in IIS 7 on a Windows Server 2008.

~ Beth

1/3/2012 2:59:08 PM
Gravatar
Total Posts 18439

Re: 500 Internal Server Error on Skin files ???

Hi Beth,

Can you try copying one of the newer skins from /Data/skins into your site specific skin folder and see if you get the same errors using one of those skins?

Best,

Joe

1/3/2012 3:11:49 PM
Gravatar
Total Posts 130

Re: 500 Internal Server Error on Skin files ???

D'oh!  I tried using jquery-ui1 straight from the Data/skins directory and am still getting the 500 errors on the skin files.  This is a sneaky bug! ~ B

You must sign in to post in the forums. This thread is closed to new posts.