Blog Hosed

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
1/16/2014 2:06:05 PM
Gravatar
Total Posts 154

Blog Hosed

I'm not sure when but somewhere along the way during upgrades my blog feature got hosed.  It gives an error.  You can see it when you click on ecards.  Any ideas?

http://www.unseriously.com/Default.aspx

1/16/2014 2:14:30 PM
Gravatar
Total Posts 18439

Re: Blog Hosed

Start with Basic Troubleshooting to find out the error details.

1/16/2014 2:25:36 PM
Gravatar
Total Posts 154

Re: Blog Hosed

2014-01-16 14:50:37,126 ERROR 24.38.96.178 - en-US - /ecards.aspx - mojoPortal.Web.Global -  Referrer(http://www.unseriously.com/Default.aspx) useragent Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 
System.InvalidOperationException: The stored procedure 'mp_Blogs_SelectAttachmentsForPage' doesn't exist.
   at System.Data.SqlClient.SqlCommand.DeriveParameters()
   at System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command)
   at mojoPortal.Data.SqlParameterHelper.DiscoverParameters(String connectionString, String procName)
   at mojoPortal.Data.SqlParameterHelper.GetParameters(String connectionString, String procName)
   at mojoPortal.Data.SqlParameterHelper.InitializeArray()
   at mojoPortal.Data.SqlParameterHelper.Initialize(String pConnectionInfo, String pCommandText, CommandType pCmdType, Int32 pParamCnt)
   at mojoPortal.Data.DBBlog.GetAttachmentsForPage(Int32 moduleId, DateTime beginDate, DateTime currentTime, Int32 pageNumber, Int32 pageSize)
   at mojoPortal.Business.Blog.GetPageDataSet(Int32 moduleId, DateTime beginDate, Int32 pageNumber, Int32 pageSize, Int32& totalPages)
   at mojoPortal.Web.BlogUI.PostList.BindBlogs()
   at mojoPortal.Web.BlogUI.PostList.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2014-01-16 14:56:22,478 ERROR 24.38.96.178 - en-US - /HtmlEdit.aspx?mid=31&pageid=33 - mojoPortal.SearchIndex.IndexBuilderManager - System.Configuration.Provider.ProviderException: No IndexBuilderProvider found.
   at mojoPortal.SearchIndex.IndexBuilderManager.Initialize() 
2014-01-16 14:56:23,213 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2014-01-16 14:56:23,213 INFO 24.38.96.178 - en-US - /HtmlEdit.aspx?mid=31&pageid=33 - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2014-01-16 14:56:23,322 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - deserialized IndexWriterTask task 
2014-01-16 14:56:23,322 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - Queued IndexWriterTask on a new thread 
2014-01-16 14:57:13,446 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - started IndexWriterTask task 
2014-01-16 14:57:23,337 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - started WebTaskManager task 
2014-01-16 14:58:16,820 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2014-01-16 14:58:16,820 INFO 24.38.96.178 - en-US - /HtmlEdit.aspx?mid=31&pageid=33 - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2014-01-16 14:58:16,929 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - deserialized IndexWriterTask task 
2014-01-16 14:58:16,929 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - Queued IndexWriterTask on a new thread 
2014-01-16 14:59:07,038 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - started IndexWriterTask task 
2014-01-16 14:59:16,928 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - started WebTaskManager task 
2014-01-16 15:00:13,755 ERROR 71.75.157.237 - en-US - /ecards.aspx - mojoPortal.Web.Global -  Referrer(http://www.unseriously.com/SiteMap.aspx) useragent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 
System.InvalidOperationException: The stored procedure 'mp_Blogs_SelectAttachmentsForPage' doesn't exist.
   at System.Data.SqlClient.SqlCommand.DeriveParameters()
   at System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command)
   at mojoPortal.Data.SqlParameterHelper.DiscoverParameters(String connectionString, String procName)
   at mojoPortal.Data.SqlParameterHelper.GetParameters(String connectionString, String procName)
   at mojoPortal.Data.SqlParameterHelper.InitializeArray()
   at mojoPortal.Data.SqlParameterHelper.Initialize(String pConnectionInfo, String pCommandText, CommandType pCmdType, Int32 pParamCnt)
   at mojoPortal.Data.DBBlog.GetAttachmentsForPage(Int32 moduleId, DateTime beginDate, DateTime currentTime, Int32 pageNumber, Int32 pageSize)
   at mojoPortal.Business.Blog.GetPageDataSet(Int32 moduleId, DateTime beginDate, Int32 pageNumber, Int32 pageSize, Int32& totalPages)
   at mojoPortal.Web.BlogUI.PostList.BindBlogs()
   at mojoPortal.Web.BlogUI.PostList.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2014-01-16 15:04:07,266 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task 
