Upgrade mojoPortal?

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.
10/31/2013 6:04:36 AM
Gravatar
Total Posts 83

Upgrade mojoPortal?

Hi,

Im running a instance of mojoPortal today that is the following version : 

MojoPortal Version2.3.4.7 MySQL 
Operating SystemMicrosoft Windows NT 6.0.6002 Service Pack 2 
ASP.NET Versionv4.0.30319 Running in Full Trust 
Server Time ZoneW. Europe Standard Time
Server Local Time(GMT 1) 10/31/2013 11:54:25 AM
Greenwich Mean Time (GMT/UTC)10/31/2013 10:54:25 AM

Is there any simple way to make a upgrade here to the newest version? And if so, how?

10/31/2013 11:21:22 AM
Gravatar
Total Posts 18439

Re: Upgrade mojoPortal?

Hi,

That is a very old version but it still should be possible to upgrade as long as you are not running a forked version of mojoPortal that has been modified. Our upgrade system is fairly smooth but if you do get errors most likely we can help you through them.

Backup everything first and read our upgrade guide.

Download the latest mojoportal .NET 4 MS SQL package and download our MySql data layer package. Prepare the files on your local machine first by copying the dll files from the mysql package into the wwwroot/bin folder of the main package and copy the /Setup folder from the mysql package into the main wwwroot folder to get the scripts for mysql. Copy the machinekey if it exists in your current web.config file and replace the one in the new web.config file.

Then upload the contents of the wwwroot folder from the package into the root of your web site as discussed in the article, once they are all uploaded visit /Setup/Default.aspx to run the upgrade scripts

Your skin will likely need some fixes from important skin changes article or to try new skins you would copy them from /Data/skins into /Data/Sites/[SiteID]/skins

Hope that helps,

Joe

10/31/2013 11:28:11 AM
Gravatar
Total Posts 18439

Re: Upgrade mojoPortal?

Actually we never released an official release of version 2.3.4.7 which means that you are using a version someone else has compiled from source code. If you don't know the history of it, it is possible or likely that someone modified the code to customize something and if you upgrade any customizations would be lost and could possibly cause errors or break custom functionality. 

 

11/8/2013 7:50:45 AM
Gravatar
Total Posts 83

Re: Upgrade mojoPortal?

Hi,

I have now made a copy of our main database and connect it to a new version of mojoportal. All the scripts executed just fine and moste of the old skin seems to work.

I am now looking in to the changes that needs to be made to the skin to suport the new version of mojoportal fully.

There is however som questions : 

  1. The update log may say that this css is needed but there is no info about what css file it is supose to go in to? Is it always the main style.css? I got atlest 10 other css files in my skinfolder.
     
  2. How it the fileupload control working, it seems like thay are not stored in the mySQL database(db is only around 1 MB) so how do I import them to the new site?
11/8/2013 10:22:07 AM
Gravatar
Total Posts 2253

Re: Upgrade mojoPortal?

Hi Jimmy,

  1. You can place the CSS in any CSS file you like. It's best to search through the files and find the one that the new CSS should probably belong but considering how old your mojoPortal version was before upgrading, you are probably using a skin with many CSS files. We changed the way the CSS files were organized a few years ago. This change is only a logical change and doesn't really affect anything, just which files are standard in a mojoPortal skin. For best results, you can create a new CSS file and name whatever you like (e.g., custom.css) and then in the style.config file for your skin, add <file>custom.css</file> above the </cssfiles>.
  2. You are correct, files are not stored in the database, they are stored on disk. You should copy over everything under the \data\sites\1 folder of your old mojoPortal installation. You should then have everything from your previous version.

HTH,
Joe D.

11/12/2013 3:57:32 AM
Gravatar
Total Posts 83

Re: Upgrade mojoPortal?

Thanks,

I have moved the webpage to a local folder while testing and have notis that it is unable to find some uploaded images that is used in articles? I also notic that none of the files could be downloaded even when thay are placed in the same location as before?

Is there maby a setting that have to be set to get the correct url when running from local?

I also get this exception when hitting edit on a news article​: 

Server Error in '/OrbitSupportNew' Application.

Access to the path 'C:\inetpub\wwwroot\OrbitSupportNew\wwwroot\Data\Sites\1\Attachments\' is denied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\OrbitSupportNew\wwwroot\Data\Sites\1\Attachments\' is denied. 

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user. 

To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error: 
 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 
 

[UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\OrbitSupportNew\wwwroot\Data\Sites\1\Attachments\' is denied.] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +217 System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) +10997041 System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) +136 System.IO.Directory.CreateDirectory(String path) +33 mojoPortal.Web.SiteUtils.EnsureFileAttachmentFolder(SiteSettings siteSettings) +225 mojoPortal.Web.BlogUI.BlogEdit.LoadSettings() +358 mojoPortal.Web.BlogUI.BlogEdit.Page_Load(Object sender, EventArgs e) +141 System.Web.UI.Control.OnLoad(EventArgs e) +92 mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e) +15 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408

 

BestRegards

11/12/2013 11:22:15 AM
Gravatar
Total Posts 18439

Re: Upgrade mojoPortal?

The error is very clear what the problem is, a file system permission problem.

The /Data folder and all child folders and files must be under full control permission for the user that is the identity on the application pool.

11/14/2013 9:25:18 AM
Gravatar
Total Posts 83

Re: Upgrade mojoPortal?

Thanks,

This is now solved. The webpage is working but its extremely slow so I have sent a mail to the webhost about this.

One thing that I notice was that the upload control worked alot better now, before I hade to use the simple HTML uploader to beable to upload bigger files.

Thanks for the help.

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