Deprecated: Use of `BaseErrorHandler` and subclasses are deprecated. Upgrade to the new `ErrorTrap` and `ExceptionTrap` subsystem. See https://book.cakephp.org/4/en/appendices/4-4-migration-guide.html /home/u614154790/domains/helpgaushala.com/public_html/config/bootstrap.php, line: 150 You can disable all deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED`. Adding `config/bootstrap.php` to `Error.ignoredDeprecationPaths` in your `config/app.php` config will mute deprecations from that file only. in /home/u614154790/domains/helpgaushala.com/public_html/vendor/cakephp/cakephp/src/Core/functions.php on line 318
Deprecated (8192) : Return type of DataTables\Lib\ColumnDefinitions::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [in /home/u614154790/domains/helpgaushala.com/public_html/vendor/ypnos-web/cakephp-datatables/src/Lib/ColumnDefinitions.php, line 69]
Deprecated (8192) : Return type of DataTables\Lib\ColumnDefinitions::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 [in /home/u614154790/domains/helpgaushala.com/public_html/vendor/ypnos-web/cakephp-datatables/src/Lib/ColumnDefinitions.php, line 76]
Deprecated (8192) : Return type of DataTables\Lib\ColumnDefinitions::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [in /home/u614154790/domains/helpgaushala.com/public_html/vendor/ypnos-web/cakephp-datatables/src/Lib/ColumnDefinitions.php, line 81]
Deprecated (8192) : Return type of DataTables\Lib\ColumnDefinitions::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [in /home/u614154790/domains/helpgaushala.com/public_html/vendor/ypnos-web/cakephp-datatables/src/Lib/ColumnDefinitions.php, line 89]
Deprecated (8192) : Return type of DataTables\Lib\ColumnDefinitions::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [in /home/u614154790/domains/helpgaushala.com/public_html/vendor/ypnos-web/cakephp-datatables/src/Lib/ColumnDefinitions.php, line 94]
Warning (512) : Unable to emit headers. Headers sent in file=/home/u614154790/domains/helpgaushala.com/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php line=1025 [in /home/u614154790/domains/helpgaushala.com/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71]
Warning (2) : Cannot modify header information - headers already sent by (output started at /home/u614154790/domains/helpgaushala.com/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php:1025) [in /home/u614154790/domains/helpgaushala.com/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 168]
Warning (2) : Cannot modify header information - headers already sent by (output started at /home/u614154790/domains/helpgaushala.com/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php:1025) [in /home/u614154790/domains/helpgaushala.com/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197]
Error: An iterator cannot be used with foreach by reference

An iterator cannot be used with foreach by reference 📋

Error
Error in: ROOT/templates/Coordinators/index.php, line 5
ROOT/templates/Coordinators/index.php at line 5 (edit)
<?php
$this->setLayout('front');?>
<?php
if (!empty($CoordinatorsData)) {
    foreach ($CoordinatorsData as $key => &$d) {
        $status = (int) $d['status'];
        $statusText $TransactionStatusArr[$d['status']] ?? $d['status'];
        // $d['transactiondate'] = displayDate($d['transactiondate'], 'd-m-Y');
        // $d['amount'] = display_amount($d['amount']);

If you want to customize this error message, create templates/Error/error500.php