Fehler auf der Website: array_map()

Sonst noch Fragen?
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
guru
Beiträge: 3
Registriert: Do 10. Dez 2015, 09:37
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable

Fehler auf der Website: array_map()

Beitragvon guru » Do 10. Dez 2015, 09:42

Hallo,
ich bekomme auf der Website auf den Produkten wie z.B. hier http://kondom-guru.net/produkt/billy-bo ... e-kondome/ die Fehlermeldung:
Warning: array_map(): Argument #2 should be an array in /www/htdocs/w013bf94/kondom-guru.net/wp-includes/category-template.php on line 1158
Habe dazu auch im Wordpress Forum über diesen Fehler berichtet, ich habe das Gefühl, dass nach dem Update auf 4.4 dieser Fehler erschienen ist.

So sieht meine Line von 1144 - 1158:
function get_the_terms( $post, $taxonomy ) {
if ( ! $post = get_post( $post ) )
return false;


$terms = get_object_term_cache( $post->ID, $taxonomy );
if ( false === $terms ) {
$terms = wp_get_object_terms( $post->ID, $taxonomy );
$to_cache = array();
foreach ( $terms as $key => $term ) {
$to_cache[ $key ] = $term->data;
}
wp_cache_add( $post->ID, $to_cache, $taxonomy . '_relationships' );
}


$terms = array_map( 'get_term', $terms );

Wäre sehr dankbar, wenn mir jemand helfen könnte.
Gruß

pille
Beiträge: 9
Registriert: So 14. Jun 2015, 10:30
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable

Re: Fehler auf der Website: array_map()

Beitragvon pille » Sa 12. Dez 2015, 11:26

Hi guru,

du hast Thread gesehen?

Greetz
Pille


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable

Zurück zu „Sonstiges“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 4 Gäste