Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro
Author Message
jimmo
Worker
Worker


Joined: Dec 08, 2005
Posts: 107

PostPosted: Thu Jul 06, 2006 3:58 am Reply with quote

Hi All!

I moved my RN 7.6 installation from one server to another, after which the security code image is no longer being displayed anywhere. Apparently something when wrong with the move.

I did a tar dump of the DocumentRoot on the new system and move it to my local machine. Here the image is displayed correctly. So, the logical explanation is a difference between the servers. I found a post with a code snippet to create a test image. This displays:

GD Is Enabled. What now?

The code_bg image exists in the places other posts have said:

./images/admin/code_bg.jpg
./images/code_bg.jpg
./modules/Forums/images/code_bg.jpg

Permissions are 644. I remember reading a post that said these were supposed to be PNG ( I think). However, the test machine also has JPG files.

In the config.php the code is activated:
$gfx_chk = 7;

I have tried it with both Konqueror and Firefox on Linux, and Internet Explorer on Windows.

Any clues as to where to look next? Any ideas are greatly appreaciated.

Regards,

jimmo
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Thu Jul 06, 2006 6:45 am Reply with quote

any site where we can have a look....?
Tried uploading the images again ?....new ones.. Smile
 
View user's profile Send private message
jimmo
PostPosted: Fri Jul 07, 2006 2:29 am Reply with quote

Hi Hitwalker!

Thanks for the reply. The site is Only registered users can see links on this board! Get registered or login! I seem to have gotten it working, but I am not 100% sure why. The how part was that I found a few posts that said to make sure there were no empty lines at the end of the mainfile.php and modules.php files. These two files were ok. However, that got me thinking about the possibility that there was another files with an empty line.

What I had done on the live machine was to move my config.php up above the DocumentRoot and created another config.php that includes ../config.php. The "real" config.php was fine, but the one in the DocumentRoot had a blank line at the end. I removed the line and the image re-appeared.

So, now I know what was causing the problem. I am still unclear as to why. I could imagine since the blank line is outside of the PHP code, the server sees it simply as HTML and outputs it without further processing or there is some other part of the process that does the same. Therefore, the blank line gets inserted somewhere where it doesn't belong and "messes things up". However, at this point, I am simply guessing and would appeaciate any additional info.

Thanks & Regards,

jimmo
 
hitwalker
PostPosted: Fri Jul 07, 2006 4:45 am Reply with quote

well most important thing is that its solved.
and yes an empty line can cause all sorts of problems..
it doesnt mean it should........but it can..
but its ok now so have fun.. Laughing
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro

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 ©