Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • zdmdesignz Friend
    #193558

    Hello,

    My site is all ready to go, but I just noticed that only some articles have a warning stating that the url of that articl is “unreachable.”

    Here is an example :
    http://utd.zmdesignsbranding.com/index.php/photos-and-videos/14-sample-video

    When you click on that link in the warning box, here is the page that displays
    https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Futd.zmdesignsbranding.com%2Findex.php%2Fphotos-and-videos%2F14-sample-video.

    How is this fixed? I have not made any changes to the facebook comments or php. It doesn’t seem to have any rhyme or reason to where it shows up either. :((

    Thanks

    Saguaros Moderator
    #517705

    Have you got issue resolved? I see from my side that the facebook comment works fine now: http://prntscr.com/2hgty0

    Please try to check again whether it can connect to facebook from your end or not. Or you can take a look at this file: templates/ja_fixel/html/com_content/article/default.php and make sure the snippet for above facebook comment should look as follows:


    <?php if($tplparams->get('tpl_facebook_comment', 1)): ?>
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1<?php echo $tplparams->get('tpl_facebook_appid', '') ? '&appId=' . $tplparams->get('tpl_facebook_appid', '') : '' ?>";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));
    </script>
    <div class="fb-comments" data-href="<?php echo JUri::getInstance()->toString(array('scheme', 'host', 'port')) . $this->item->readmore_link ?>" data-num-posts="10"></div>
    <?php endif ?>

    zdmdesignz Friend
    #517806

    Hello Saguaros,

    The behavior is very strange. It seems that the default behavior is for the warning to appear in an article. It’s only after clicking each warning in each article and being taken to each corresponding debug page that the warnings go away.

    Essentially, each warning has to be clicked and the article refreshed before the warning disappears.

    I’ve attached a snippet of the code that was in my default.php file. I never touched this code prior to your post. Is the attached code incorrect?

    Also, the snippet you provided has not corrected the issue. This behavior is prevalent on two different servers from two different hosting providers. There needs to be a fix for this :((

    [PHP]<?php if($tplparams->get(‘tpl_facebook_comment’, 1)): ?>
    <div id=”fb-root”></div>
    <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = “//connect.facebook.net/en_US/all.js#xfbml=1<?php echo $tplparams->get(‘tpl_facebook_appid’, ”) ? ‘&appId=’ . $tplparams->get(‘tpl_facebook_appid’, ”) : ” ?>”;
    fjs.parentNode.insertBefore(js, fjs);
    }(document, ‘script’, ‘facebook-jssdk’));
    </script>

    <div class=”fb-comments” data-href=”<?php echo JUri::getInstance()->toString(array(‘scheme’, ‘host’, ‘port’)) . $this->item->readmore_link ?>” data-num-posts=”10″></div>
    <?php endif ?>[/PHP]

    Thanks

    Saguaros Moderator
    #517846

    Please backup of your site and PM me admin login info and FTP account of your site, also include the article associated with the issue, I will help to check further.

    max_santiago Friend
    #518714

    Hallo,
    I have similar problem, too.
    After home pressing button my article doesn’t view correct text (only after F5 refresh) but only ‘Warning: http://xxx.domain.xx/article unreachable’…

    My FIXEL is Joomla rel 2.5

    Thanks in advance for answering…

    Saguaros Moderator
    #518777

    Did you try to check the code as in my first reply? If problem still persists, you can PM me admin & ftp credentials of your site, I will check what’s wrong here.

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 3 voices, and was last updated by  Saguaros 10 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum