Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Image in Contact Form creates 500 error

  • Christoph Camphausen
  • Christoph Camphausen's Avatar Topic Author
  • Offline
  • New Member
More
10 years 2 months ago #139557 by Christoph Camphausen
Image in Contact Form creates 500 error was created by Christoph Camphausen
Hi,
I have been trying to display an image in my contact form (Contact Manager: Contacts)
However, this produces an error: "500 - JHtml plain not found".
As soon as I remove the image it works again.
Thanks for removing this error asap.
Regards
Christoph

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 months ago #139558 by Krikor Boghossian
Replied by Krikor Boghossian on topic Image in Contact Form creates 500 error
Hello,

Does this error occur in the frontend or the backend?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Christoph Camphausen
  • Christoph Camphausen's Avatar Topic Author
  • Offline
  • New Member
More
10 years 2 months ago #139559 by Christoph Camphausen
Replied by Christoph Camphausen on topic Image in Contact Form creates 500 error
frontend

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 months ago #139560 by Krikor Boghossian
Replied by Krikor Boghossian on topic Image in Contact Form creates 500 error
Open the /templates/kiji/html/com_contact/contact/default.php file.
Locate the the following block:
    <?php if ($this->contact->image && $this->params->get('show_image')) : ?>
    <?php echo JHtml::_($this->params->get('presentation_style').'.panel', JText::_('COM_CONTACT_DETAILS'), 'basic-details'); ?>  
      <div class="contact-image">
        <?php echo JHtml::_('image', $this->contact->image, JText::_('COM_CONTACT_IMAGE_DETAILS'), array('align' => 'middle')); ?>
      </div>
    <?php endif; ?>  

And replace it with this:
    <?php if ($this->contact->image && $this->params->get('show_image')) : ?>
    <div class="thumbnail">
      <p><?php echo JHtml::_('image', $this->contact->image, JText::_('COM_CONTACT_IMAGE_DETAILS'), array('align' => 'middle', 'itemprop' => 'image')); ?></p>
    </div>
    <?php endif; ?>

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum