thedevdojo/voyager

mb_strlen() expects parameter 1 to be string, array given (View: /home/xxx/vendor/tcg/voyager/resources/views/bread/browse.blade.php)

Open

#3420 aperta il 25 lug 2018

Vedi su GitHub
 (10 commenti) (0 reazioni) (0 assegnatari)PHP (2652 fork)batch import
help wanted

Metriche repository

Star
 (11.817 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Version information

  • Laravel: v5.6.28
  • Voyager: v1.1.3
  • PHP: 7.1
  • Database: Maria DB 10.1

Description

Whenever I try to browse some BREAD items I get the following error:

mb_strlen() expects parameter 1 to be string, array given (View: /home/eatnaked/vendor/tcg/voyager/resources/views/bread/browse.blade.php)

This seems to be fairly common but mainly centred around users/settings/locale or something that is mentioned in other bugs but this doesn't appear to be the case here... I've added some tables in BREAD and when trying to view them the above error is what I get.

I should note I can browse users just fine.

Line 154:                                                     <div class="readmore"><?php echo e(mb_strlen( $data->{$row->field} ) > 200 ? mb_substr($data->{$row->field}, 0, 200) . ' ...' : $data->{$row->field}); ?></div>

Guida contributor