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

[Solved] Browser Error Driving Me Bloody Nutz

Login / Search

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

Fan in action

Browser: Google Chrome
ocPortal Version: 8.0.1

I thought this one may have been covered but searched and seem to not find anything specific. I have been very busy lately and have not been able to dig into what might be causing it but with one of my ocPortal installs I constantly get this error every time I load a new page:

Error from browser displayed in ocPortal said

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: 2051: Uncaught SyntaxError: Unexpected token )


If I find the answer I will post back or if anyone has the cure feel free to post it on up. :)


Last edit: by Captain Kirk

"You Can't Always Get What You Want"
Mick Jagger, Rolling Stones: 1969~Let It Bleed Album 
Back to the top
 
Posted
Rating:
#85543
Avatar

ocStaff (admin)

What's line 2051 of the page source?

It probably contains a corrupt Javascript event handler.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#85545
Avatar

Fan in action

Thank you Chris and I will check sir! :thumbs:

I have a feeling maybe related to FB login and maybe json or something like:

Ignore floods of "Unsafe JavaScript attempt to access frame with URL" errors in Chrome they are benign
  

I will do some checking and be back. :)

"You Can't Always Get What You Want"
Mick Jagger, Rolling Stones: 1969~Let It Bleed Album 
Back to the top
 
Posted
Rating:
#85547
Avatar

Fan in action

OK, will figure this out as it is not an ocPortal related issue but a custom mod (actually an upload that I was trying to display awhile ago).

For reference and as Chris suggested, go into your Google Chrome "wrench" and select

tools>JavaScript Console

and then

Resources>Frames>(index.php)>Stylesheets>http:/yourwebsite.com

and locate the source line and then the root cause of the error. 

Thanks Chris for the support. :thumbs:


Last edit: by Captain Kirk

"You Can't Always Get What You Want"
Mick Jagger, Rolling Stones: 1969~Let It Bleed Album 
Back to the top
 
Posted
Rating:
#85549
Avatar

Fan in action

Actually, now I get an error displayed on each page which looks like:

"A parameter, , is referenced in the template, BLOCK_MAIN_GALLERY_EMBED, but not passed"



{$SET,wrapper_id,ajax_block_wrapper_{$RAND%}}
<div id="{$GET*,wrapper_id}">
<div class="gallery_media_expose_wrap">
{IMAGES}
</div>
 
{+START,IF_NON_EMPTY,{RESULTS_BROWSER}}
<br />
<div class="float_surrounder">
{RESULTS_BROWSER}
</div>
{+END}
 
<script type="text/javascript">// <![CDATA[
addEventListenerAbstract(window,'load',function () {
{$JAVASCRIPT_INCLUDE,javascript_ajax}
internalise_ajax_block_wrapper_links('{$FACILITATE_AJAX_BLOCK_CALL;,{BLOCK_PARAMS}}',document.getElementById('{$GET;,wrapper_id}'),['mge_start'],{});
} );
//]]></script>
</div>


I will step back and take a look at this. :ninja:

"You Can't Always Get What You Want"
Mick Jagger, Rolling Stones: 1969~Let It Bleed Album 
Back to the top
 
Posted
Rating:
#85573
Avatar

ocStaff (admin)

{} should be { }, was fixed a while back so I guess you're on an RC.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: