Formit with PHP8

I’m sorry this is vague but…
I upgraded a site from 2.6.5 to 2.8.4 and all went relatively smoothly - some smarty errors and the odd error with a snippet that was solved by reinstalling the snippet.
When I change to PHP8 or PHP8.1 Formit will not send. QuickEmail snippet will produce nothing. On hitting ‘send’ with a Formit form, the site hangs and throws a 500 error. Nothing in the error logs. It displays the url correctly ie. www.mysitedotcom but with the 500 error. It also tells me the site is not secure - when looking at the cookies some are served from mysitedotcom and others from www.mysitedotcom. Both are covered by SSL. I switch back to PHP7.4 and the form sends and QuickEmail snippet returns as Successful. I now have an error in the log…

[2022-11-08 15:14:01] (ERROR @ /home/folder/public_html/site/core/model/modx/mail/phpmailer/src/PHPMailer.php : 1795) PHP warning: escapeshellarg() has been disabled for security reasons

Apologies once again that this is vague but I’ve been trying various things all day.

Did you only check the MODX error log or also the PHP error log?

Nothing in the Modx error log. The cpanel error log is showing nothing but finding the actual log files is proving to be difficult as the client has around 20 domains each with a load of subdomains. Like a needle in a haystack.

This is a snapshot of the logs - all very messy due to different domains involved and Modx not being in directly the primary domain…

[Tue Nov 08 15:56:29.283271 2022] [:error] [pid 4158589:tid 47904117864192] [client 103.74.120.192:40268] File does not exist: /home/folder/public_html/wp-login.php
[Tue Nov 08 15:31:10.929456 2022] [authz_core:error] [pid 4158742:tid 47904050624256] [client ###.###.##.#1:59888] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 15:30:21.826666 2022] [authz_core:error] [pid 4158590:tid 47904061130496] [client ###.###.##.#1:59766] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 15:13:31.062086 2022] [:error] [pid 4151808:tid 47904088446720] [client 89.12.212.167:57734] File does not exist: /home/folder/public_html/new_license.php
[Tue Nov 08 15:13:30.688091 2022] [:error] [pid 4151876:tid 47904090547968] [client 89.12.212.167:57726] File does not exist: /home/folder/public_html/V5.php
[Tue Nov 08 15:13:30.184518 2022] [:error] [pid 4151941:tid 47904113661696] [client 89.12.212.167:57724] File does not exist: /home/folder/public_html/098.php
[Tue Nov 08 15:13:29.268250 2022] [:error] [pid 4151941:tid 47904196675328] [client 89.12.212.167:57706] File does not exist: /home/folder/public_html/upel.php
[Tue Nov 08 15:13:28.150239 2022] [:error] [pid 4151808:tid 47904194574080] [client 89.12.212.167:57692] File does not exist: /home/folder/public_html/wp-info.php
[Tue Nov 08 15:13:27.047467 2022] [:error] [pid 4151941:tid 47904192472832] [client 89.12.212.167:57662] File does not exist: /home/folder/public_html/shell.php
[Tue Nov 08 15:13:25.532223 2022] [:error] [pid 4151713:tid 47904103155456] [client 89.12.212.167:49412] File does not exist: /home/folder/public_html/upload.php
[Tue Nov 08 15:13:25.001340 2022] [:error] [pid 4151876:tid 47904188270336] [client 89.12.212.167:49396] File does not exist: /home/folder/public_html/up.php
[Tue Nov 08 15:13:19.637394 2022] [:error] [pid 4151876:tid 47904096851712] [client 89.12.212.167:49368] File does not exist: /home/folder/public_html/indoxploit.php
[Tue Nov 08 15:13:19.105511 2022] [:error] [pid 4151808:tid 47904101054208] [client 89.12.212.167:49366] File does not exist: /home/folder/public_html/olux.php
[Tue Nov 08 15:13:15.174304 2022] [:error] [pid 4151941:tid 47904090547968] [client 89.12.212.167:53628] File does not exist: /home/folder/public_html/wso.php
[Tue Nov 08 15:09:17.538367 2022] [authz_core:error] [pid 4151808:tid 47904038016768] [client ###.###.##.#1:54950] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 14:42:53.609233 2022] [authz_core:error] [pid 4066291:tid 47904040118016] [client ###.###.##.#1:50722] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 14:20:58.963448 2022] [autoindex:error] [pid 4066520:tid 47904188270336] [client 198.235.24.39:63938] AH01276: Cannot serve directory /home/folder/public_html/foldersuccess.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 14:20:45.266123 2022] [authz_core:error] [pid 4066637:tid 47904027510528] [client ###.###.##.#1:46524] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 14:09:14.213564 2022] [authz_core:error] [pid 4042319:tid 47904033814272] [client ###.###.##.#1:44628] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 13:49:34.429499 2022] [:error] [pid 3856566:tid 47904109459200] [client 185.182.57.84:60678] File does not exist: /home/folder/public_html/wp-commentin.php
[Tue Nov 08 13:44:36.804311 2022] [authz_core:error] [pid 3856467:tid 47904009074432] [client ###.###.##.#1:40656] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 13:40:26.604993 2022] [authz_core:error] [pid 3856321:tid 47904061130496] [client ###.###.##.#1:39874] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 13:21:43.247112 2022] [authz_core:error] [pid 3856566:tid 47904031713024] [client ###.###.##.#1:37134] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 13:17:10.219092 2022] [autoindex:error] [pid 3856566:tid 47904107357952] [client 205.210.31.57:58358] AH01276: Cannot serve directory /home/folder/public_html/foldersuccess.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 13:07:36.998137 2022] [autoindex:error] [pid 3856467:tid 47904200877824] [client 66.240.236.116:44684] AH01276: Cannot serve directory /home/folder/public_html/foldersuccess.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 13:01:57.074905 2022] [authz_core:error] [pid 3856321:tid 47904035915520] [client ###.###.##.#1:34016] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 12:58:14.084318 2022] [authz_core:error] [pid 3856467:tid 47904067434240] [client ###.###.##.#1:33164] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 12:52:47.799291 2022] [authz_core:error] [pid 3856321:tid 47904031713024] [client ###.###.##.#1:60566] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 12:46:37.864157 2022] [autoindex:error] [pid 3856566:tid 47904080041728] [client 74.82.47.21:57067] AH01276: Cannot serve directory /home/folder/public_html/foldersuccess.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 12:35:08.824608 2022] [autoindex:error] [pid 3856321:tid 47904200877824] [client 34.76.96.55:58050] AH01276: Cannot serve directory /home/folder/public_html/foldersuccess.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 12:27:29.479793 2022] [:error] [pid 3856321:tid 47904188270336] [client 175.24.165.23:55492] File does not exist: /home/folder/public_html/xmlrpc.php
[Tue Nov 08 12:24:14.577253 2022] [authz_core:error] [pid 3856566:tid 47904065332992] [client ###.###.##.#1:51722] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 11:45:22.592339 2022] [autoindex:error] [pid 3832666:tid 47904080041728] [client 38.242.241.9:57815] AH01276: Cannot serve directory /home/folder/public_html/anothersite.co.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 11:45:22.435583 2022] [autoindex:error] [pid 3832666:tid 47904111560448] [client 38.242.241.9:57824] AH01276: Cannot serve directory /home/folder/public_html/anothersite.co.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 11:45:22.016357 2022] [autoindex:error] [pid 3832817:tid 47904086345472] [client 38.242.241.9:57596] AH01276: Cannot serve directory /home/folder/public_html/nottsent/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 11:45:21.406704 2022] [autoindex:error] [pid 3832736:tid 47904109459200] [client 38.242.241.9:57881] AH01276: Cannot serve directory /home/folder/public_html/mysite/jobber/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 11:45:21.283378 2022] [autoindex:error] [pid 3832572:tid 47904198776576] [client 38.242.241.9:57573] AH01276: Cannot serve directory /home/folder/public_html/mailer/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 11:45:21.083507 2022] [autoindex:error] [pid 3832572:tid 47904194574080] [client 38.242.241.9:57545] AH01276: Cannot serve directory /home/folder/public_html/yetanothersite.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 11:45:21.034156 2022] [autoindex:error] [pid 3832572:tid 47904084244224] [client 38.242.241.9:57510] AH01276: Cannot serve directory /home/folder/public_html/franchisebuddy.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 11:45:19.186636 2022] [autoindex:error] [pid 3832736:tid 47904101054208] [client 38.242.241.9:57344] AH01276: Cannot serve directory /home/folder/public_html/andanothersite.co.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 11:45:19.153066 2022] [autoindex:error] [pid 3832572:tid 47904080041728] [client 38.242.241.9:57343] AH01276: Cannot serve directory /home/folder/public_html/andanothersite.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 11:45:19.059852 2022] [autoindex:error] [pid 3832817:tid 47904113661696] [client 38.242.241.9:57339] AH01276: Cannot serve directory /home/folder/public_html/franchisebuddy.co.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 11:45:17.474141 2022] [autoindex:error] [pid 3832817:tid 47904107357952] [client 38.242.241.9:57104] AH01276: Cannot serve directory /home/folder/public_html/anothersite.co.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 11:36:43.967875 2022] [:error] [pid 3807399:tid 47904190371584] [client 175.24.165.23:36922] File does not exist: /home/folder/public_html/xmlrpc.php
[Tue Nov 08 11:34:47.556510 2022] [authz_core:error] [pid 3807475:tid 47904069535488] [client ###.###.##.#1:43524] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 11:30:27.513753 2022] [autoindex:error] [pid 3807333:tid 47904096851712] [client 134.122.53.182:43596] AH01276: Cannot serve directory /home/folder/public_html/foldersuccess.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 11:09:58.955791 2022] [authz_core:error] [pid 3790863:tid 47904035915520] [client ###.###.##.#1:39478] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 10:55:47.676606 2022] [authz_core:error] [pid 3764072:tid 47904031713024] [client ###.###.##.#1:37308] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 10:51:48.189623 2022] [authz_core:error] [pid 3764072:tid 47904038016768] [client ###.###.##.#1:36688] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 10:47:33.630723 2022] [authz_core:error] [pid 3697738:tid 47904075839232] [client ###.###.##.#1:36000] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 10:38:20.206694 2022] [authz_core:error] [pid 3697738:tid 47904031713024] [client ###.###.##.#1:34356] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 10:37:31.119583 2022] [authz_core:error] [pid 3697738:tid 47904046421760] [client ###.###.##.#1:34220] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 10:22:38.127325 2022] [authz_core:error] [pid 3697555:tid 47904033814272] [client ###.###.##.#1:59708] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/docs/changelog.txt
[Tue Nov 08 09:52:23.074902 2022] [autoindex:error] [pid 3607806:tid 47904192472832] [client 198.235.24.147:65318] AH01276: Cannot serve directory /home/folder/public_html/yetanothersite.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 08:59:32.563753 2022] [autoindex:error] [pid 3595990:tid 47904098952960] [client 154.89.5.208:34694] AH01276: Cannot serve directory /home/folder/public_html/foldersuccess.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 08:59:32.474076 2022] [autoindex:error] [pid 3595901:tid 47904115762944] [client 154.89.5.208:34496] AH01276: Cannot serve directory /home/folder/public_html/foldersuccess.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 08:59:30.649143 2022] [autoindex:error] [pid 3595901:tid 47904086345472] [client 154.89.5.107:35824] AH01276: Cannot serve directory /home/folder/public_html/foldersuccess.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 08:48:31.952741 2022] [core:error] [pid 3444479:tid 47904063231744] (13)Permission denied: [client 82.132.246.90:5464] AH00132: file permissions deny server access: /home/folder/public_html/mysite2015/.ftpquota, referer: https://www.mysite.co.uk/coaching.html
[Tue Nov 08 08:35:08.024448 2022] [autoindex:error] [pid 3444699:tid 47904103155456] [client 205.210.31.177:63824] AH01276: Cannot serve directory /home/folder/public_html/nottsent/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 08:22:17.425265 2022] [autoindex:error] [pid 3444699:tid 47904194574080] [client 192.241.130.13:42084] AH01276: Cannot serve directory /home/folder/public_html/thissite.co.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive, referer: https://www.bing.com
[Tue Nov 08 08:15:42.882647 2022] [authz_core:error] [pid 3444478:tid 47904192472832] [client 208.100.26.243:50280] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/misc
[Tue Nov 08 08:15:42.637536 2022] [authz_core:error] [pid 3444699:tid 47904098952960] [client 208.100.26.236:46102] AH01630: client denied by server configuration: /home/folder/public_html/mysite2015/core/misc
[Tue Nov 08 07:29:39.411481 2022] [autoindex:error] [pid 3444632:tid 47904073737984] [client 51.158.37.195:59690] AH01276: Cannot serve directory /home/folder/public_html/anothersite.co.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 06:27:33.206475 2022] [autoindex:error] [pid 3400762:tid 47904090547968] [client 211.205.155.42:37538] AH01276: Cannot serve directory /home/folder/public_html/yetanothersite.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive, referer: https://www.bing.com
[Tue Nov 08 06:09:30.228468 2022] [autoindex:error] [pid 3337468:tid 47904084244224] [client 46.101.183.214:51626] AH01276: Cannot serve directory /home/folder/public_html/foldersuccess.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Tue Nov 08 05:32:27.997020 2022] [autoindex:error] [pid 3294734:tid 47904094750464] [client 154.209.125.119:26377] AH01276: Cannot serve directory /home/folder/public_html/foldersuccess.uk/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive

I don’t see anything useful in this log.


Just to make sure this is not the problem: If you create a snippet with this code

<?php
return escapeshellarg('test@domain.com');

and execute it on a page, does this also generate a 500 error?


Also maybe try sending the email with SMTP to avoid that this function is used.

Yes that generates a 500 error in PHP8 but not in PHP7.4

Sending the form via SMTP works in both 7.4 and 8. No errors.

Thank you for all your help with this Harry - I can only hope it helps someone else.

As a separate issue I also found that using [[~[[++site_start]]]] within a Wayfinder template threw out loads of errors.

What errors exactly?

There you go…

[2022-11-09 08:35:52] (ERROR @ /home/directory/public_html/domain/core/components/wayfinder/wayfinder.class.php : 340) PHP warning: Undefined array key "+site_start"

There are also smarty errors but they’re already mentioned in File TV PHP warnings from Smarty templates, PHP 8.0 · Issue #15792 · modxcms/revolution · GitHub

It looks like the code tries to extract TV placeholders from the Wayfinder template by searching for tags with [[+...]] which also includes system settings tags.

It should be possible to fix this by changing this line in the code

to this:

if (strpos($tv, "wf.") === false && substr($tv, 0, 1) !== '+') {

Thank you - I’ll try that when I upgrade the next site. I fixed it on the current site by changing the link to use the resource id. Don’t want to revisit that site again for now if I can help it!