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 message "51: disable_button_just_clicked is not defined..."

Login / Search

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

Community saint

When adding a member I get this error message "51: disable_button_just_clicked is not defined..."

After I have added member info into the ADD MEMBER page in ADMIN ZONE/TOOLS and click on the PROCEED button I get this screen message:

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:

51: disable_button_just_clicked is not defined
… /themes/default/templates_cached/EN/javascript_validation.js


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#58221
Avatar

Hi,

It is likely you have overridden the 'JAVASCRIPT.tpl' template in your theme, or that it's otherwise out of date – or you're on an older version but uploaded a 4.3 fix for JAVASCRIPT_VALIDATION.tpl.


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

Community saint

It does appear that the JAVASCRIPT.TPL file was 'changed' when I view the template file in STYLE/MANAGE THEMES/EDIT TEMPLATES/'MY_THEME'.

I did recently upgrade from 4.2.2 to the 4.3 version and the Upgrader reported that indeed the JAVASCRIPT.TPL had "overrides/customisations blocking the new versions." so I asume this is telling me the file was not updated.

I went to STYLE/MANAGE THEMES/EDIT TEMPLATES/DEFAULT THEME feeling this would have been a 'clean' version but alas it to showed that it was not the ORIGINAL DEFAULT file either. I was suprised as I don't remember modifying it. … I copied it anyway and replaced the file that is in the 'MY_THEME' file my theme uses.

Cleared the template cache and tried some save or proceed action (Any proceed or save button provokes the message to appear) to see if it was fixed. No change.

I must admit that the warning message doesn't seem to affect or defeat the action intended, as once I click OK on the warning everything proceeds as "it should". It is at this point more annoying than anything else.

Also I don't recall uploading a 4.3 fix for JAVASCRIPT_VALIDATION.tpl

So where do I find a 4.3 version of javascript.tpl to replace the offending outdated file?


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#58272
Avatar

Hi,

Just delete the file from the templates_custom directory if you haven't made any changes. ocPortal will then use the one in default/templates (the one supplied with ocPortal and kept up-to-date).

From the next patch release we'll make it so you can revert to the original using the template editor (it'll detect if you've made no changes compared to the original and delete any override – which you can trigger using the 'restore from' feature).


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

Community saint

I deleteted the JAVASCRIPT.TPL from /THEMES/pi_theme_a/TEMPLATES_CUSTOM ("pi_theme_a" is my actual theme). I am wondering if I was supposed to delete it from another place instead because there is no change.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#58325
Avatar

Actually you'll need to empty the template cache also.


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

Community saint

Did that too - still no difference


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#58328
Avatar

Hi,

As you'd given me access from before, I used that to take a quick peek – you still have a themes/default/templates_custom/JAVASCRIPT.tpl file.


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

Community saint

How wierd - I deleted it this morning. I noted there was a javascript.tpl.edithis file as well as a couple of the Javascript.tpl file appended with a series of numbers. I was working in the "pi_theme_a" area, this IS where I should be deleting the file, isn't it since that is my current theme?

Typically when I select delete and right click, CuteFTP (which I use) will follow suite and get rid of the item. Next time I'll bring my silver bullet or my wooden stake unless maybe you have an better (more effective) method?


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#58337
Avatar

ocPortal would have searched in this order…

themes/pi_theme_a/templates_custom/JAVASCRIPT.tpl
themes/pi_theme_a/templates/JAVASCRIPT.tpl
themes/default/templates_custom/JAVASCRIPT.tpl
themes/default/templates/JAVASCRIPT.tpl

So it sounds like you had two overrides in place to delete (those I put in bold).


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

Community saint

So I have 2 locations where the offending files are. Thanks, I'll try that when I get home.


Last edit: by friendly


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#58344
Avatar

Community saint

Chris Graham said

So it sounds like you had two overrides in place to delete
I FTP'd to look in the two places you indicated:

themes/pi_theme_a/templates_custom/JAVASCRIPT.tpl
themes/default/templates_custom/JAVASCRIPT.tpl

The one I had deleted in the "pi_theme" earlier was indeed gone (I reserve the silver bullet and stake for future use). So I deleted the other and cleared the template cache. Performed an action that would trigger it and…

IT WAS STILL THERE - what is going on?? One last try, I cleared the cookies and cache from the browser and gave it another try and this time it worked - the annoying alert was gone. Thanks again, Chris.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: