1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Error on facebook recommend (Pages)

Discussion in 'Resolved Bug Reports' started by gamecock, Feb 21, 2011.

  1. gamecock

    gamecock Member

    I am receiving an error from Facebook when recommending pages. Facebook seems to think the wrong url was passed to it. "The page at http://ifootballfan.com/threads/ could not be reached."

    I could recommend your example page here so I don't know if you already fixed this or problem is peculiar to my config.
     
    erich37 likes this.
  2. gamecock

    gamecock Member

    I did a recommend/undo on your example page.
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    This has been fixed and will be in the next release.

    It was some incorrect code in pagenode_container.

    It should be this <xen:set var="$url">{xen:link 'canonical:pages', $page}</xen:set>
    Instead of this <xen:set var="$url">{xen:link 'canonical:threads', $thread}</xen:set>
     
  4. gamecock

    gamecock Member

    thanks
     
  5. PeterT

    PeterT Active Member

    Where can we find that code snippet Brogan.
     
  6. Andy.N

    Andy.N Well-Known Member

    search for template: pagenode_container
     
    PeterT likes this.
  7. Brogan

    Brogan XenForo Moderator Staff Member

    The pagenode_container template, near the bottom, just above the second last closing </div>.
     
    PeterT likes this.
  8. ddmmh

    ddmmh Well-Known Member

    Hey Brogan,

    This fixed worked great till I upgraded to RC3. The code in pagenode_container shows the same as your fix above but now im getting the errors again arghh!! Any ideas?

    This is in my flexile dark pagenode_container.

    Code:
            <xen:include template="share_page">
                <xen:set var="$url">{xen:link 'canonical:pages', $page}</xen:set>
            </xen:include>
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    It's working for me here and on my site so presumably you have an issue elsewhere.

    Is it just pages it doesn't work on, or threads also?
     
  10. ddmmh

    ddmmh Well-Known Member

    Hi Brogan,

    Its working again! Maybe facebook had the issue? Seems to be very fidgity with me, ill try over the next few days and record my results, any issues ill come back :p thanks Brogan, always helpful
     

Share This Page