I get a bug when entering without a page.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
2/17/2009 3:22:14 AM
Gravatar
Total Posts 8

Re: I get a bug when entering without a page.

This happened againg now, when another user posted a blog post, it gets 2 lines in this table, one of witch have '' as value for FriendlyUrl.

To fix the problem I have to run the following:

delete dbo.mp_FriendlyUrls where FriendlyUrl = ''

2/17/2009 5:10:29 AM
Gravatar
Total Posts 8

Re: I get a bug when entering without a page.

More or less permanent fix....

USE [mojo]
GO

CREATE TRIGGER [dbo].[trigger_FriendlyUrl]
ON [dbo].[mp_FriendlyUrls]
AFTER INSERT,UPDATE
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;

-- Insert statements for trigger here
delete dbo.mp_FriendlyUrls where FriendlyUrl = ''
END

GO

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