2014-01-16 15:04:07,266 INFO 24.38.96.178 - en-US - /HtmlEdit.aspx?mid=31&pageid=33 - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread 
2014-01-16 15:04:07,376 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - deserialized IndexWriterTask task 
2014-01-16 15:04:07,376 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - Queued IndexWriterTask on a new thread 
2014-01-16 15:04:57,484 INFO (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - started IndexWriterTask task 
2014-01-16 15:05:07,375 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - started WebTaskManager task 

1/16/2014 2:26:04 PM
Gravatar
Total Posts 154

Re: Blog Hosed

This help?

1/16/2014 2:40:32 PM
Gravatar
Total Posts 18439

Re: Blog Hosed

The stored procedure it is complaining as missing should have been created by one of the blog upgrade scripts.

You can manually run this from sql query analyzer to create it, hopefully there are not others missing:

CREATE PROCEDURE [dbo].[mp_Blogs_SelectAttachmentsForPage]

-- Author:               Joe Audette
-- Created:             2012-09-17
-- Last Modified:         2012-12-06

@ModuleID int,
@BeginDate datetime,
@CurrentTime datetime,
@PageNumber int,
@PageSize int

AS

DECLARE @PageLowerBound int
DECLARE @PageUpperBound int


SET @PageLowerBound = (@PageSize * @PageNumber) - @PageSize
SET @PageUpperBound = @PageLowerBound + @PageSize + 1

 

CREATE TABLE #PageIndex 
(
    IndexID int IDENTITY (1, 1) NOT NULL,
BlogGuid uniqueidentifier,
ShowDownloadLink bit
)

BEGIN

INSERT INTO #PageIndex ( 
BlogGuid, ShowDownloadLink
)

SELECT
        BlogGuid,
        ShowDownloadLink
        
FROM
        [dbo].[mp_Blogs]
        
WHERE
(ModuleID = @ModuleID)  
                and (@BeginDate >= StartDate)
                and IsPublished = 1
                and StartDate <= @CurrentTime
                AND (EndDate IS NULL OR EndDate > @CurrentTime)

ORDER BY

    StartDate DESC

END


SELECT  bic.*,
t2.ShowDownloadLink
        
FROM
        [dbo].[mp_FileAttachment] bic

 

JOIN            #PageIndex t2
ON            
        bic.[ItemGuid] = t2.BlogGuid
        
        
WHERE
        t2.IndexID > @PageLowerBound 
        AND t2.IndexID < @PageUpperBound
        
ORDER BY t2.IndexID

DROP TABLE #PageIndex

 

 


GO

1/16/2014 2:49:31 PM
Gravatar
Total Posts 154

Re: Blog Hosed

Is this done in sql management studio or in a tool on the site?  I'm trying in enterprise manager but it's throwing this error.

 

Msg 207, Level 16, State 1, Procedure mp_Blogs_SelectAttachmentsForPage, Line 49
Invalid column name 'EndDate'.
Msg 207, Level 16, State 1, Procedure mp_Blogs_SelectAttachmentsForPage, Line 49
Invalid column name 'EndDate'.
Msg 207, Level 16, State 1, Procedure mp_Blogs_SelectAttachmentsForPage, Line 39
Invalid column name 'ShowDownloadLink'.

1/16/2014 3:26:21 PM
Gravatar
Total Posts 18439

Re: Blog Hosed

If you get errors trying to run that script from sql management it means other scripts also did not run. Seems like you didn't get all the files uploaded under the /Setup folder. I would upload again and visit the setup page again an hope it can be solved that way. Problem is it will only run scripts with newer versions than what it already ran so it could be a problem if newer scripts were uploaded and executed but it missed old ones.

1/16/2014 4:36:34 PM
Gravatar
Total Posts 154

Re: Blog Hosed

I tried running the 2400 setup again but that didn't fix it.  I suspect it was a previous version that had the problem.  I used winrar to extract the setups directly on the server.  What should I do?  I have the old copies saved if the setups can be ran again.

 

 

1/17/2014 5:20:43 AM
Gravatar
Total Posts 18439

Re: Blog Hosed

look under Administration > System Information

what version does it say there for blog?

1/17/2014 7:41:37 AM
Gravatar
Total Posts 154

Re: Blog Hosed

blog 2.6.0.0
contactform 0.0.0.6
eventcalendar 0.0.0.6
feed-manager 1.0.1.1
forums 2.2.0.3
imagegallery 0.0.0.8
kdmediaplayer 1.0.0.1
linksmodule 1.0.0.9
pollfeature-byChristianFredh 0.0.0.5
sharedfiles 1.0.0.0
surveyfeature 1.8.0.0
webstore 0.0.7.3

1/17/2014 9:02:52 AM
Gravatar
Total Posts 18439

Re: Blog Hosed

As I said before, you are missing files under the /Setup folder, specifically you are missing files under

/Setup/applications/blog/SchemaUpgradeScripts/mssql

​so no matter whether you extracted the files on the server or not, there are files missing in your installation that do exist in the mojoportal-2-4-0-0 package.

You should restore the missing files and visit the setup page again.

There should be files incrementally from 2.6.0.0 up to 2.6.1.4 for the blog that are apparently not there so the setup page can't run them

Hopefully there are no other missing files elsewhere, if you encounter further errors then I will suspect there are other files that did not get deployed.

 

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