Old shared files modules not updating to new version after updating to V2.4.0.2

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.
3/25/2014 6:19:21 PM
Gravatar
Total Posts 8

Old shared files modules not updating to new version after updating to V2.4.0.2

I have a mojoportal site which has a few shared files modules which we use and has worked very well.

After upgrading to version 2.4.0.2 I noticed that the upload has stopped working. With no errors in the log.

I have looked through the forums and could not find any fixes. 

I then found information to say about the changes to the file share module and the option to drag and drop of files which I did not have on my old file shares.  So I created a new test file share and this has the new drag and drop upload option and both that and the browse works when uploading.

Can I upgrade my old file share modules to use the new file share and if so how?

Any help would be gratefully appreciated.

3/26/2014 1:14:36 PM
Gravatar
Total Posts 183
Community Expert

mojoPortal Hosting & Design @ i7MEDIA!

Re: Old shared files modules not updating to new version after updating to V2.4.0.2

Hi Barry,

You may want to double check that all of the files from the latest mojoPortal release were copied into your wwwroot, and then re-visit the setup/default.aspx page the same as when you updated. When that page finishes its process I suggest you immediately clear your log, visit your shared files page and see if it’s fixed – if it isn’t, check your log and post any errors here.

The other thing that immediately comes to mind which might cause an issue like this is jQuery. If your skin is importing an old version of jQuery manually it may not support the necessary scripts for the new drag/drop feature. First make sure you go through the list of changes here: http://www.mojoportal.com/important-skin-changes

Once you’ve made changes relevant to your version of mojoPortal, try loading up the page and if you still have errors with the shared files try looking in your browser console (usually f12) to see if it shows any JS errors. If you provide a link to the page I can look for JS errors, but they may not show up to people who are not signed in.

Hope this helps,
-Isaac

3/26/2014 2:05:37 PM
Gravatar
Total Posts 18444

Re: Old shared files modules not updating to new version after updating to V2.4.0.2

If new instances of Shared Files work ok, then the feature must have been upgraded, there is no way possible for some instances to still be using the old version.

My best guess is that there is something else on the page causing a javascript error on the ones that are not working. Any javascript erro on the page even unrelated to the shared files feature can break the javascript for the file uploaded. Using Web browser dev tools you can check the javascript console for errors on the page. I suggest review the Important Skin Changes article and make any suggested changes listed there, you probably need to enable the jquery migrate plugin (mentioned on that page) to fix some other javascript error that is preventing the file uploader from working.

3/27/2014 9:29:23 AM
Gravatar
Total Posts 8

Re: Old shared files modules not updating to new version after updating to V2.4.0.2

Thanks Isaac and Joe, bit of a strange one.

Completed all the suggestions made and they were all in place.

So that you understand the problem correctly.  The issue is that old pages that only have a shared file module on them do not have the drag and drop option showing and will allow me to select a file but when I click on upload it does nothing and no errors.

If I create a shared file module on the home page this has the drag and drop option and works fine for this and the old upload option.

If I create a new page and add the shared file module it does not have the drag and drop option and has the problems as mentioned above.

Regards

 

Barry 

3/27/2014 2:03:09 PM
Gravatar
Total Posts 18444

Re: Old shared files modules not updating to new version after updating to V2.4.0.2

Did you check for javascript errors on the page?

Are you sure that you have edit permission on the page? The file upload would only be shown for users with edit permission.

Are you sure it really is the Shared Files feature, is it possible that you or someone else made a similar feature by cloning the  Shared Files feature in the past and modifying it? What features are shown in the list under Administration > System Information? Any custom features listed there?

You might also click the settings link on the ones that are not working and then click the save button on the settings page just to make sure any new settings have been created/applied to those instances.

3/27/2014 3:11:46 PM
Gravatar
Total Posts 8

Re: Old shared files modules not updating to new version after updating to V2.4.0.2

Are you sure that you have edit permission on the page? The file upload would only be shown for users with edit permission.

I have full administrative authority and the upload option is displayed.

Are you sure it really is the Shared Files feature, is it possible that you or someone else made a similar feature by cloning the  Shared Files feature in the past and modifying it? What features are shown in the list under Administration > System Information? Any custom features listed there?

no modifications have been made in the past, admin/system info says shared file 1.0.0.0

You might also click the settings link on the ones that are not working and then click the save button on the settings page just to make sure any new settings have been created/applied to those instances.

Tried that same problem

JavaScript messages

SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead jquery.min.js:1

Error: http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js is being assigned a //# sourceMappingURL, but already has one

TypeError: $.fn.tooltip.Constructor is undefined ScriptResource.axd:1128

Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. jquery.min.js:3

TypeError: $(...).SetScroller is not a function ScriptResource.ax

3/27/2014 3:37:04 PM
Gravatar
Total Posts 18444

Re: Old shared files modules not updating to new version after updating to V2.4.0.2

Those script errors are causing the script for the file upload to fail, the question is why does the old page have javascript errors and the new one does not. 

Are both pages using the same skin?

I would copy one of the newer skins from /Data/Skins into /Data/Sites/[SiteID]/skins and then set one of those as the skin for the page and see if that makes the script errors go away or makes the file uploader work. Try a few different skins and see if any of them fix the problem, that would narrow it down to a problem with a skin.

Also if you are using .NET 3.5 I would look into updating to .NET 4 or 4.5 and the .NET 4 package of mojoPortal and also make sure that the server has all of the windows updates applied.

Also when upgrading mojoPortal always make sure you use the new Web.config and transfer any customizations such as machinekey from the old one to the new one.

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