PHP warning

PHP warning

array_count_values(): Can only count STRING and INTEGER values!

/home/komoyu/public_html/proba/wp-content/themes/smartstart/functions/custom-functions.php(640)

628     }
629 }
630 
631 /* ---------------------------------------------------------------------- */
632 /*    Single project slider
633 /* ---------------------------------------------------------------------- */
634 
635 if ( !function_exists('ss_framework_single_project_slider') ) {
636 
637     function ss_framework_single_project_slider( $post_id ) {
638 
639         $project_slider = get_post_meta( $post_id, 'ss_project_slider' );
640         $slide_types    = array_count_values( $project_slider[0][0] );
641 
642         $disable_project_slider = get_post_meta( $post_id, 'ss_disable_project_slider' );
643         $disable_project_slider = $disable_project_slider[0] == '1' ? 'disabled' : null;
644 
645         $lightbox = of_get_option('ss_single_project_lightbox');
646 
647         $slider_effect  = of_get_option('ss_project_slider_effect');
648         $slider_speed   = of_get_option('ss_use_custom_project_slider_speed')   ? of_get_option('ss_custom_project_slider_speed')   : of_get_option('ss_project_slider_speed');
649         $slider_timeout = of_get_option('ss_use_custom_project_slider_timeout') ? of_get_option('ss_custom_project_slider_timeout') : of_get_option('ss_project_slider_timeout');
650 
651         if( $slide_types[null] <= 8 || !$slide_types ) {
652 

Stack Trace

#0
+
 /home/komoyu/public_html/proba/wp-content/themes/smartstart/functions/custom-functions.php(640): array_count_values(array("slide-type" => "image", "slide-img-src" => "http://komo-yu.com/proba/wp-content/uploads/2012/05/logo.png", "slide-video-mp4" => null, "slide-video-webm" => null, ...))
635 if ( !function_exists('ss_framework_single_project_slider') ) {
636 
637     function ss_framework_single_project_slider( $post_id ) {
638 
639         $project_slider = get_post_meta( $post_id, 'ss_project_slider' );
640         $slide_types    = array_count_values( $project_slider[0][0] );
641 
642         $disable_project_slider = get_post_meta( $post_id, 'ss_disable_project_slider' );
643         $disable_project_slider = $disable_project_slider[0] == '1' ? 'disabled' : null;
644 
645         $lightbox = of_get_option('ss_single_project_lightbox');
#1
+
 /home/komoyu/public_html/proba/wp-content/themes/smartstart/single-portfolio.php(61): ss_framework_single_project_slider(601)
56 
57         <?php if( $has_sidebar ): ?>
58 
59             <section id="main">
60                 
61                 <?php echo ss_framework_single_project_slider( $post->ID ); ?>
62         
63             </section><!-- end #main -->
64 
65             <aside id="sidebar">
66 
#2
+
 /home/komoyu/public_html/proba/wp-includes/template-loader.php(47): include("/home/komoyu/public_html/proba/wp-content/themes/smartstart/sing...")
42     elseif ( is_paged()          && $template = get_paged_template()          ) :
43     else :
44         $template = get_index_template();
45     endif;
46     if ( $template = apply_filters( 'template_include', $template ) )
47         include( $template );
48     return;
49 endif;
2020-07-05 08:37:01 LiteSpeed Yii Framework/1.1.13