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.


Ajax errors

Login / Search

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

Fan in training

contant random ajax errors

Good evening all.
Every now and then I keep getting random ajax errors or errors saying the website is offline (AJAX_REQUESTS is not defined) this has been happening since 4.3.0. I'm using firefox. Any ideas?
Back to the top
 
Posted
Rating:
#58558
Avatar

Fan in training

to be exact 2 windows pop up, the first window says:
The network or website appears to be down, so an AJAX request has failed. You won't receive further warnings during this page view, but some actions may not work correctly until connectivity is restored.
the second window states the following:
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:

32: AJAX_REQUESTS is not defined
http://mywebsite.com/themes/mywebsite_Portal/templates_cached/EN/javascript_ajax.js
Back to the top
 
Posted
Rating:
#58566
Avatar

Community saint

I don't know if this will help you, but read on:

I had similar messages with 4.3 while my stat side block was enabled until a patch file chat.php was issued by Chris to fix the problem referred here. I believe that this problem was corrected with 4.3.1.
Back to the top
 
Posted
Rating:
#58572
Avatar

Fan in training

That's just it.. I updated to 4.3.1 the day it came out? Not to mention I get this message anywhere on the site, including admin area.
Back to the top
 
Posted
Rating:
#58579
Avatar

Hi,

Please try these replacement templates. We've had real problems with browsers doing weird things when navigating away from pages whilst AJAX is happening, and we've patched around some, but it seems there were more. I have simply suppressed the errors in the attached, as they aren't real issues anyway.

Attachment
JAVASCRIPT_AJAX.tpl
» Download: JAVASCRIPT_AJAX.tpl (7 Kb, 212 downloads so far)


Attachment
JAVASCRIPT.tpl
» Download: JAVASCRIPT.tpl (55 Kb, 171 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:
#58606
Avatar

Fan in action

Last night i was having same prob. I have no idea what caused it? I replaced those files and so far no AJAX errors/problems.

Back to the top
 
Posted
Rating:
#58848
Avatar

Community saint

Chris Graham said

Please try these replacement templates. We've had real problems with browsers doing weird things when navigating away from pages whilst AJAX is happening, and we've patched around some, but it seems there were more. I have simply suppressed the errors in the attached, as they aren't real issues anyway.
I've had the same ajax errors and I am just now addressing the problem but I didn't catch where do I place them?


Art and Imagination
of David L Friend

http://davidlfriend.com

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

themes/default/templates/


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

Fan in action

I copied and FTP'd JAVASCRIPT.TPL and JAVASCRIPT_AJAX.TPL. trying to fix the following issue I recently accomplished all by myself .. :'(

When I go to "EDIT CSS" Example: global.css or any of the files in the folder opened .. I keep getting a pop up stating:

Message from web page
There was a problem from an AJAX request:
500: Internal Server Error

Been working on the site according to the videos … Then I received this for some reason ???? HUmmmm O_o


Last edit: by TexAcoon
Back to the top
 
Posted
Rating:
#59792
Avatar

The attached file should fix this problem.

Attachment
data/edit_ping.php
» Download: edit_ping.php (2 Kb, 151 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:
#59794
Avatar

Fan in action

Thanks Chris! …

Installed and no more pop up error blocks ..

Thanks!
Doug
Back to the top
 
Posted
Rating:
#60679
Edu
Avatar

Fan in training

I am having frequently the same error message
141: unterminated string literal
http://x-org.com.br/themes/x_org/templates_cached/EN/javascript_ajax.js

What can I do to solve it?
Thank you!
Back to the top
 
Posted
Rating:
#60681
Avatar

Find where "Houve um problema com uma 'AJAX request" is defined in the language pack, and remove the blank line off the end of the string.


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
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: