We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18985
    • 29 Posts
    Hi,

    I’m having a weird problem.
    I’m working on a multilingual site, dutch and enlish. Both languages have their own contact form in their own language.

    The snipped calls are for english:
    [!eForm? &formid=`ContactForm` &thankyou=`thankyou` &subject=`[+subject+]` &to=`[email protected]` &ccsender=`0` &tpl=`contact_form_EN` &report=`ContactFormReport` &gotoid=`111` !]
    For Dutch:
    [!eForm? &formid=`ContactForm` &thankyou=`danku` &subject=`[+subject+]` &to=`[email protected]` &ccsender=`0` &tpl=`contact_form` &report=`ContactFormReport` &gotoid=`10` !]

    For some reason, only the enlish version works. De Dutch version give me an error telling me it can’t find ’assets/snippets/eform/eform.inc.php’, although it is most certenly there.

    This is the error:
    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: include(manager/includes/controls/class.phpmailer.php) [function.include]: failed to open stream: No such file or directory
    Error type/ Nr.: Warning - 2
    File: /home/vhosts/xxxx.com/httpdocs/assets/snippets/eform/eform.inc.php
    Line: 434
    Line 434 source: include "manager/includes/controls/class.phpmailer.php";

    Parser timing
    MySQL: 0.0053 s (15 Requests)
    PHP: 0.0391 s
    Total: 0.0444 s

    I should work? Shouldn’t it?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      It can’t find the manager/includes/controls/class.phpmailer.php file. The reference to the eform.inc.php is to give the line number of the failed include directive.

      That being said, why you have this problem is another matter. Are you using YAMS?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 18985
        • 29 Posts
        Solved it.

        Had to check caching on for the pages where I have the forms.

        Fellt like a ’DOH!’ moment.