HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Error on loading profile page

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#107482 (In Topic #20944)
Avatar

Community saint

This is on version 8.0 so maybe it's an old issue or something but I get a 100% reproducible error when loading the profile page.​

An error occurred when loading this screen onto the web browser. You are being notified of this as you are staff. If you believe this is a bug in the website software, please contact ocProducts with full details. More details are available in your browser's error console. The error was: 19: TypeError: null is not an object (evaluating 'size[2]') http://julianrittercentral.com/themes/JulianRitterCentral/templates_cached/EN/javascript_plupload.js


It's coming from javascript.plupload.js in the template cache but all items were just cached this morning (I cleared the template cache). Since I am not a developer I am hoping someone can point me in the right direction. This happens in Safari but not in Firefox.

Thanks for any tips.


Last edit: by BobS
Back to the top
 
Posted
Rating:
#107487
Avatar

Hi,

This bug was fixed…

Try replacing with the latest file

https://github.com/chrisgraham/ocPortal/blob/master/themes/default/templates_custom/JAVASCRIPT_PLUPLOAD.tpl

If that doesn't work the fix is to change:

Code

max_file_size: (typeof mfs == 'undefined') ? '2000mb': (mfs.value + 'b'),
to:

Code

max_file_size : (typeof mfs=='undefined')?'2000mb':(((typeof mfs[0]!='undefined')?mfs[0].value:mfs.value)+'b'),


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#107488
Avatar

Community saint

Is there some way to download files off of github or is it just a copy and paste operation?
Back to the top
 
Posted
Rating:
#107489
Avatar

Click "Raw"


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#107490
Avatar

Community saint

Thanks, Chris, that seems to have done the trick.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: