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.


[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

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. 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:
#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

{} 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. 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: