Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Contact Us Form on v.1.4.1  (Read 37404 times)

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Contact Us Form on v.1.4.1
« on: April 07, 2025, 06:30:08 AM »
Hello,

when i tried the contact us form i got next error as on screenshot. i use last V.1.4.1 with php 7.3

also i noticed that to required fields in the form settings are off but on the interface they are appearing active and required.

here is the link to the form: https://abcotex. com/index.php?rt=content/contact


here is the error log:


2025-04-07 13:22:54 - Unknown Error: AbanteCart core v.1.4.1 Symfony\Component\Mime\Address::__construct(): Argument #2 ($name) must be of type string, null given, called in /home/u0768522/abcotex.com/core/lib/mail.php on line 142
Trace:
#0 /home/u0768522/abcotex.com/core/lib/mail.php(142): Symfony\Component\Mime\Address->__construct()
#1 /home/u0768522/abcotex.com/storefront/controller/pages/content/contact.php(136): AMail->setSender()
#2 /home/u0768522/abcotex.com/core/engine/dispatcher.php(306): ControllerPagesContentContact->main()
#3 /home/u0768522/abcotex.com/core/engine/dispatcher.php(341): ADispatcher->dispatch()
#4 /home/u0768522/abcotex.com/core/engine/page.php(108): ADispatcher->dispatch()
#5 /home/u0768522/abcotex.com/core/engine/router.php(204): APage->build()
#6 /home/u0768522/abcotex.com/core/engine/router.php(86): ARouter->route()
#7 /home/u0768522/abcotex.com/index.php(101): ARouter->processRoute()
#8 {main} in /home/u0768522/abcotex.com/vendor/symfony/mime/Address.php on line 42
2025-04-07 13:23:22 - Unknown Error: AbanteCart core v.1.4.1 Symfony\Component\Mime\Address::__construct(): Argument #2 ($name) must be of type string, null given, called in /home/u0768522/abcotex.com/core/lib/mail.php on line 142
Trace:
#0 /home/u0768522/abcotex.com/core/lib/mail.php(142): Symfony\Component\Mime\Address->__construct()
#1 /home/u0768522/abcotex.com/storefront/controller/pages/content/contact.php(136): AMail->setSender()
#2 /home/u0768522/abcotex.com/core/engine/dispatcher.php(306): ControllerPagesContentContact->main()
#3 /home/u0768522/abcotex.com/core/engine/dispatcher.php(341): ADispatcher->dispatch()
#4 /home/u0768522/abcotex.com/core/engine/page.php(108): ADispatcher->dispatch()
#5 /home/u0768522/abcotex.com/core/engine/router.php(204): APage->build()
#6 /home/u0768522/abcotex.com/core/engine/router.php(86): ARouter->route()
#7 /home/u0768522/abcotex.com/index.php(101): ARouter->processRoute()
#8 {main} in /home/u0768522/abcotex.com/vendor/symfony/mime/Address.php on line 42





how to fix these errors please?

Thank you...
G.O.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Contact Us Form on v.1.4.1
« Reply #1 on: April 07, 2025, 07:10:34 AM »
how to fix these errors please?

do you see such message in the form manager edit form page?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #2 on: April 07, 2025, 07:17:04 AM »
how to fix these errors please?

do you see such message in the form manager edit form page?

no
Thank you...
G.O.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Contact Us Form on v.1.4.1
« Reply #3 on: April 07, 2025, 07:45:13 AM »
how to fix these errors please?

do you see such message in the form manager edit form page?

no

To solve set first_name field as mandatory via admin->design->form manager->edit ContactUs form
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #4 on: April 07, 2025, 10:18:37 AM »
how to fix these errors please?

do you see such message in the form manager edit form page?

no

To solve set first_name field as mandatory via admin->design->form manager->edit ContactUs form


i did that too, i tired many options and also doesn't work yet. what could be done else?
Thank you...
G.O.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Contact Us Form on v.1.4.1
« Reply #5 on: April 07, 2025, 05:20:16 PM »
try to disable all 3d-party extensions and retry
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #6 on: April 08, 2025, 03:40:11 AM »
try to disable all 3d-party extensions and retry

if you talk about google reCAPTCHA already tried that too. on website now there is the default CAPTCHA and i tried next options

1. when using:
 Processing Controller: Contact Us Page(*)

Success page: content/contact

on website form page not showing me a notification that to form been submitted successfully and on Admin side i get this notification message:

New Inquiry From m****** (info@test.com)
Message status:
notice
Date:
08.04.2025 10:12:09 AM
Number of repetitions:
0
Enquiry: First Name: m****** Last Name: h****** Gender: Mr: Email: info@test.com Departments: Sales Country: T***** Telephone | Cellphone: 0123456789 Inquiry: Note: bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla, Rate Us: 100 % reCAPTCHA: b60001 IP Address: 9*.1*.1**.1**

in the error log i get these errors:
2025-04-08 10:09:07 - App Error: AbanteCart core v.1.4.1 NOT EXIST Form with name ContactUsFrm
Trace:
#0 abcotex.com/core/engine/form.php on line 171
#1 abcotex.com/core/engine/form.php on line 125
#2 abcotex.com/storefront/controller/pages/content/contact.php on line 39
#3 abcotex.com/core/engine/dispatcher.php on line 306
#4 abcotex.com/core/engine/dispatcher.php on line 341


2. when using:
Processing Controller: Default Email(*)

Success page: forms_manager/default_email
on website form page showing me a notification that Form was submitted successfully! but on email inbox nothing and on admin panel page also nothing.


Not:  i tried also to make the field of Success page: empty in both options and gave it a try but nothing too.

finally, i should say that the contact us form in my website not working since v.1.3.2 on AbanteCart, there must be some missing codes which effecting on the form structure and on Google reCAPTCHA and that's made this conflict in the form process.


  DO YOU HAVE ANY SUGGESTION IN THIS CASE?
Thank you...
G.O.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Contact Us Form on v.1.4.1
« Reply #7 on: April 08, 2025, 03:55:36 AM »

Success page: content/contact


why such route?
Should be content/contact/success
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #8 on: April 08, 2025, 05:15:49 AM »

Success page: content/contact


why such route?
Should be content/contact/success

even your suggestion tried and the result as you see in the screenshot but there is nothing arrived, not to email and not to admin dashboard.   I think the best option is resetting the Form codes to default and replace them. so tell me what to replace? maybe will solve my problem. 
« Last Edit: April 08, 2025, 05:18:04 AM by G. O. »
Thank you...
G.O.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Contact Us Form on v.1.4.1
« Reply #9 on: April 08, 2025, 05:38:51 AM »
what about email template with id 'storefront_contact_us_mail' ?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #10 on: April 08, 2025, 07:04:07 AM »
what about email template with id 'storefront_contact_us_mail' ?

HERE IS THE HTML BODY CODE:
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <title>{{ title }}</title>
</head>
<body>
<table style="font-family: Verdana,sans-serif; font-size: 11px; color: #374953; width: 600px;">
   <tr>
      <td class="align_left">
         <a href="{{ store_url }}" title="{{ store_name }}">
            {{# logo_uri }}
               <img src="{{ logo_uri }}" alt="{{ store_name }}" style="border: none;">
            {{/ logo_uri }}
            {{# logo_html }}
               {{ logo_html }}
            {{/ logo_html }}            
         </a>
      </td>
   </tr>
   <tr>
      <td>&nbsp;</td>
   </tr>
   <tr>
<td>&nbsp;</td>
   </tr>
   <tr>
      <td class="align_left"
          style="background-color: #069; color:#FFF; font-size: 12px; font-weight: bold; padding: 0.5em 1em;">{{ entry_enquiry }}</td>
   </tr>
   <tr>
      <td class="align_left"
          style=" font-size: 12px; padding: 0.5em 1em;">{{{ enquiry }}}</td>
   </tr>
   <tr>
      <td>&nbsp;</td>
   </tr>
   <tr>
      <td>
         <table style="width: 100%; font-family: Verdana,sans-serif; font-size: 11px; color: #FFFFFF;">
            {{# tpl_form_fields }}
            <tr>
            <td style="padding: 0.3em; background-color: #EEEEEE; color: #000;">{{ name }}</td>
               <td style="padding: 0.3em; background-color: #EEEEEE; color: #000;">{{ value }}</td>
            </tr>
            {{/ tpl_form_fields }}
         </table>
      </td>
   </tr>
   <tr>
      <td>&nbsp;</td>
   </tr>
   <tr>
      <td class="align_center"
          style="font-size: 10px; border-top: 1px solid #069; text-decoration: none; color: #374953;">
         <a href="{{ store_url }}"
            style="color: #069; font-weight: bold; text-decoration: none;">{{ store_name }}</a><br>
      </td>
   </tr>
</table>
</body>
</html>


AND HERE IS THE BODY TEXT:

{{ store_name }}

{{ entry_enquiry }}
{{{ enquiry }}}


{{# tpl_form_fields }}
{{ name }}  {{ value }}
{{/ tpl_form_fields }}
Thank you...
G.O.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Contact Us Form on v.1.4.1
« Reply #11 on: April 09, 2025, 07:11:55 AM »
Can you provide access to your admin side via private message?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #12 on: April 10, 2025, 05:41:02 AM »
Can you provide access to your admin side via private message?

check you inbox plz
Thank you...
G.O.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Contact Us Form on v.1.4.1
« Reply #14 on: April 11, 2025, 12:33:44 AM »
Can you provide access to your admin side via private message?

check you inbox plz

try to replace your files with this
https://github.com/abantecart/abantecart-src/blob/2724b43aa1c9cb122734acdfe9b7173542f528a7/public_html/storefront/controller/pages/content/contact.php
and
https://github.com/abantecart/abantecart-src/blob/2724b43aa1c9cb122734acdfe9b7173542f528a7/public_html/core/engine/form.php

and let us know


i replaced those files and after testing the contact us form i got these error log: and when submitting the form i got next screen as you can see in my screenshot

ERROR LOG:
2025-04-11 6:59:47 - Unknown Error: AbanteCart core v.1.4.1 Call to undefined method ALanguage::getAndReplace()
Trace:
#0 /home/core/engine/dispatcher.php(306): ControllerPagesContentContact->main()
#1 /home/core/engine/dispatcher.php(341): ADispatcher->dispatch()
#2 /home/core/engine/page.php(108): ADispatcher->dispatch()
#3 /home/core/engine/router.php(204): APage->build()
#4 /home/core/engine/router.php(86): ARouter->route()
#5 /home/index.php(101): ARouter->processRoute()
#6 {main} in /home/storefront/controller/pages/content/contact.php on line 50
Thank you...
G.O.

 

Powered by SMFPacks Social Login Mod