Undefined Offset Notice on Front Page
-
Hi, my website is https://www.thinkingelvish.com and I have this error message showing up on the front page in the container marketing box:
“Notice: Undefined offset: 3 in /hermes/bosnaweb05a/b1560/ipg.thinkingelvishcom/wp-content/themes/customizr/parts/class-content-featured_pages.php on line 167”
This is the code on that php line:
//limit text to 200 car
This is the code showing after around that – not sure if it matters…
//set page excerpt as default text if no $featured_text $text = ( empty($featured_text) && !post_password_required($featured_page_id) ) ? strip_tags(apply_filters( 'the_content' , $page->post_excerpt )) : $featured_text ; $text = ( empty($text) && !post_password_required($featured_page_id) ) ? strip_tags(apply_filters( 'the_content' , $page->post_content )) : $text ; //limit text to 200 car $default_fp_text_length = apply_filters( 'tc_fp_text_length', 200 ); $text = ( strlen($text) > $default_fp_text_length ) ? substr( $text , 0 , strpos( $text, ' ' , $default_fp_text_length) ). ' ...' : $text; //set the image : uses thumbnail if any then >> the first attached image then >> a holder script $fp_img_size = apply_filters( 'tc_fp_img_size' , 'tc-thumb' ); $fp_img_id = apply_filters( 'fp_img_id', false , $fp_single_id , $featured_page_id );
I really appreciate any help or advice. I am self-taught and totally new to undefined offsets… and coding for that matter
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Undefined Offset Notice on Front Page’ is closed to new replies.