Jump to content

sp1key

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by sp1key

  1. On 5/16/2022 at 9:04 PM, Juergen said:

    Hello sp1key,

    glad to hear that 🙂

    Sending emails is not part of this module, so its up to the mailer class of PW. If you set it up correctly, it will work.

    I have corrected this notice - so please download FrontendForms.module once more and replace it with the new one.

    Best regards

     

    Hello Juergen,

    I uploaded the new FrontendForms.module and everthing is fine now. No warnings in back-end or front-end.

    This is a very handy and helpful module for building forms. I just miss the examples you have included in the previous versions of the module - they were very informative; it's a pity I didn't kept them after the updates.

    You have done a very good job. Thank you for your efforts and hard trying.

    Best regards,
    Constantine

    • Thanks 1
  2. 48 minutes ago, sp1key said:

    Also another question:
    I declare the 
    $frontendforms = new FrontendForms();
    into the template file(s). 
    In the site I have 2 different forms; a contact form and a kind of simple reservation form. The contact form page, as I said, is working fine but the reservation form page shows an error saying:

    Compile Error: Cannot declare class FrontendForms\Form, because the name is already in use (line 0 of site/modules/FrontendForms/Formelements/Form.php)

     

    I already fixed this 2nd issue. 

    Best regards

  3. Hello Juergen,

    The form is working now in live server (I have not yet test if emails can be sent). 

    The issue is that if in the site/config.php the debug is true:
    $config->debug = true;
    There is an error both in back-end (admin) and the front-end of the site. I attached the error message picture. Especially this error line is keep coming in the page (many lines) so especially in admin it's not easy to work.
    If $config->debug = false; no error message.


    Also another question:
    I declare the 
    $frontendforms = new FrontendForms();
    into the template file(s). 
    In the site I have 2 different forms; a contact form and a kind of simple reservation form. The contact form page, as I said, is working fine but the reservation form page shows an error saying:

    Compile Error: Cannot declare class FrontendForms\Form, because the name is already in use (line 0 of site/modules/FrontendForms/Formelements/Form.php)

    Any idea about these 2 issues?

    Best regards

    forntendforms-loading-error.jpg

  4. Hello Juergen,

    In Form.php 
    ...
    in line 346:
    public function getAlert(): Alert 

     return $this->alert; 
    }
    and in line 307:
    public function getRequiredText(): RequiredTextHint 

     return $this->requiredHint; 
    }

    Both functions return an object (Alert & RequiredTextHint), but these objects are not declared anywhere in the code. Maybe this is the issue that causes the error message?

    Best regards

  5. Hello Juergen,

    This is sp1ke (for some unknown reason, I cannot login with my old name in forums). Some remarks that might help you:

    1. Your module worked fine on my local server (windows PC with XAMPP). The problem arise when I transfer the site to a live server. I have already tested in 2 different servers and the error message was the same in both of them.

    2. Yesterday using module's version 2.0.2, I comment out the line 121 in Forms.php (where there is the error):
    // $this->alert = new Alert();
    After doing that the same error message was for line 128:
    $this->requiredHint = new RequiredTextHint();

    Maybe these info is useful for you.

    Best regards

×
×
  • Create New...