Hello there,
I'm totaly new to Drupal. I have just mamaged to install Drupal but now can't seem to customise the look of the template.
When I log in I get this error message:
* warning: getimagesize(): PNG file corrupted by ASCII conversion in /home/wteastuk/public_html/new/includes/theme.inc on line 519.
* warning: getimagesize(): PNG file corrupted by ASCII conversion in /home/wteastuk/public_html/new/includes/theme.inc on line 519.
* warning: getimagesize(): PNG file corrupted by ASCII conversion in /home/wteastuk/public_html/new/includes/theme.inc on line 519.
This is after trying to upload and replace the image it seemed to use. Any advice?
Currently nothing happens, it seems that the program is ignoring anything I do.
Comments
It seems you have uploaded
It seems you have uploaded an invalid png-file (image). The line is
Thomas Narres
Keep the sunny side up
sorry to be such an ignorant
sorry to be such an ignorant fool, but what am I supposed to do with that?
Are you using ftp?
Are you using ftp to upload the image? If so, you need to make sure you're transferring the file using binary, not ASCII, mode.
Thanks for the tip, but
Thanks for the tip, but although I tried, I couldn't rectify it by deleting the image and uploading it again via binay mode (using Smart FTP).
Any other ideas?
I'm now gettting this error message:
warning: getimagesize(): PNG file corrupted by ASCII conversion in /home/wteastuk/public_html/new/includes/theme.inc on line 519.
I don't even know where that directory is supposed to be.
We can fix this, I'm sure
Hi, Talib.
'/home/wteastuk/public_html/new' is your site's root directory, that is, where Drupal is installed, I think.
The '/includes/theme.inc' is in Drupal's include directory, and is part of the core distribution; I reckon it's having a problem with a theme.
When you say 'template', do you mean 'theme'?
Which image file did you modify?
Was it in a theme directory?
I'm fairly new to Drupal myself, but I've spent some time customising themes, and found it difficult myself until I started to figure out how they work. I've got as far as changing images, changing the CSS, and yesterday even managed to modify the page.tpl.php to customise my primary links.
In essence, (and I hate to sound like a support guy :-) what did you do to break it? ;-)
Not the Themes
I don't think it's the particular theme as I have about 5 different ones installed and the image doesn't come up in any one of them. The themes are
bluemarine
chameleon
leaves
marvin
pushbutton
It's the Leaves' one I would like to get to work.
the file I wanted to change was called bluemarine_logo.gif in the files directory. I changed the file name of my header and replaced the original file.
Another thought
One way to check the integrity of an image outside of Drupal would be this...
If it's in a theme directory, it will be accessible via 'http://yoursitename/yourthemename/yourimagename'
I've had to do that occasionally when I've changed stuff on a website, and was getting my browser's local (and NOT updated) cache of the file. I was fearing for my sanity before I worked that one out!
can't call it up
When I try to call up the image directly as you described I get this error:
Sorry, there has been a page error
The server could not complete your request.
-The script or file you are trying to call may be incorrectly written.
-The host may be having a problem currently.
-If you typed the page address in the Address bar, make sure that it is spelled correctly.
-Open the wteast.co.uk home page, and then look for links to the information you want.
-Click Here to try another link.
????????????????????????????????????????????????????
OK. Another thought...
Hi again, Talib.
Looks like you're using version 4.6; (are you?) which I know very little about.
Having said that, the problem still seems to be with your ftp client.
Have you tried using SmartFTP to get the remote file back to your own machine, and looking at it to see if it was corrupted?
You might want to backup the local image first...