Post by gewok » Wed Mar 13, 2013 6:48 pm

Hello

I am having an issue with my opencart website/theme, and I can't figure out how to fix it.

At the moment none of the feeds are appearing in Chrome. In Internet Explorer I get a message saying:
"To help protect your security, Internet Explorer has blocked this website from displaying content with security certificate errors". I have to click display blocked content, and then the facebook feed shows up; however twitter is not visible (this was working a few weeks ago).

This is the error displayed by IE:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C)
Timestamp: Wed, 13 Mar 2013 10:45:03 UTC


Message: 'FB' is undefined
Line: 754
Char: 1
Code: 0
URI: http://mywebsite.co.uk/

This is the script of the module causing issues:
<div class="clear"></div>
<div id="footer-top-outside">
<div class="line-bottom">
<div id="customHome" class="container_12"><?php
if ($about_status == '1') :
?>
<div id="about_us_footer"
class="grid_<?php
echo 12 / $custom_footer_active_columns;
?>">
<h2><?php
echo $about_header;
?></h2>
<?php
if($this->config->get('about_us_image_status') == '1'){
echo '<img class="about_us_image" alt="small logo" src="'. HTTPS_IMAGE . $this->config->get('about_us_image') . '"/>';
}
?>
<p><?php
echo html_entity_decode($about_text);
?></p>
</div>
<?php endif;
?> <!-- TWITTER --> <?php if($twitter_column_status == '1'): ?>
<div id="twitter_footer"
class="grid_<?php echo 12 / $custom_footer_active_columns; ?>">
<h2><?php echo $twitter_column_header ; ?></h2>
<ul id="twitter_update_list">
<script type="text/javascript"
src="https://twitter.com/javascripts/blogger.js"></script> <script
type="text/javascript"
src="https://twitter.com/statuses/user_timeline/<?php echo $twitter_username ; ?>.json?callback=twitterCallback2&count=<?php echo $twitter_number_of_tweets ; ?>"></script>
</ul>
</div>
<?php endif; ?> <?php
if ($contact_status == '1') {
?>
<div id="contact_footer"
class="grid_<?php
echo 12 / $custom_footer_active_columns;
?>">
<h2><?php
echo $contact_header;
?></h2>
<ul>
<li>
<!-- TELEPHONE 1 -->
<?php if (! empty ( $telephone1 )) { ?>
<ul id="tel" class="contact_column">
<li id="footer_telephone"><?php echo $telephone1;?></li>


<!-- TELEPHONE 2 -->
<?php if (! empty ( $telephone2 )) { ?>
<li id="footer_telephone2"><?php echo $telephone2;?></li>
<?php } ?>
</ul>
<?php } ?>

<!-- FAX -->
<?php if (! empty ( $fax )) { ?>
<ul id="fax" class="contact_column">
<li id="footer_fax"><?php echo $fax;?></li>
</ul>
<?php } ?>

<!-- EMAIL 1 -->
<?php if (! empty ( $email1 )) { ?>
<ul id="mail" class="contact_column">
<li id="footer_email"><?php echo $email1;?></li>



<!-- EMAIL 2 -->
<?php if (! empty ( $email2 )) { ?>
<li id="footer_email2"><?php echo $email2;?></li>
<?php } ?>
</ul>
<?php } ?>

<!-- SKYPE -->
<?php if (! empty ( $skype )) { ?>
<ul id="skype" class="contact_column">
<li id="footer_skype"><?php echo $skype;?></li>
</ul>
<?php } ?>
</li>
</ul>
</div>
<?php
}
?> <!-- FACEBOOK --> <?php
if ($facebook_status == '1') {
?>
<div id="facebook_footer"
class="grid_<?php
echo 12 / $custom_footer_active_columns;

?>
">
<h2>Facebook</h2>
<script type="text/javascript"
src="https://static.ak.connect.facebook.com/ ... "></script>
<script type="text/javascript">FB.init("1690883eb733618b294e98cb1dfba95a");</script>

<script language="javascript" type="text/javascript">
//<![CDATA[
document.write('<fb:fan profile_id="<?php echo $facebook_id; ?>" stream="0" connections="<?php echo 12 / $custom_footer_active_columns * 2; ?>" logobar="0" height="200px" width="<?php echo (12 / $custom_footer_active_columns*80) - 20; ?>"css="<?php echo HTTPS_SERVER; ?>catalog/view/theme/ustore-color1/stylesheet/facebook.css?10"></fb:fan> ');
//]]>
</script>

</div>
<?php } ?>
</div>
<div class="clear"></div>
</div>
<div class="line-bottom1"></div>

</div>

Please can someone help me resolve this
Last edited by gewok on Fri Mar 15, 2013 5:40 pm, edited 1 time in total.

Newbie

Posts

Joined
Fri Feb 22, 2013 12:38 am

Post by gewok » Thu Mar 14, 2013 12:26 am

really need help with this, can't figure it out

Newbie

Posts

Joined
Fri Feb 22, 2013 12:38 am

Post by gewok » Thu Mar 14, 2013 6:14 pm

any advice from anyone, it's one of the last issues I'm having.

Newbie

Posts

Joined
Fri Feb 22, 2013 12:38 am

Post by gewok » Fri Mar 15, 2013 1:13 am

Willing to pay for a solution

Newbie

Posts

Joined
Fri Feb 22, 2013 12:38 am

Post by gewok » Sat Mar 16, 2013 12:09 am

I resolved the facebook issue by replacing:

Code: Select all

<script type="text/javascript">FB.init("1690883eb733618b294e98cb1dfba95a");</script>
with

Code: Select all

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>

However I'm still receiving SSL errors and twitter is not showing.

Newbie

Posts

Joined
Fri Feb 22, 2013 12:38 am

Post by gewok » Sat Mar 16, 2013 12:27 am

Also resolved the twitter issue by replacing/updating the code.

Now just the issue with SSL.

Newbie

Posts

Joined
Fri Feb 22, 2013 12:38 am

Post by sizzlingscience » Sun Mar 31, 2013 1:56 am

Would you mind sharing how you updated the code as I'm having a similar problem with Twitter.

Thanks.

New member

Posts

Joined
Tue Jan 12, 2010 6:03 am

Post by victorj » Sun Mar 31, 2013 3:40 am

problem is that you try to use <script> for directing to a url and that does not work.
replace

Code: Select all

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
with
<a href="https://url_to_your_facebook_page">

note https in front neccesary not to break ssl seal on your site if you use it.

to find url to face book page just go there and copy url from browser
useually looks like
https://www.facebook.com/pages/your-fac ... 3456789012

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by sizzlingscience » Sun Mar 31, 2013 11:57 pm

Script is working fine on my laptop, just not Andraod devices - think it is due to an outdated API but I'm not sure how to upgrade it.

New member

Posts

Joined
Tue Jan 12, 2010 6:03 am
Who is online

Users browsing this forum: No registered users and 7 guests