Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

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

Please Log in or Create an account to join the conversation.

Last edit: by molenwal1.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

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

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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.078 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started