404 Error after editing content

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/28/2008 2:23:19 PM
scr
Gravatar
Total Posts 2

404 Error after editing content

Hoping some folks out in the mojo world can help me in isolating this problem. I developed a mojo site on a test server. After testing and allow my users to learn the cms, I migrated it to a production server and gave it a virtual host. Now when users edit content the recevie a 404 error. The url reads "http://[url]/Error.htm?aspxerrorpath=/[path]/HtmlEdit.aspx"

I checked the systems logs and found the a "file cound not be found error" which points to sites\1\index\_1n9.fnm, which i confirmed in by looking in that directory. Yet this file does not exist on the test site and editing works fine.

Any clues would be grealy appreciated!

-st

2/28/2008 2:39:32 PM
Gravatar
Total Posts 18439

Re: 404 Error after editing content

The files in the index folder are randomly named so there is no reason to expect the same names on dev and production. I would delete all files from the index folder (on production) then do a search and it should rebuild the index.

Its not ideal to migrate a site with data from one url to another. It can work if the relative url is the same in both sites but if you start out in a sub folder like http://somehost/mojo then move to http://someotherhost then the relative path has changed and this can result in file not found errors especially in links or src= that may refer to the previous path

Hope it helps,

Joe

2/28/2008 2:53:27 PM
scr
Gravatar
Total Posts 2

Re: 404 Error after editing content

I appreciate the information about the files in the index. Deleting the files and doing a search did fix the logged error. But am still have the issues with relative paths. What would you recommend for developers that have to work in a test environment before migrating the site to production?

2/28/2008 3:01:53 PM
Gravatar
Total Posts 18439

Re: 404 Error after editing content

I would recommend using different databases for test and production and not plan to migrate data from test to production. This way you can enter anything you need into the test content system to test it.

If you can't do that then I would try to ensure the same relative path on both.

Hope it helps,

Joe

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