How to troubleshot orchard - orchardcms

Just installed latest orchard 1.4.1 cms with sql se database. Have added new page with "Added to main menu" checked, but clicking on menu item shows "HTTP 404 page not found". How to find out what is wrong?
Update
I have found why. The page was published with title 'media' and permalink 'media' and looks like it is kind of special word in orchard routing. Changing permalink to 'new-post' solved the issue it starts working properly.

First make suer, your permalink is automatically created or you write it manually. Then you should publish the page.
May be you done correctly but you saved the page only, not published!

I have found why. The page was published with title 'media' and permalink 'media' and looks like it is kind of special word in orchard routing. Changing permalink to 'new-post' solved the issue and it starts working properly.

Related

friendly URL remap format in DNN

we have a custom module on our DNN site that creates unique URLs for each entry from an underlying database. The URLs would look something like this:
something/afn/something_else
A snippet from a full URL:
tabid/66/afn/160529-David%20Lewis-000258-010-003-00001
Without a trailing /Default.aspx. The module would see the /afn/, process the something_else, and if valid, render the unique page accordingly.
We just upgraded to DNN 8.0.3, and this is no longer working, instead we are getting 404 errors from IIS. We discovered if we append /Default.aspx to the URL, it works as it's supposed to. Changing the module to put /Default.aspx when the page is generated is simple. However that leaves countless links on our page, and on the web, that no longer work.
After much research I found the Friendly URL Settings in DNN under Host -> Host Settings -> Advanced Settings. This appears to have a way to remap URLs. The trouble I'm having is formatting the remap correctly.
My question:
What can I enter in the Friendly URL Settings so that if a user clicks on a url formatted like this:
ourwebsite.org/something/afn/something_else
it changes it to:
ourwebsite.org/something/afn/something_else/Default.aspx
Thank you very much.
EDITED: to add real life example URL.
WIth current DNN this should not be the case as the Default.aspx at the end isn't needed. In your upgrade, depending on the prior version, you will want to validate the "Url Settings" for the portal to ensure that for some reason that you don't have extensions turned on. Otherwise, when you upgraded did you see any errors? What version did you upgrade from.
Based on the standard setup of DNN URL's, this should work as desired assuming that /something/afn is the URL to a particular page. Or that something is the page and afn is the querystring.
Example /something?afn=something_else
Whereby you are expecting to see a Request.QueryString["afn"] value for the something_else value.

Admin Theme Url Alternates - Orchard CMS

In admin theme, how can you define url alternates: for example: content-url-admin.cshtml is not working
Please, check here: http://orchardpros.net/tickets/9105. JUst keep directory structure and everything seems ok.

Sharepoint 2010 custom 404 page - asp extension

I'm working on a SharePoint 2010 publishing site. It's replacing a legacy site built using asp.
As it's public facing and anonymous, we're implementing a custom 404 page. Strangely, this is not simple OOTB (like usual), but I did manage to deploy a 404 page and link it up using an event receiver. Perfect, works fine.
So, in testing I tried entering some random pages that didn't exist. It worked fine for .htm, .html, and .aspx. Next, I tried the .asp extension, as this is what all outstanding bookmarks / search engine links will be based from. Instead of the 404 page I got a blank page. I checked it out in Firebug, and the file was actually returned with a 404 header, but it has no content. Not good.
Anyone solved this problem? Is a custom http module the only way to go here??
As an aside, another strange behaviour is if you use a unknown extension it will render the html from your 404 page as text! Edit: Also, if you enter an extensionless folder that doesn't exist you get this same behaviour. Wow, this strange beast continues to vex me.
Thanks.
Update
Looks like a HttpModule is the only way to go here. I have this working - if anyone would like complete code let me know. I'd post it here, but the SO code formatter is mangling things.
web.config entry looks like the following:
<add name="PageNotFoundHttpModule" type="ProjectName.PageNotFoundHttpModule, ProjectName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=fb507da11a891ef3" preCondition="integratedMode" />
SharePoint 2010 ‘Page not found (404)’ page the way it should be
HttpModule sure is the way to go. I followed this page to get it working
http://blog.mastykarz.nl/sharepoint-2010-page-not-found-404/
However, the module only works if I leave out the precondition or else you will run into a blank page.

postback url rewriting sharepoint

I am trying to do url rewriting in sharepoint . I have done something and its working fine but the problem is when I click on by default controls in sharepoint like edit page, approve or any links they are pointing to the old one and not to the new one and because of that I m getting 404 not found.
If anyone is having idea how to solve this in sharepoint .I have seen postback posts of Scott but in that he has mentioned postback with controls you create in asp.net add form browser but what abt existing ones in sharepoint. do I need to add something in the master page.
Any help would really be appreciated.
You could try overriding SharePoint's default postback handler (javascript function) using either an HttpModule, or by creating a control that replaces the old url for the new one, generating an postback function overide that uses that "translated" url. Then add the control to the masterpage.
Not too sure if this is possible. My guess is that you might run into some request validation issues when you do this.
EDIT:
Read scott guthrie article about this subject: article
How do you do your rewriting, e.g. what are your rules?
Mine does it in such a way the normal urls still work. Page editing is done through using the normal urls, so you don't get problems like this.

SharePoint 2007 -Content for this URL is excluded by the server because a no-index attribute

Did any of guys run into this error where the search crawler is ignoring an aspx page? I am getting the following warning message for these page: "Content for this URL is excluded by the server because a no-index attribute".
Any help will be appreciated.
Thanks.
Check the search visibility of the site using the following settings page.
http://[mywebsiteurl]/_layouts/srchvis.aspx
A value of "Never index any aspx pages on this site" will result in the log message.
Note: individual lists can also be "turned off" with regards to the search crawl.
http://[mywebsiteurl]/_layouts/advsetng.aspx?List=[list GUID] (or more simply go List Settings -> Advanced Settings
Thanks for your response Nat. I figured out the issue.
We have two version of the site in question, win auth and forms auth. After some digging around a little bit I found out that one of the user controls was breaking in the win auth version - hence the page as well. It was working fine in forms auth. I forgot to add an appsettings entry in the win auth's web.config. So I am guessing when the crawler went to the page, saw the page was broken - it didnt crawl it and recorded the warning message in the crawl log.
After fixing the user control, the page was crawled as expected.

Resources