Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Two image, one displayed

[FIXED] Two image, one displayed 06 Apr 2012 09:24 #1925

  • molenwal1
  • molenwal1's Avatar
  • Offline
  • Senior Member
  • Posts: 63
  • Thank you received: 17
  • Karma: 3
I have a problem with two images in one page. Only one image is showed, mostly the first, sometimes the second. The second looks like a broken link.

The link with the example: 109.70.6.65/~molenwal1/index.php/booking-sub

The paths of the two image files are:
109.70.6.65/~molenwal1/index.php?option=...trs=format:png&path=[DIR_SUBPROPERTY_IMAGE_1]zomerhuisje_01.jpg

109.70.6.65/~molenwal1/index.php?option=...trs=format:png&path=[DIR_SUBPROPERTY_IMAGE_2]zomerhuisje_02.jpg

When i use this link i have no problem i can see the image.

In the Apache Log this message is shown:
[Fri Apr 06 13:03:19 2012] [notice] child pid 1187 exit signal Segmentation fault (11)

When i use only one message i don't have this problem. Also in the sandbox of J-Cook i do not have the problem.

Because of the error message in the Apache log i think it is a combination of more then one image in one page and my server setup which is a Centos Linux with Directadmin and Apache. The rights on the imagemaps are ok (777). The thumb-image is also created!

Does anyone has experience with this?

The code for the images:
<code><?php echo JDom::_('html.fly.file', array(
'dataKey' => 'image_1',
'dataObject' => $this->subpropertyitem,
'width' => 300,
'height' => 200,
'attrs' => array('format:png'),
'indirect' => true,
'root' => '[DIR_SUBPROPERTY_IMAGE_1]'
));
?>
<?php echo JDom::_('html.fly.file', array(
'dataKey' => 'image_2',
'dataObject' => $this->subpropertyitem,
'width' => 300,
'height' => 200,
'attrs' => array('format:png'),
'indirect' => true,
'root' => '[DIR_SUBPROPERTY_IMAGE_2]'
));</code>
Molenwal1 Webdesign
www.molenwal1.nl
Last Edit: 10 Apr 2012 05:52 by molenwal1.
The administrator has disabled public write access.

Re: Two image, one displayed 15 Apr 2012 08:21 #1994

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Sould be fixed.

It was a notice issue in the thumb file, before the header, so with a low level of error reporting, it was working.

Now, everything should be fixed.

Please confirm.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: [FIXED] Two image, one displayed 16 Apr 2012 05:01 #2016

  • molenwal1
  • molenwal1's Avatar
  • Offline
  • Senior Member
  • Posts: 63
  • Thank you received: 17
  • Karma: 3
Because i made a lot of changes in the original J-Cook component i copied all classes files for filehandling and all dom-files for filehandling to my component.

With the Joomla debug option switched to yes i still have this issue. Without this option it works fine. Maybe i should copy more files or functions. I have uploaded jpg files and they are displayed as png.

At this moment i do not have time to install the clean J-Cook component, i will do that in a later stage.
Molenwal1 Webdesign
www.molenwal1.nl
The administrator has disabled public write access.
Time to create page: 0.070 seconds

Get Started