Bugged by this are you ? Well, there have been several different solutions to this puzzler and I just solved another! Here is the list of things to check when you have this problem:
Is the GD package installed? (Version 2.0 and higher)
Is JPEG enabled in the GD installation?
Is the image in images/admin/code_bg.jpg and modules/Your_Account/images/code_bg.jpg ?
If you answered YES to all of the above and it's still not working, make sure that there are no empty/blank lines after the closing ?> tag in your config.php file! What I finally determined was happening on several sites is that their editors add blank lines to the file. PHP then interprets those lines as text and starts dumping to the browser. Well, then along comes the Header() call for the JPG image and guess what? No Can Do, because you can't call Header() after the transmission to the browser has started so it dies .... . Of course we could do output buffering, but, that's another post
OMG Thank you for the insight. I was using Namo Web Editor and it was tossing in <p>&</p> at the end of ?>. Raven Thank you for this information.
Cracker Nuke Soldier
Joined: May 27, 2003
Posts: 14
Posted:
Fri Jun 06, 2003 9:00 am
Thanks Raven your help is appreciated,
The blank lines after the closing ?> can be a killer.
Cracker
Tank863 Lieutenant
Joined: Feb 21, 2003
Posts: 195
Location: Philadelphia
Posted:
Fri Jun 06, 2003 10:55 am
Raven...
I just read this post.
I was having a similar problem.
User Sign On image would not appear., but the admin logon image would.
I checked both places.. both had the image file..
but the image in Your Account had a different file size. I opened it in my image editor.. and it ws corrupt. I replaced it with the same one from the admin..
It worked.
Tank863
(PS: This was a new install of 6.5)
BoBBaGe Nuke Cadet
Joined: Jun 07, 2003
Posts: 1
Posted:
Sat Jun 07, 2003 5:42 pm
yea i did all that stuff and it still wont work, i cry every night. can one of you guys please help me?
Guess what, when I use Roboform, there is no need to enter the code. Just hit fill and enter and away you go.
Don't know why that works though.
Maybe a thought for NukeCops?
I have had 6.5 installed for over a week and everything worked fine. Yesterday I tried to log into the admin site and the security code doesn't appear. It works fine for users and the image appears, but not for the admin login.
I checked analyse and phpinfo and all are fine and nothing seems to have changed. I also verified that the code_bg.jpg files existed and even replced the admin one with the user one to see if it was a corrupt image file. Still Not working. All I get is a blank where the image should go.
Please help Raven !!
Kilo Nuke Cadet
Joined: Jun 11, 2003
Posts: 1
Posted:
Wed Jun 11, 2003 1:06 pm
I know this may not be the correct place, but if GD is enabled, but JPG support is not, how do you enable that? Somehow when I upgraded to 4.3.2 It changed it.
Upload the code_bg.gif to the images/admin folder, and also the modules/Your_Account/images folder.
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
bjamm Nuke Cadet
Joined: May 24, 2003
Posts: 6
Posted:
Wed Jun 11, 2003 8:38 pm
WOW thanks a bunch, i just had this problem TODAY after editing my script to add the Server Stats block.
In this block you have to edit your language file, mine had two blank lines at the end and a friend was registering and i removed those lines after reading this post and WOW boom it works.
Thanks so much for the quick fix
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Wed Jun 11, 2003 8:40 pm
I need to point out that ANY file that is INCLUDED by any script MUST NOT HAVE BLANK LINES after the clsing ?> tag.
Bugged by this are you ? Well, there have been several different solutions to this puzzler and I just solved another! Here is the list of things to check when you have this problem:
Is the GD package installed? (Version 2.0 and higher)
Is JPEG enabled in the GD installation?
Is the image in images/admin/code_bg.jpg and modules/Your_Account/images/code_bg.jpg ?
If you answered YES to all of the above and it's still not working, make sure that there are no empty/blank lines after the closing ?> tag in your config.php file! What I finally determined was happening on several sites is that their editors add blank lines to the file. PHP then interprets those lines as text and starts dumping to the browser. Well, then along comes the Header() call for the JPG image and guess what? No Can Do, because you can't call Header() after the transmission to the browser has started so it dies .... . Of course we could do output buffering, but, that's another post
Happy imaging!!!!
1) What is the GD package
2) How do I check if "JPEG is enabled in the GD installation"?
3) Yes it is = Is the image in images/admin/code_bg.jpg
4) Yes it is = modules/Your_Account/images/code_bg.jpg ?
5) I had one empty empty/blank line after the closing ?>
I still can not see the security logo with the field to enter the number in the picture. What I get is _USERLOGIN at the top of the block. I am running Php-Nuke v6.5. Your help is greatly appreciated!
GD is the graphics package that implements image manipulation in PHP. Run the analyzer script to see if it's installed and if JPG support is enabled.
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