Forums / Cotonti / Bugs / tiny bug in 0.0.6

Kingsley
#1 2009-07-16 22:45
check www.urbancrusaders.nl

Right under the home button you see <. I've checked all my skinfiles (and the new one that came with 0.0.6) and I can't find it in there..

Suggestions where I could look??

ph, and in admin it looks like this:

This post was edited by Kingsley (2009-07-16 22:56, 14 years ago)
tensh
#2 2009-07-16 22:53
You use which X-Template class?

Check if your template:
1. Has UTF-8 BOM mark (But anyway this should be solved in Genoa 6.0.0)
2. Isn't coded in UTF-8 (but e.g. ANSI) but contains special characters (I think this is your case if lang files are OK).
3. Your lang files contain UTF-8 BOM mark.
Lombi
#3 2009-07-16 22:59
We cant check your skin files cause you had them protected so post them here.
<a href="http://www.domenlo.com">Surreal Art</a>
Kingsley
#4 2009-07-16 23:02
I removed the htacces file for you.. don't think it's smart to post them all here, would get a bit messy I think..
tensh
#5 2009-07-16 23:03
BTW, nice skin :)

Did you hard-code some words in templates with special letters? If the file isn't saved as UTF-8 but contains special letters, X-Template cuts the file a bit ;).

In case of all files saved as UTF-8, look for BOM mark in lang files and templates, it should be removed everywhere. It really can mess with the looks of a site.

I cannot check your tpls, "requested url not found". Probably because of redirections.
Kingsley
#6 2009-07-16 23:30
Thx Tensh..

What does a BOM mark look like??
Lombi
#7 2009-07-16 23:49
Looks like it's one of the plugins hooking in just after header.tpl - try to add the following, one character right before header.tpl ends and one right before index.tpl starts and see if it's still the case.
<a href="http://www.domenlo.com">Surreal Art</a>
tensh
#8 2009-07-17 14:37
It's something like this just at the beginning of a file:

Though you might see it differently ;)
Kingsley
#9 2009-07-18 00:28
been busy with the < since last night. Can't seem to find it though. with version 0.0.5. it doesn't show.
Also I got this problem since I've updated to 0.0.6:



this to was not a problem in 0.0.5
Kilandor
#10 2009-07-18 07:30
Its likely in a plugin template, or in some plugin code. the <
Kingsley
#11 2009-07-19 01:12
Strange thing is that i can't reproduce it in 0.0.5
Will try to set the site back to 0.0.5

And in the pfs I get this error:

Warning: require_once(./datas/extensions.php) [function.require-once]: failed to open stream: No such file or directory in /home/p2457/domains/urbancrusaders.nl/public_html/site/pfs.php on line 19

Fatal error: require_once() [function.require]: Failed opening required './datas/extensions.php' (include_path='.:/usr/local/lib/php') in /home/p2457/domains/urbancrusaders.nl/public_html/site/pfs.php on line 19
tensh
#12 2009-07-19 21:51
Check thoroughly header.tpl (because I think header.tpl is a traitor here) for hard-coded text (everything should be in lang file). Save it in ANSI coding or UTF-8.

Then check ALL your lang files (in system folders, skin and plugins) for BOM marks. You can do it by:
1. Upload Total commander (www.ghisler.net)
2. Compare lang file with any other file by the tool "Compare by content" (In File menu)
3. Press "edit mode" and delete BOM mark (stupid hash before <?PHP>), then press X (close), and when it asks you whether save the file, click "save".

Alternatively, download Notepad++ (google it) and save every file as "UTF-8 without BOM".
I spot BOMs by Total Commander, you'll actually see them :)

In normal notepad, you're not able to spot BOM mark.

I had something like this before, the problem in my case were exactly bom marks in lang files. They can mess the design a lot, the more them the worse. :P
Trustmaster
#13 2009-07-19 23:22
Seems like you haven't uploaded new files from datas folder, make sure you've uploaded datas/extensions.php and datas/mymetype.php
May the Source be with you!
Kingsley
#14 2009-07-20 02:35
thx trust, that solved the pfs error.. Got rid of the forum error to, now only < is left.
By now checked all tpl files, but didn't find it

Also, as Tensh suggested, I changed them all to UTF8 without BOM and checked it with total commander (personally I think php designer is better, but it was a shot).
Can't find it anywhere..
tensh
#15 2009-07-20 14:35
Well, maybe:
1. clear cache
2. pause plugins, one by one (together with cleaning cache). Maybe indeed it might be a plugin, as it was suggested.

Also:
Temporarily change skin to sed-light and language to English: is that < still there?