Forums / Installing on a Windows Server / Issues with Contact us and email

Issues with Contact us and email

Views: 13,813

Results 1 to 5 of 5
26 Feb 2024, 6:37 PM
#1
cubmanky avatar

cubmanky

Zen Follower

Join Date:
Jan 2014
Posts:
224
Plugin Contributions:
0

Issues with Contact us and email

SO I'm using PHP 8.1
In under configuration I have my email all set to a email address thru my provider with the proper SMTP info in it along with the proper email address.

I have the transport method set to PHP.
If I go in and make a change i will get an email about the admin change so I know the email side is working.
If i use the Contact us page it tells me it worked yet I get no emails.

my logs have an error of

[26-Feb-2024 13:21:39 America/New_York] Request URI: /store/Skill-ieE-trusT/index.php?cmd=modules&set=shipping&module=flat&action=edit, IP address: 67.140.162.250, Language id 1
#0 /homepages/website/includes/functions/general.php(354): zen_debug_error_handler()
#1 /homepages/website/includes/classes/VersionServer.php(110): zen_get_system_information()
#2 /homepages/website/includes/classes/VersionServer.php(25): VersionServer->buildCurrentInfo()
#3 /homepages/website/includes/classes/VersionServer.php(63): VersionServer->getZcVersioninfo()
#4 /homepages/website/includes/functions/plugin_support.php(49): VersionServer->getPluginVersion()
#5 /homepages/website/includes/modules/shipping/usps.php(215): plugin_version_check_for_updates()
#6 /homepages/website/includes/modules/shipping/usps.php(186): usps->adminInitializationChecks()
#7 /homepageswebsitemodules.php(187): usps->__construct()
#8 /homepageswebsiteindex.php(11): require('/homepages/36/d...')
--> PHP Warning: Undefined array key 0 in /homepages/website/includes/functions/general.php on line 354.

and

[26-Feb-2024 12:56:58 America/New_York] PHP Notice:  Email Error: Could not instantiate mail function.
 in /homepages/website/includes/functions/functions_email.php on line 426

Any clue what is going on?

26 Feb 2024, 9:32 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

Re: Issues with Contact us and email

First, using a Window Server (in 2024)? Please provide a screenshot identifying the server's version information from the admin's Tools :: Server/Version Information. That log's coming from the zen_get_system_information function when the base PHP 'exec' function isn't disabled (also a rare occurrence in 2024); I've highlighted line 354 to provide details for anyone who might be able to help on that one:

    if (!$exec_disabled) {
        list($system, $host, $kernel) = array('', $_SERVER['SERVER_NAME'], php_uname());
        @exec('uname -a 2>&1', $output, $errnum);
        if ($errnum == 0 && count($output)) list($system, $host, $kernel) = preg_split('/[\s,]+/', $output[0], 5);
        $output = '';
        if (DISPLAY_SERVER_UPTIME == 'true') {
            @exec('uptime 2>&1', $output, $errnum);
            if ($errnum == 0) {
[B]                $uptime = $output[0];[/B]
            }
        }
    }

For the second, that's mysterious! For starts, check your settings in Configuration :: Email :: Email Address (Displayed to Contact you) and*** Email Address (sent FROM)*** to make sure that they "look sane" and, if so, let me know the value of Configuration :: Email :: Emails must send from a known domain.

Also, check for a PM'd message.

27 Feb 2024, 3:57 AM
#3
cubmanky avatar

cubmanky

Zen Follower

Join Date:
Jan 2014
Posts:
224
Plugin Contributions:
0

Re: Issues with Contact us and email

Server OS: Linux 4.4.400-icpu-097

So Emails must send from a known domain. was set to no. I changed it to yes and it works now.

And I changed as you said in the PM it slipped thru on me

27 Feb 2024, 2:10 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

Re: Issues with Contact us and email

cubmanky:

Server OS: Linux 4.4.400-icpu-097

So Emails must send from a known domain. was set to no. I changed it to yes and it works now.

And I changed as you said in the PM it slipped thru on me
Good on two points (plus the Linux rather than IIS). I'm still not clear what is going on with that first warning (I'm hoping that someone else will chime in).

27 Feb 2024, 2:39 PM
#5
cubmanky avatar

cubmanky

Zen Follower

Join Date:
Jan 2014
Posts:
224
Plugin Contributions:
0

Re: Issues with Contact us and email

So doing my home work looks like I had that issue before last year and its due to the USPS module This was what I was told to do the last time.

i would look here:

https://github.com/lat9/usps/blob/a4....php#L131-L134

and set that constant to 0.

see if that helps.

best.