Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / error 500 when trying to enable payment modules in admin

error 500 when trying to enable payment modules in admin

Views: 1,498

Results 1 to 6 of 6
2 Jan 2025, 3:14 PM
#1
vmax avatar

vmax

New Zenner

Join Date:
Jun 2018
Location:
uk
Posts:
31
Plugin Contributions:
0

error 500 when trying to enable payment modules in admin

hi guys
just done a fresh install of zen on a a new host
everything seemed fine
front end is behaving well and admin seemed ok until i tried to enable some of the built in payment options ( all modules give the same error)

when i click the +install button all i get is a blank page telling:

This page isn’t working
https://www.cjscreativecrafts.com is currently unable to handle this request.
HTTP ERROR 500

im running latest version of zen with PHP Version: 8.3.14

my site is https://www.cjscreativecrafts.com/

currently everything is stock install out of the box no addons no modifications

i also get the sam,e error page when i try to create a new admin login

2 Jan 2025, 3:19 PM
#2
vmax avatar

vmax

New Zenner

Join Date:
Jun 2018
Location:
uk
Posts:
31
Plugin Contributions:
0

Re: error 500 when trying to enable payment modules in admin

vmax:

hi guys
just done a fresh install of zen on a a new host
everything seemed fine
front end is behaving well and admin seemed ok until i tried to enable some of the built in payment options ( all modules give the same error)

when i click the +install button all i get is a blank page telling:

This page isn’t working
https://www.cjscreativecrafts.com is currently unable to handle this request.
HTTP ERROR 500

im running latest version of zen with PHP Version: 8.3.14

my site is https://www.cjscreativecrafts.com/

currently everything is stock install out of the box no addons no modifications

i also get the same error page when i try to create a new admin login

here is the error log from zen logs folder

text/plain myDEBUG-adm-20250102-151230-460267.log ( ASCII text )
[02-Jan-2025 15:12:30 UTC] PHP Fatal error: Uncaught Error: Call to undefined function PHPMailer\PHPMailer\mail() in /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php:880
Stack trace:
#0 /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php(1966): PHPMailer\PHPMailer\PHPMailer->mailPassthru('CJ's Creative C...', '=?us-ascii?Q?AL...', 'This is an auto...', 'Date: Thu, 2 Ja...', NULL)
#1 /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php(1689): PHPMailer\PHPMailer\PHPMailer->mailSend('Date: Thu, 2 Ja...', 'This is an auto...')
#2 /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php(1521): PHPMailer\PHPMailer\PHPMailer->postSend()
#3 /home/cjscreat/public_html/includes/functions/functions_email.php(474): PHPMailer\PHPMailer\PHPMailer->send()
#4 /home/cjscreat/public_html/zcadmin/modules.php(125): zen_mail('CJ's Creative C...', 'cj-crafts@outlo...', 'ALERT: Admin se...', 'This is an auto...', 'CJ's Creative C...', 'cj-crafts@outlo...', Array, 'admin_settings_...')
#5 /home/cjscreat/public_html/zcadmin/index.php(16): require('/home/cjscreat/...')
#6 {main}
thrown in /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php on line 880

[02-Jan-2025 15:12:30 UTC] Request URI: /zcadmin/index.php?cmd=modules&set=payment&action=install, IP address: https://www.cjscreativecrafts.com
--> PHP Fatal error: Uncaught Error: Call to undefined function PHPMailer\PHPMailer\mail() in /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php:880
Stack trace:
#0 /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php(1966): PHPMailer\PHPMailer\PHPMailer->mailPassthru('CJ's Creative C...', '=?us-ascii?Q?AL...', 'This is an auto...', 'Date: Thu, 2 Ja...', NULL)
#1 /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php(1689): PHPMailer\PHPMailer\PHPMailer->mailSend('Date: Thu, 2 Ja...', 'This is an auto...')
#2 /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php(1521): PHPMailer\PHPMailer\PHPMailer->postSend()
#3 /home/cjscreat/public_html/includes/functions/functions_email.php(474): PHPMailer\PHPMailer\PHPMailer->send()
#4 /home/cjscreat/public_html/zcadmin/modules.php(125): zen_mail('CJ's Creative C...', 'cj-crafts@outlo...', 'ALERT: Admin se...', 'This is an auto...', 'CJ's Creative C...', 'cj-crafts@outlo...', Array, 'admin_settings_...')
#5 /home/cjscreat/public_html/zcadmin/index.php(16): require('/home/cjscreat/...')
#6 {main}
thrown in /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php on line 880.

[02-Jan-2025 15:12:30 UTC] Request URI: /zcadmin/index.php?cmd=modules&set=payment&action=install, IP address: https://www.cjscreativecrafts.com
--> PHP Fatal error: Uncaught Error: Call to undefined function PHPMailer\PHPMailer\mail() in /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php:880
Stack trace:
#0 /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php(1966): PHPMailer\PHPMailer\PHPMailer->mailPassthru('CJ's Creative C...', '=?us-ascii?Q?AL...', 'This is an auto...', 'Date: Thu, 2 Ja...', NULL)
#1 /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php(1689): PHPMailer\PHPMailer\PHPMailer->mailSend('Date: Thu, 2 Ja...', 'This is an auto...')
#2 /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php(1521): PHPMailer\PHPMailer\PHPMailer->postSend()
#3 /home/cjscreat/public_html/includes/functions/functions_email.php(474): PHPMailer\PHPMailer\PHPMailer->send()
#4 /home/cjscreat/public_html/zcadmin/modules.php(125): zen_mail('CJ's Creative C...', 'cj-crafts@outlo...', 'ALERT: Admin se...', 'This is an auto...', 'CJ's Creative C...', 'cj-crafts@outlo...', Array, 'admin_settings_...')
#5 /home/cjscreat/public_html/zcadmin/index.php(16): require('/home/cjscreat/...')
#6 {main}
thrown in /home/cjscreat/public_html/includes/classes/vendors/PHPMailer/src/PHPMailer.php on line 880.

2 Jan 2025, 3:51 PM
#3
lat9 avatar

lat9

Administrator

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

Re: error 500 when trying to enable payment modules in admin

What's the site's setting for Configuration // Email // E-Mail Transport Method?

From the log, it looks like it's sendmail. The log is indicating that the base PHP function **mail **(for whatever reason) isn't installed as part of your webhost's PHP load.

2 Jan 2025, 4:19 PM
#4
vmax avatar

vmax

New Zenner

Join Date:
Jun 2018
Location:
uk
Posts:
31
Plugin Contributions:
0

Re: error 500 when trying to enable payment modules in admin

lat9:

What's the site's setting for Configuration // Email // E-Mail Transport Method?

From the log, it looks like it's sendmail. The log is indicating that the base PHP function **mail **(for whatever reason) isn't installed as part of your webhost's PHP load.

its currently set to php

2 Jan 2025, 6:48 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,694
Plugin Contributions:
56

Re: error 500 when trying to enable payment modules in admin

You'll have to ask your hoster to enable PHP mail, and if they won't, you'll have to use an external SMTP server.

You may be required to pinky-swear that you're not a spammer. :)

3 Jan 2025, 3:05 PM
#6
vmax avatar

vmax

New Zenner

Join Date:
Jun 2018
Location:
uk
Posts:
31
Plugin Contributions:
0

Re: error 500 when trying to enable payment modules in admin

lol thanks
i contacted my host and they turns out they dont allow php email so ivae used smtpauth method which solved the issue

many thanks for your time