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 in javascript_validation.js when saving catalogue entry

Login / Search

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

Well-settled

Hello,
I'm running metal-temple.com on ocportal since version 4. Through constant upgrades I've reached 8.1.7 and didn't upgrade since, because it's been working without a flaw. Bear in mind, this is to my knowledge the biggest entry-wise website working with ocportal, there are tens of thousands of catalogue entries.
Recently, browsing a big catalogue category stopped working and was getting an error on javascript_tree_list.js. Since I had done no change in coding or the server itself over the past year, I figured it had something to do with the catalogue entries reaching some sort of limit that wasn't predicted, up until this version at least.
So I upgraded to the latest 8.1.12, without doing an integrity check though which I'm always afraid that will break my current template (which has been running since version 4).
Error went away and I could finally browse through the catalogue categories and select an entry to edit. But now I get another error when I try to save a catalogue entry which is on javascript_validation.js.
I've tried cleaning up all caches but it persists. Any ideas? I can't add any new entry.

Back to the top
 
Posted
Rating:
#103125
Avatar

Ah, sorry. We're back-porting a lot of fixes from the v9 tree to v8, but one particular fix caused this error.

This should solve it:
Attachment
themes/default/templates/JAVASCRIPT_VALIDATION.tpl
» Download: JAVASCRIPT_VALIDATION.tpl (31 Kb, 90 downloads so far)


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:
#103163
Avatar

Well-settled

Hey Chris,
Second error went away but after a while (I think that happened right after a very impatient editor hit the "submit" button for a catalogue entry 3-4 times…) I'm getting the first error again when I try to browse the catalogue entries to edit them. (The javascript_tree_list.js one)

Thanks for your fast reply and fix (as always)  :thumbs:
Back to the top
 
Posted
Rating:
#103166
Avatar

Hi,

Could you open a bug report ticket with server access? There's a memory error I'm seeing, which may also be the cause of the error you have.


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:
#103175
Avatar

Hi,

I've fixed the memory error, and can't reproduce your error – they may indeed have been the same.

I also fixed another error caused by backporting.

I will post a fix roundup for the benefit of any other users on v8, through the hotfix system.


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
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: