Thanks Dan for your input! There were no error messages and debug was
set to 0 though.
But today I found out what was causing the problem.
I had an extra whitespace in the new model file after the ?> tag which
resulted in a broken header!

Cheers,
tobi_one

On 25 Jun., 01:57, Dan Bair <[email protected]> wrote:
> Quick correction: image blob, not image "blog" :)
>
> On Jun 24, 3:52 pm, Dan Bair <[email protected]> wrote:
>
> > I've ran into stuff like this before. In my cases, it was because
> > there was some sort PHP warning or notice coming from a query or other
> > PHP logic that goofed out the output of the image blog.
>
> > Try turning debug to zero: Configure::write( 'debug', 0 );
>
> > or output your script in a way where you would be able to view any
> > warnings, notices, or fatal errors.
>
> > On Jun 24, 6:25 am, tobi_one <[email protected]> wrote:
>
> > > Hi,
>
> > > I have a super strange problem with broken images. Here's the
> > > situtation:
>
> > > I'm parsing PNG images via reafile like this:
>
> > > Configure::write('debug', 0);
> > > $this->layout = 'ajax';
> > > $imagepath = something ;
> > > header( "Content-type: image/png" );
> > > @readfile( $imagepath );
>
> > > Now, this has worked absolutely fine so far. I wanted to add another
> > > model to my project today, which is joined via a HABTM relationship to
> > > my existing user model. I have others existing HABTM relationships,
> > > which I join like this because I need access to the join table:
>
> > > var $hasAndBelongsToMany = array('Voucher' => array('with' =>
> > > 'UsersVoucher'), 'Wish' => array('with' => 'UsersWish'));
>
> > > When I added the other model, suddenly all the PNG parsed images were
> > > broken. Firefox shows an error message, IE shows the broken image
> > > icon. The rest of the site is working fine though!
>
> > > I double checked everything, the server repsonds a 200 code, data is
> > > transferred because when I deactivate the header line, I can see the
> > > ASCII code of the image. But the whole thing is just broken.
>
> > > I thought maybe this could be a memory issue, so I increased the PHP
> > > memory_limit from 128 MB to 150 MB - still no luck.
>
> > > So, at the moment I have absolutely no clue where to look next... Any
> > > ideas anyone? ;-)
>
> > > Cheers,
> > > tobi_one
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to