Hi, thanks so much for your reply. There was actually another update available today to 4.2.2, however the problem persists with the new version. The record is properly appended to the table, but I get this error. Here is the result with debug turned on.
RuntimeException
InvalidArgumentException
HTTP 500 Whoops, looks like something went wrong."500 Database is not available in constructor in 5.0.<br/><br/>Evaluated as:<br/><pre>select * from `jos1n_visforms_3`
WHERE 1=1
<?php if ($filters) : ?>
and F16 = '{By_CountryState}'
<?php endif; ?> ORDER BY `F14` ASC</pre>" is not valid header value
- Exceptions 2
- Stack Traces 2
Laminas\Diactoros\Exception\InvalidArgumentException
in
/home/ketamine/dev.ketaminecost.com/libraries/vendor/laminas/laminas-diactoros/src/HeaderSecurity.php
(line 146)
in
/home/ketamine/dev.ketaminecost.com/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php
:: assertValid (line 399)
Response->Laminas\Diactoros\{closure}('500 Database is not available in constructor in 5.0.<br/><br/>Evaluated as:<br/><pre>select * from `jos1n_visforms_3` WHERE 1=1 <?php if ($filters[\'By_CountryState\']) : ?> and F16 = \'{By_CountryState}\' <?php endif; ?> ORDER BY `F14` ASC</pre>')
in
/home/ketamine/dev.ketaminecost.com/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php
array_map (line 402)
in
/home/ketamine/dev.ketaminecost.com/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php
-> filterHeaderValue (line 213)
in
/home/ketamine/dev.ketaminecost.com/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php
-> withHeader (line 243)
in
/home/ketamine/dev.ketaminecost.com/libraries/vendor/joomla/application/src/AbstractWebApplication.php
-> withAddedHeader (line 575)
AbstractWebApplication->setHeader('status', '500 Database is not available in constructor in 5.0.<br/><br/>Evaluated as:<br/><pre>select * from `jos1n_visforms_3` WHERE 1=1 <?php if ($filters[\'By_CountryState\']) : ?> and F16 = \'{By_CountryState}\' <?php endif; ?> ORDER BY `F14` ASC</pre>')in
/home/ketamine/dev.ketaminecost.com/libraries/src/Document/ErrorDocument.php
(line 131)
ErrorDocument->render(
false,
array('template' => 'cassiopeia_child_template1', 'directory' => '/home/ketamine/dev.ketaminecost.com/templates', 'debug' =>
true, 'csp_nonce' =>
null, 'templateInherits' => 'cassiopeia', 'params' =>
object(Registry)))in
/home/ketamine/dev.ketaminecost.com/libraries/src/Error/Renderer/HtmlRenderer.php
(line 78)
HtmlRenderer->render(
object(RuntimeException))in
/home/ketamine/dev.ketaminecost.com/libraries/src/Exception/ExceptionHandler.php
(line 121)
ExceptionHandler::render(
object(RuntimeException))in
/home/ketamine/dev.ketaminecost.com/libraries/src/Exception/ExceptionHandler.php
(line 72)
ExceptionHandler::handleException(
object(RuntimeException))in
/home/ketamine/dev.ketaminecost.com/libraries/src/Application/CMSApplication.php
(line 323)
CMSApplication->execute()in
/home/ketamine/dev.ketaminecost.com/includes/app.php
(line 61)
require_once('/home/ketamine/dev.ketaminecost.com/includes/app.php')in
/home/ketamine/dev.ketaminecost.com/index.php
(line 32)RuntimeExceptionDatabase is not available in constructor in 5.0.<br/><br/>Evaluated as:<br/><pre>select * from `jos1n_visforms_3` WHERE 1=1 <?php if ($filters) : ?> and F16 = '{By_CountryState}' <?php endif; ?> ORDER BY `F14` ASC</pre>
Stack Traces:
[2/2] InvalidArgumentExceptionLaminas\Diactoros\Exception\InvalidArgumentException:
"500 Database is not available in constructor in 5.0.<br/><br/>Evaluated as:<br/><pre>select * from `jos1n_visforms_3`
WHERE 1=1
<?php if ($filters) : ?>
and F16 = '{By_CountryState}'
<?php endif; ?> ORDER BY `F14` ASC</pre>" is not valid header value
at /home/ketamine/dev.ketaminecost.com/libraries/vendor/laminas/laminas-diactoros/src/HeaderSecurity.php:146
at Laminas\Diactoros\HeaderSecurity::assertValid('500 Database is not available in constructor in 5.0.<br/><br/>Evaluated as:<br/><pre>select * from `jos1n_visforms_3`
WHERE 1=1
<?php if ($filters[\'By_CountryState\']) : ?>
and F16 = \'{By_CountryState}\'
<?php endif; ?> ORDER BY `F14` ASC</pre>')
(/home/ketamine/dev.ketaminecost.com/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php:399)
at Laminas\Diactoros\Response->Laminas\Diactoros\{closure}('500 Database is not available in constructor in 5.0.<br/><br/>Evaluated as:<br/><pre>select * from `jos1n_visforms_3`
WHERE 1=1
<?php if ($filters[\'By_CountryState\']) : ?>
and F16 = \'{By_CountryState}\'
<?php endif; ?> ORDER BY `F14` ASC</pre>')
at array_map(object(Closure), array('500 Database is not available in constructor in 5.0.<br/><br/>Evaluated as:<br/><pre>select * from `jos1n_visforms_3`
WHERE 1=1
<?php if ($filters[\'By_CountryState\']) : ?>
and F16 = \'{By_CountryState}\'
<?php endif; ?> ORDER BY `F14` ASC</pre>'))
(/home/ketamine/dev.ketaminecost.com/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php:402)
at Laminas\Diactoros\Response->filterHeaderValue(array('500 Database is not available in constructor in 5.0.<br/><br/>Evaluated as:<br/><pre>select * from `jos1n_visforms_3`
WHERE 1=1
<?php if ($filters[\'By_CountryState\']) : ?>
and F16 = \'{By_CountryState}\'
<?php endif; ?> ORDER BY `F14` ASC</pre>'))
(/home/ketamine/dev.ketaminecost.com/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php:213)
at Laminas\Diactoros\Response->withHeader('status', '500 Database is not available in constructor in 5.0.<br/><br/>Evaluated as:<br/><pre>select * from `jos1n_visforms_3`
WHERE 1=1
<?php if ($filters[\'By_CountryState\']) : ?>
and F16 = \'{By_CountryState}\'
<?php endif; ?> ORDER BY `F14` ASC</pre>')
(/home/ketamine/dev.ketaminecost.com/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php:243)
at Laminas\Diactoros\Response->withAddedHeader('status', '500 Database is not available in constructor in 5.0.<br/><br/>Evaluated as:<br/><pre>select * from `jos1n_visforms_3`
WHERE 1=1
<?php if ($filters[\'By_CountryState\']) : ?>
and F16 = \'{By_CountryState}\'
<?php endif; ?> ORDER BY `F14` ASC</pre>')
(/home/ketamine/dev.ketaminecost.com/libraries/vendor/joomla/application/src/AbstractWebApplication.php:575)
at Joomla\Application\AbstractWebApplication->setHeader('status', '500 Database is not available in constructor in 5.0.<br/><br/>Evaluated as:<br/><pre>select * from `jos1n_visforms_3`
WHERE 1=1
<?php if ($filters[\'By_CountryState\']) : ?>
and F16 = \'{By_CountryState}\'
<?php endif; ?> ORDER BY `F14` ASC</pre>')
(/home/ketamine/dev.ketaminecost.com/libraries/src/Document/ErrorDocument.php:131)
at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'cassiopeia_child_template1', 'directory' => '/home/ketamine/dev.ketaminecost.com/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => 'cassiopeia', 'params' => object(Registry)))
(/home/ketamine/dev.ketaminecost.com/libraries/src/Error/Renderer/HtmlRenderer.php:78)
at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(RuntimeException))
(/home/ketamine/dev.ketaminecost.com/libraries/src/Exception/ExceptionHandler.php:121)
at Joomla\CMS\Exception\ExceptionHandler::render(object(RuntimeException))
(/home/ketamine/dev.ketaminecost.com/libraries/src/Exception/ExceptionHandler.php:72)
at Joomla\CMS\Exception\ExceptionHandler::handleException(object(RuntimeException))
(/home/ketamine/dev.ketaminecost.com/libraries/src/Application/CMSApplication.php:323)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/ketamine/dev.ketaminecost.com/includes/app.php:61)
at require_once('/home/ketamine/dev.ketaminecost.com/includes/app.php')
(/home/ketamine/dev.ketaminecost.com/index.php:32)
Hoping that info can be of assistance to you.
kindest regards!