*/final class Exception extends PDOException{ public static function new(\PDOException $exception): self { return new self($exception); }} public function execute($params = null) { try { return parent::execute($params); } catch (PDOException $exception) { throw Exception::new($exception); } } /** * {@inheritdoc} "; dev_debug("list of required fields sql 1 - " . $required_fields_sql_conditional); $sth_conditional = $dbh->prepare($required_fields_sql_conditional); $sth_conditional->execute(); $results_conditional = $sth_conditional->fetchAll(PDO::FETCH_ASSOC); $conditional_fields_array = [];// Get course level$course_level = pull_field("core_course_level", "db343", "WHERE id='$core_students_level_of_entry'");// get percentage of application completed and displaylist($required_fields, $required_filled) = filled_percentage_on_new_forms($core_students_id, [],$pages_id );$filled_percentage = round(100 * $required_filled / $required_fields, 0, PHP_ROUND_HALF_DOWN);// Fetch application stages// ----------------------------------------------------------------------------// Fetch application stages<?php//pullin the file that holds all the queries include("form_settings.php");?><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"><head> <title><?php echo $page_title; ?></title>dev_debug("Web Header Core " . front_header_file_location . "/web_header.php");if (file_exists(front_header_file_location . "/web_header.php")) { $front_web_url_file_loc = $front_website_url . '/' . front_header_file_location; dev_debug("Core file included 1"); include(front_header_file_location . "/web_header.php");} elseif (find_slug(1) == "online-learning" || find_slug(2) == "online-learning" || find_slug(3) == "online-learning" || find_slug(4) == "online-learning" || find_slug(5) == "online-learning") { //include("header.php");} else { $front_web_url_file_loc = $front_website_url . '/' . default_theme_files_location; dev_debug("Core file included 2");<?phpinclude("web_header_core.php");?><div id="mainpage-img"></div><div style="clear:both"></div> */ #[ReturnTypeWillChange] public function execute($params = null) { try { return parent::execute($params); } catch (PDOException $exception) { throw Exception::new($exception); } } */ #[ReturnTypeWillChange] public function execute($params = null) { try { return parent::execute($params); } catch (PDOException $exception) { throw Exception::new($exception); } } "; dev_debug("list of required fields sql 1 - " . $required_fields_sql_conditional); $sth_conditional = $dbh->prepare($required_fields_sql_conditional); $sth_conditional->execute(); $results_conditional = $sth_conditional->fetchAll(PDO::FETCH_ASSOC); $conditional_fields_array = [];// Get course level$course_level = pull_field("core_course_level", "db343", "WHERE id='$core_students_level_of_entry'");// get percentage of application completed and displaylist($required_fields, $required_filled) = filled_percentage_on_new_forms($core_students_id, [],$pages_id );$filled_percentage = round(100 * $required_filled / $required_fields, 0, PHP_ROUND_HALF_DOWN);// Fetch application stages// ----------------------------------------------------------------------------// Fetch application stages<?php//pullin the file that holds all the queries include("form_settings.php");?><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"><head> <title><?php echo $page_title; ?></title>dev_debug("Web Header Core " . front_header_file_location . "/web_header.php");if (file_exists(front_header_file_location . "/web_header.php")) { $front_web_url_file_loc = $front_website_url . '/' . front_header_file_location; dev_debug("Core file included 1"); include(front_header_file_location . "/web_header.php");} elseif (find_slug(1) == "online-learning" || find_slug(2) == "online-learning" || find_slug(3) == "online-learning" || find_slug(4) == "online-learning" || find_slug(5) == "online-learning") { //include("header.php");} else { $front_web_url_file_loc = $front_website_url . '/' . default_theme_files_location; dev_debug("Core file included 2");<?phpinclude("web_header_core.php");?><div id="mainpage-img"></div><div style="clear:both"></div> |
[2/2]
Exception
|
|---|
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')
AND db652='yes'
AND form_cms.db656='forms'
AND system_table.condition...' at line 11
at /var/www/vhosts/heiapply.co.uk/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
at Doctrine\DBAL\Driver\PDO\Exception::new()
(/var/www/vhosts/heiapply.co.uk/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:119)
at Doctrine\DBAL\Driver\PDOStatement->execute()
(/var/www/vhosts/heiapply.co.uk/httpdocs/engine/admin/inc/lib.inc.php:11287)
at filled_percentage_on_new_forms()
(/var/www/vhosts/heiapply.co.uk/httpdocs/static/icca/form_settings.php:107)
at include('/var/www/vhosts/heiapply.co.uk/httpdocs/static/icca/form_settings.php')
(/var/www/vhosts/heiapply.co.uk/httpdocs/static/icca/web_header.php:3)
at include('/var/www/vhosts/heiapply.co.uk/httpdocs/static/icca/web_header.php')
(/var/www/vhosts/heiapply.co.uk/httpdocs/web_header_core.php:363)
at include('/var/www/vhosts/heiapply.co.uk/httpdocs/web_header_core.php')
(/var/www/vhosts/heiapply.co.uk/httpdocs/application_login.php:2)
|
|
[1/2]
PDOException
|
|---|
PDOException:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')
AND db652='yes'
AND form_cms.db656='forms'
AND system_table.condition...' at line 11
at /var/www/vhosts/heiapply.co.uk/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117
at PDOStatement->execute()
(/var/www/vhosts/heiapply.co.uk/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117)
at Doctrine\DBAL\Driver\PDOStatement->execute()
(/var/www/vhosts/heiapply.co.uk/httpdocs/engine/admin/inc/lib.inc.php:11287)
at filled_percentage_on_new_forms()
(/var/www/vhosts/heiapply.co.uk/httpdocs/static/icca/form_settings.php:107)
at include('/var/www/vhosts/heiapply.co.uk/httpdocs/static/icca/form_settings.php')
(/var/www/vhosts/heiapply.co.uk/httpdocs/static/icca/web_header.php:3)
at include('/var/www/vhosts/heiapply.co.uk/httpdocs/static/icca/web_header.php')
(/var/www/vhosts/heiapply.co.uk/httpdocs/web_header_core.php:363)
at include('/var/www/vhosts/heiapply.co.uk/httpdocs/web_header_core.php')
(/var/www/vhosts/heiapply.co.uk/httpdocs/application_login.php:2)
|