ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

facebook comments adding query string URL, causing 404

January 30, 2012 7:35am

Subscribe [2]
  • #1 / Jan 30, 2012 7:35am

    Joobs

    362 posts

    I am using facebook comments on my site.

    Normally my entries have a format like (since this was originally an EE1 site (now ee2), URLs have a trailing slash on them via htaccess):
    http://example.com/posts/view/title/

    However it seems facebook comments generate links like this (your forum is blacklisting this url so i added a space):
    http://example.com/posts/view/title/ ?fb_comment_id=fbc_ZYXXXXXX

    That query string causes EE to display a 404 page. 

    I can’t find anything in the templates that, and i assume it some kind of config issue?

  • #2 / Jan 31, 2012 12:47pm

    Kevin Smith

    4784 posts

    Hi Joobs,

    Sorry to see you’re running into this issue. Could you try the same URL without the trailing slash? Does that produce better results?

    Let me know what you have in your config.php file as the value for this config variable:

    $config['uri_protocol']

    If you add index.php back into your URIs, does the page render as expected?

  • #3 / Jun 06, 2012 4:30pm

    Deluko Media

    34 posts

    Hey all,

    I’m having this problem too, on EE v2.1.3 ...

    Adding the index.php back into the url does not fix the issue, nor does adding a trailing slash before the “?fb-comment….” section of the URL. (I also tried doing both, which did not fix the issue).

    My uri_protocol is set to the following:

    $config[‘uri_protocol’] = ‘AUTO’;

     

    This is a really troublesome issue, since nowadays all email campaigns, as well as Facebook, seem to append these strings to the URLs they share. Any help would be greatly appreciated. Thanks!

  • #4 / Jun 11, 2012 12:43pm

    Kevin Smith

    4784 posts

    Hi Deluko Media,

    Could you upgrade to the latest version EE? As of today, that’s EE 2.5.2. The version you’re running is over a year old, and I know that the devs have attempted to tackle this issue in the last year.

  • #5 / Jun 11, 2012 1:18pm

    Deluko Media

    34 posts

    Guess I should have seen that coming. Working with a lot of third-party modules and plugins that I’m worried about during the upgrade… but I suppose this is my only option… It’s just so common to have these strings in URLs nowadays that I figured there should be a workaround.

    Will post back when I update.

  • #6 / Jun 13, 2012 4:41pm

    Dan Decker

    7338 posts

    Hi Deluko Media,

    We look forward to hearing back from you after the update.

    Cheers!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases