Warning (2) : Attempt to read property "product_lines" on null [in /var/www/afg-redesign/httpdocs/plugins/Products/src/Controller/ProductsController.php, line 188]
Warning (2) : foreach() argument must be of type array|object, null given [in /var/www/afg-redesign/httpdocs/plugins/Products/src/Controller/ProductsController.php, line 188]
Warning (512) : Unable to emit headers. Headers sent in file=/var/www/afg-redesign/httpdocs/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=36 [in /var/www/afg-redesign/httpdocs/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/afg-redesign/httpdocs/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/afg-redesign/httpdocs/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 168]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/afg-redesign/httpdocs/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/afg-redesign/httpdocs/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197]
Error

An Internal Error Has Occurred

Error: Class "Cake\Network\Exception\NotFoundException" not found

/var/www/afg-redesign/httpdocs/plugins/Products/src/Controller/ProductsController.php in line 196

     * @throws \UnexpectedValueException If return value of action is not `null` or `ResponseInterfaceinstance.
     */
    public function invokeAction(Closure $action, array $args): void
    {
        $result $action(...$args);
        if ($result !== null && !$result instanceof ResponseInterface) {
            throw new UnexpectedValueException(sprintf(
                'Controller actions can only return ResponseInterface instance or null. '
                'Got %s instead.',