Author Topic: Png's produces php error  (Read 3723 times)

Swissy

  • Underling
  • *
  • Posts: 2
Png's produces php error
« on: October 30, 2008, 12:42:30 PM »
Reproduction
---------------
1. Go to [My Account] and select [Upload Photos]
2. Click [Browse] and select a .png image
3. Upload

Bug
-----

The following error message appears at the top of the page:

Quote
A PHP Error was encountered

Severity: Warning

Message: imagecopyresampled(): supplied argument is not a valid Image resource

Filename: controllers/manage.php

Line Number: 183

Selecting [Manage Photos] will show the .png image as a black square.

Solution
---------

Please ensure .png images can be uploaded.


Notes
-------

I finally managed to upload photos and artwork by converting all the files from .png to .jpeg and it all worked like a charm.
Using Firefox 3.0.3 (build 2008092417)/win xp.


cheers,
Swissy


SuckerPunch

  • Elite Boss
  • *****
  • Posts: 1,608
    • Titan Network
Re: Png's produces php error
« Reply #1 on: October 30, 2008, 04:05:15 PM »
Sorry about that - stupid typo in the upload script    :-X

Should be fixed now!

Swissy

  • Underling
  • *
  • Posts: 2
Re: Png's produces php error
« Reply #2 on: October 30, 2008, 04:44:07 PM »
Fix verified!

Close bug.



Thanks :D


Maverick X

  • Elite Boss
  • *****
  • Posts: 355
  • Superpowered Awesome
    • SeanMcMahan.info
Re: Png's produces php error
« Reply #3 on: October 31, 2008, 03:10:45 AM »
Sorry about that - stupid typo in the upload script    :-X

Should be fixed now!

Yeah, I just thought he was trying to break out with a new image type, though I'm not sure what an ong would be.... :P
Sean
Retired Resident Titan Nerd
---------------------------

Tazhyngarth

  • Elite Boss
  • *****
  • Posts: 2,085
    • Titan Network
Re: Png's produces php error
« Reply #4 on: October 31, 2008, 03:13:52 PM »
LOL!