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
5 years 1 month ago #139557 by Christoph Camphausen
Christoph Camphausen created the topic: Image in Contact Form creates 500 error
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.

More
5 years 1 month ago #139558 by Krikor Boghossian
Krikor Boghossian replied the topic: Image in Contact Form creates 500 error
Hello,

Does this error occur in the frontend or the backend?

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • Christoph Camphausen
  • Christoph Camphausen's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 month ago #139559 by Christoph Camphausen
Christoph Camphausen replied the topic: Image in Contact Form creates 500 error
frontend

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

More
5 years 1 month ago #139560 by Krikor Boghossian
Krikor Boghossian replied the 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; ?>

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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


Powered by Kunena Forum