Notice (8): Trying to access array offset on value of type null [APP/Controller/NewsController.php, line 102]
Warning (512): Unable to emit headers. Headers sent in file=/var/www/vhosts/iaar-education.kz/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php line=970 [CORE/src/Http/ResponseEmitter.php, line 71]
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/iaar-education.kz/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:970) [CORE/src/Http/ResponseEmitter.php, line 168]
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/iaar-education.kz/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:970) [CORE/src/Http/ResponseEmitter.php, line 197]
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/iaar-education.kz/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:970) [CORE/src/Http/ResponseEmitter.php, line 197]
Error: Запись не найдена

Запись не найдена 📋

Cake\Http\Exception\NotFoundException
Toggle Vendor Stack Frames
        $item_id $data['id'];
        if( is_null($item_id) || !(int)$item_id || !$this->$model->get($item_id) ){
            throw new NotFoundException(__('Запись не найдена'));
        }
        $other_news $this->$model->find('all')
            ->where([$model.'.id !=' => $item_id$this->$model->translationField('title') . ' is not' => null])

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:

  • The class for the specified table does not exist.
  • The Table was created with a typo: $this->getTableLocator()->get('Articles');
  • The class file has a typo in the name or incorrect namespace: class Articles extends Table
  • The file containing the class has a typo or incorrect casing: Articles.php
  • The Table was used using associations but the association has a typo: $this->belongsTo('Articles')
  • The table class resides in a Plugin but no plugin notation was used in the association definition.

Please try correcting the issue for the following table aliases:

  • I18n
  • Countries_title_translation
  • JournalsSeries_title_translation
  • JournalsSeries_img_translation
  • JournalsSeries_body_translation
  • JournalsSeries_meta_title_translation
  • JournalsSeries_meta_keywords_translation
  • JournalsSeries_meta_description_translation
  • Comps_img_translation
  • Comps_body_translation
  • News_title_translation
  • News_short_desc_translation
  • News_body_translation
  • News_doc_translation
  • News_doc_name_translation
  • News_meta_title_translation
  • News_meta_keywords_translation
  • News_meta_description_translation
  • Pages_heading_translation
  • Pages_body_translation
  • Pages_meta_title_translation
  • Pages_meta_description_translation
  • Pages_meta_keywords_translation

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