1
Mazarin
?> shown on all pages
  • 2011/3/12 13:22

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


I have a small problem. The characters
?>
are shown at the top or bottom of the body (after the header and before the footer, if it's above or below the actual body varies) of all pages, both front and back end. I guess I've been editing some files and accidentally put an closing of the code in there.

My problem is, I can't seem to find in what where the extra characters are. Can someone give me a hint where I should be looking (i.e. files that are used on all pages, both front and back end)?


2
JCash
Re: ?> shown on all pages
  • 2011/3/12 13:31

  • JCash

  • Just popping in

  • Posts: 66

  • Since: 2011/2/22


Mainfile ?
See edition date column ?
Change to the default theme ?

3
Mazarin
Re: ?> shown on all pages
  • 2011/3/12 13:50

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


Checked mainfile. No luck.
Tried with the default theme. No luck (although that shouldn't be it since it's showing in the admin area as well, which uses the admin theme).

What's the edition date column?

4
Mamba
Re: ?> shown on all pages
  • 2011/3/12 14:20

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Did you run filecheck?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

5
Mazarin
Re: ?> shown on all pages
  • 2011/3/12 14:46

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


Please forgive my ignorance, but what is filecheck?

6
Mamba
Re: ?> shown on all pages
  • 2011/3/12 15:25

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Sorry, I meant the "checksum.php"
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

7
redheadedrod
Re: ?> shown on all pages

Is it possibly in a module you just installed? You might have a block with a bad/extra closing tag.
Attending College working towards Bachelors in Software Engineering and Network Security.

8
Mazarin
Re: ?> shown on all pages
  • 2011/3/12 17:11

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


Thanks for the tip. It turned out to be a language file in a module.

9
redheadedrod
Re: ?> shown on all pages

Glad it was something simple..

Those things can be a pain in the butt if you add too much before you test.

Rodney

10
phppp
Re: ?> shown on all pages
  • 2011/3/13 3:56

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


As a practice of good coding style, it is advised to omit the very last "?>" in each PHP file.
Check our ZF based Xoops Engine Coding Standards:
http://dev.xoopsengine.org/?p=38

Login

Who's Online

147 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 147


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits