im not sure if its a bug or maybe something else, im using the latest version (16.4.1 64 bit)
if i DONT set a error page in a form, the submit form works fine,
however if i then set a custom error page, i get a HTTP ERROR 500,
the php is showing
after checking the code, it seems to be generating invalid smartlink in the php code, and even if changing the page to another page, the number changes but its still showing smartlink?PHP Warning: file_get_contents(smartlink://page00008): failed to open stream: No such file or directory in /var/www/vhosts/myserver.com/httpdocs/test/nominate.php on line 11', referer: https://www.myserver.com/test/nominate.php
any help would be amazing!<?php
session_start();
if ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['formid'] == 'form1')
{
if (isset($_POST['captcha'], $_SESSION['captcha']) && md5($_POST['captcha']) == $_SESSION['captcha'])
{
unset($_POST['captcha'], $_SESSION['captcha']);
}
else
{
$errorcode = file_get_contents('smartlink://page00008');
$errorcode = str_replace('##error##', 'CAPTCHA verification failed.', $errorcode);
echo $errorcode;
exit;
}
}
?>
Regards
Simon