Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes
Author Message
hireamerica
Client



Joined: Sep 30, 2004
Posts: 103
Location: New Jersey

PostPosted: Fri Nov 12, 2004 2:33 pm Reply with quote

Ugh...

I started to take a look at my error logs in cpanel and saw about 3 different ones getting done over and over again.

1) A gif file not properly showing. This was due to a "/" vs. "\". Note: IE doesn't care if you do img src=images\image.gif or /image.gif. Firefox cares!!! Strict RC4.

Fixed.

2) and 3) Semes I'm getting an issue with some php file that is supposed to show themes/$theme/images/pixel.gif

Now it shows in the log as themes//images/pixel.gif so obviously $theme is not getting set correctly SOMEWHERE.

If only this was a major gif it would be easy, but I know pixel.gif is a spacer file and isn't visibly noticeable on my site.

Any clue how I can trace through all the .php files and find which mention this? I'm not on Linux/Unix right here so I can't run a massive grep across my directories.
 
View user's profile Send private message Visit poster's website Yahoo Messenger
hireamerica







PostPosted: Fri Nov 12, 2004 3:36 pm Reply with quote

Just to add, and this is what I'm chasing..

1) Default_theme is populated in config table: value = 3516 so directory is themes\3516\ etc.

2) I also am seeing errors for favicon.ico which I am looking at header.php at. This will show that if the default theme is present but my error shows as if it's sitename\favicon.ico is not found.
 
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Fri Nov 12, 2004 5:26 pm Reply with quote

The favicon code is in header.php I've never cared for it rather left it in the web root myself. It sets it to look at the current theme images directory. So if someone would have a different one for every theme it.... but anyway thats how it is. If you want to change the code this is what to look for.
if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
}

Something more rational like this maybe?
if (file_exists("./images/favicon.ico")) {
echo "<link REL=\"shortcut icon\" HREF=\"./images/favicon.ico\" TYPE=\"image/x-icon\">\n";
}

OR:
if (file_exists("./favicon.ico")) {
echo "<link REL=\"shortcut icon\" HREF=\"./favicon.ico\" TYPE=\"image/x-icon\">\n";
}

The pixal.gif error is most likely in your theme somewhere.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
hireamerica







PostPosted: Fri Nov 12, 2004 5:48 pm Reply with quote

Thanks for the reply!

1. favicon.ico: Saw this in header.php, and just said to self: put any old icon there and let's see if it shows. Did this...nothing shows. Done. Not cleanest like touching code, but the error goes away.

2. pixel.gif. Theme was provided to me for kaching!, but all files in the theme are explicit. E.g. they quote theme/3516/images/ etc., without using $theme or $ThemeSel or any variables. Saw some code in header.php about calling get_theme () in mainfile.php and I don't understand the base64 stuff, but it looks like $default_theme comes from nuke_config where I do have 3516 as the value.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©