How to fix these errors? Urgent

Discussion in 'Joomla' started by rubeina, Oct 4, 2011.

  1. #1
    I am having these error messages with a Joomla installation:

    --
     
    rubeina, Oct 4, 2011 IP
  2. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #2
    First guess would be there's something in configuration.php such as an extra whitespace or new line character after the closing php tag ?>.
     
    shallowink, Oct 4, 2011 IP
    rubeina likes this.
  3. rubeina

    rubeina Invisible Staff Affiliate Manager

    Messages:
    2,274
    Likes Received:
    428
    Best Answers:
    0
    Trophy Points:
    295
    #3
    Ah! There were some characters before the opening php tag, not sure how they got there though :|
    Probably added by the web host I don't know, this fixed the errors. Thank you.

    This is sort of annoying, all internal pages are showing 404. I am able to access the backoffice. (I've Joomfish enabled)
     
    rubeina, Oct 4, 2011 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Exactly that... if your editor is adding blank lines after ?> you can end up with that error. Just to be safe, you can just remove the trailing ?> from your config file (or any other file you suspect). The closing PHP tag is optional and if you omit it, you can have all the trailing lines you want.
     
    digitalpoint, Oct 4, 2011 IP
    rubeina likes this.
  5. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #5
    Oh, it actually sounds like you got the dreaded UTF w/ BOM. Where the characters these :  ?
    Which text editor are you using? Odds are you will have to download the files, change the encoding etc.
     
    shallowink, Oct 4, 2011 IP
  6. rubeina

    rubeina Invisible Staff Affiliate Manager

    Messages:
    2,274
    Likes Received:
    428
    Best Answers:
    0
    Trophy Points:
    295
    #6
    Yeah "  ? " is exactly what I've got. I edited the config file with notepad.

    Concerning the internal pages 404 error. I disabled the SEO settings, seems to be working fine with only SEF urls enabled. I get the 404 again when I enable Apache mod_rewrite... will have to do with "not so pretty" links I guess.
     
    rubeina, Oct 4, 2011 IP
  7. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #7
    I would recommend getting notepad++, it's free and after I started using it UTF w/BOM became a problem of the past.
    To correct the problem with notepad, when you go to save the file there's a drop down beneath the file name. Mine's set to ANSI.
    Any files you have edited with notepad are likely to have had their encoding changed. I would check the files first (notepad++ will let you search in Files for specific characters, which might help) before tackling the pretty urls problem.
     
    shallowink, Oct 4, 2011 IP
  8. s.usmanshah

    s.usmanshah Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    you need to delete rename htaccess.txt to .htaccess this should solve your problem and it is a must step for enabling mod_rewrite and using seo plugins
     
    s.usmanshah, Oct 5, 2011 IP
  9. s.usmanshah

    s.usmanshah Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    this file is located in your root directory where joomla is installed, in your case you can find it in /htdocs/public/www/caffeine/htaccess.txt
    just rename it to .htaccess (remember to put trailing ".")
     
    s.usmanshah, Oct 5, 2011 IP