Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumMy Posts and Search error 3.20.08My Posts and Search error 3.20.08
Previous
 
Next
New Post
11/4/2006 9:25 AM
 

Hi
I have a forum problem with dnn sites that have been upgraded - all now at 3.4.5 on a good shared host.

When using My Posts or Search I get the following error:
A critical error has occurred.
ORDER BY items must appear in the select list if SELECT DISTINCT is specified. 0

I'm not sure when this started happening as it was reported by a user but it did work previously.  I have seen another (unanswered) post on this subject so its maybe not an isolated incident. 

The stack trace says:
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: ORDER BY items must appear in the select list if SELECT DISTINCT is specified. 0 ---> System.Data.SqlClient.SqlException: ORDER BY items must appear in the select list if SELECT DISTINCT is specified. 0 at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.SetMetaData(_SqlMetaDataSet metaData, Boolean moreInfo) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.Forum.SqlDataProvider.SearchGetResults(String Filter, Int32 PageIndex, Int32 PageSize, Int32 UserID, Int32 ModuleID, DateTime FromDate, DateTime ToDate) at DotNetNuke.Modules.Forum.SearchController.SearchGetResults(String Filter, Int32 PageIndex, Int32 PageSize, Int32 UserID, Int32 ModuleID, DateTime FromDate, DateTime ToDate) at DotNetNuke.Modules.Forum.ThreadSearch.OnPreRender() at DotNetNuke.Modules.Forum.ForumBaseControl.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---



All adds up to Wah !

I can often find and fix from error info but this is beyond me
Any insights greatfully appreciated.

Thanks
Ian


Mutate and Survive
 
New Post
11/8/2006 12:56 PM
 
I had this same exact problem with my old site.  What I ended up having to do was create a fresh install of DNN with the latest 3 version and I no longer had this problem.  I don't know what caused it but I had a bunch of modules that were having weird behaviors like this but when I started over with a fresh install everything seem to work fine.  I hope you find a solution to this I would be very curious to see why this happens incase I come across it again.
 
New Post
11/8/2006 1:31 PM
 

If this is a site that has been upgraded several times, take a look at what DLL files you have in place.  I had substantial problems before, and they turned out to be version mismatches.  Sometimes an upgrade doesn't remove the old .DLL files and for some reason DNN uses the old ones instead of the new ones. 

I went through my DNN install, and removed all the DLL files with an older time/date stamp than the current version.  That cleared up a good 98% of my problems!

 
New Post
11/8/2006 2:05 PM
 

Hi DanBall
Thanks for the idea - I had not thought about the dlls - Off to check now.

Nope - all up to date.
I will probably just buy a forum module to solve this as both sites I have with this forum problem are small/new.
This is probably cheaper in the long run.  Its a bit of a shame though as I quite like the DNN forum.

click click


Mutate and Survive
 
New Post
11/9/2006 5:10 PM
 

Forum Search and My Posts error. x2 sites  4.35 upgraded from 4.2 and 4.3

To follow up on this problem for the benefit of anyone else:

I uninstalled Forum 3.20.08 - installed 3.20.07 same problem.
After uninstalling 07 and trying 3.20.06 the problem goes away.

I guess the message is that when doing an upgrade check complex modules such as the forum before continuing.
Luckily both the sites I have this issue on can stand having old posts lost on this retrograde.

Bring back the discussions module !


Mutate and Survive
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumMy Posts and Search error 3.20.08My Posts and Search error 3.20.08


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out