Deprecated (8192): Return type of Cake\Database\Query::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Database/Query.php, line 1832]
Deprecated (8192): Return type of Cake\ORM\Query::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/ORM/Query.php, line 1358]
Deprecated (8192): Return type of Cake\Database\Expression\QueryExpression::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Database/Expression/QueryExpression.php, line 510]
Deprecated (8192): Return type of Cake\Database\Statement\StatementDecorator::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Database/Statement/StatementDecorator.php, line 294]
Deprecated (8192): Return type of Cake\Database\Statement\StatementDecorator::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Database/Statement/StatementDecorator.php, line 279]
Deprecated (8192): Return type of Cake\Collection\CollectionInterface::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Collection/CollectionInterface.php, line 770]
Deprecated (8192): Return type of Cake\Collection\CollectionInterface::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Collection/CollectionInterface.php, line 1118]
Deprecated (8192): Return type of Cake\ORM\ResultSet::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/ORM/ResultSet.php, line 204]
Deprecated (8192): Return type of Cake\ORM\ResultSet::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/ORM/ResultSet.php, line 228]
Deprecated (8192): Return type of Cake\ORM\ResultSet::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/ORM/ResultSet.php, line 216]
Deprecated (8192): Return type of Cake\ORM\ResultSet::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/ORM/ResultSet.php, line 262]
Deprecated (8192): Return type of Cake\ORM\ResultSet::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/ORM/ResultSet.php, line 241]
Deprecated (8192): Cake\ORM\ResultSet implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) [CORE/src/ORM/ResultSet.php, line 31]
Deprecated (8192): Cake\Collection\Collection implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) [CORE/src/Collection/Collection.php, line 27]
Deprecated (8192): Cake\Collection\Iterator\FilterIterator implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) [CORE/src/Collection/Iterator/FilterIterator.php, line 0]
Deprecated (8192): Return type of Cake\ORM\Entity::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Datasource/EntityTrait.php, line 643]
Deprecated (8192): Return type of & Cake\ORM\Entity::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Datasource/EntityTrait.php, line 654]
Deprecated (8192): Return type of Cake\ORM\Entity::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Datasource/EntityTrait.php, line 666]
Deprecated (8192): Return type of Cake\ORM\Entity::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Datasource/EntityTrait.php, line 677]
Deprecated (8192): Return type of Cake\ORM\Entity::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Datasource/EntityTrait.php, line 632]
Deprecated (8192): Return type of Cake\Collection\Iterator\MapReduce::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Collection/Iterator/MapReduce.php, line 128]
Deprecated (8192): Cake\Datasource\ResultSetDecorator implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) [CORE/src/Datasource/ResultSetDecorator.php, line 24]
Deprecated (8192): Return type of Cake\Collection\Iterator\BufferedIterator::rewind() should either be compatible with IteratorIterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Collection/Iterator/BufferedIterator.php, line 108]
Deprecated (8192): Return type of Cake\Collection\Iterator\BufferedIterator::valid() should either be compatible with IteratorIterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Collection/Iterator/BufferedIterator.php, line 125]
Deprecated (8192): Return type of Cake\Collection\Iterator\BufferedIterator::key() should either be compatible with IteratorIterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Collection/Iterator/BufferedIterator.php, line 88]
Deprecated (8192): Return type of Cake\Collection\Iterator\BufferedIterator::current() should either be compatible with IteratorIterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Collection/Iterator/BufferedIterator.php, line 98]
Deprecated (8192): Return type of Cake\Collection\Iterator\BufferedIterator::next() should either be compatible with IteratorIterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Collection/Iterator/BufferedIterator.php, line 156]
Deprecated (8192): Cake\Collection\Iterator\BufferedIterator implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) [CORE/src/Collection/Iterator/BufferedIterator.php, line 26]
Deprecated (8192): Return type of Cake\Collection\Iterator\BufferedIterator::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [CORE/src/Collection/Iterator/BufferedIterator.php, line 170]
Deprecated (8192): Creation of dynamic property App\Controller\ErrorController::$RequestHandler is deprecated [CORE/src/Controller/Controller.php, line 438]
Deprecated (8192): Creation of dynamic property App\View\AppView::$Date is deprecated [CORE/src/View/View.php, line 1338]
Deprecated (8192): Creation of dynamic property App\View\AppView::$Date is deprecated [CORE/src/View/View.php, line 1338]
Warning (512): Unable to emit headers. Headers sent in file=/var/www/html/ul-web/vendor/cakephp/cakephp/src/Error/Debugger.php line=856 [CORE/src/Http/ResponseEmitter.php, line 51]
Deprecated (8192): Creation of dynamic property App\View\AppView::$Html is deprecated [CORE/src/View/View.php, line 1338]
Error: Call to a member function emailUser() on bool
Deprecated (8192): Creation of dynamic property App\View\AppView::$Url is deprecated [CORE/src/View/View.php, line 1338]
Deprecated (8192): Creation of dynamic property Cake\View\Helper\HtmlHelper::$Url is deprecated [CORE/src/View/Helper.php, line 207]

Call to a member function emailUser() on bool Error

Documentation API
Error in: ROOT/src/Controller/PostsController.php, line 647

Could this be caused by using Auto-Tables?

Some of the Table objects in your application were created by instantiating "Cake\ORM\Table" instead of any other specific subclass.

This could be the cause for this exception. Auto-Tables are created for you under the following circumstances:


Please try correcting the issue for the following table aliases:


If you want to customize this error message, create src/Template/Error/error500.ctp

toggle vendor stack frames