Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • petrahk Friend
    #157638

    Hi,
    I’m getting the error: 500 – View not found [name, type, prefix]: 1,html,contentView every time I try to send a message through standard contact form.
    See here:
    http://www.menstruacni-cyklus.cz/kontakt/kontakt/kontakt.
    Practically I have this kind of error on every Ores site I built…

    I found out that this kind of error happens if I have SEF turned on… If I switch it off, it works fine…
    Thank you for your kind help.
    Petra

    Khanh Le Moderator
    #367661

    It seems the hidden variable ‘option’ is missing in overridden contact-form layout. To fix this issue, open file:
    templates/ja_ores/html/com_contact/contact/default_form.php, find this block of code (end of file)

    <input type=”hidden” name=”view” value=”contact” />
    <input type=”hidden” name=”id” value=”<?php echo (int)$this->contact->id; ?>” />
    <input type=”hidden” name=”task” value=”submit” />
    <?php echo JHTML::_( ‘form.token’ ); ?>
    </form>

    and replace with:

    <input type=”hidden” name=”option” value=”com_contact” />
    <input type=”hidden” name=”view” value=”contact” />
    <input type=”hidden” name=”id” value=”<?php echo (int)$this->contact->id; ?>” />
    <input type=”hidden” name=”task” value=”submit” />
    <?php echo JHTML::_( ‘form.token’ ); ?>
    </form>

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Khanh Le 13 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum