• Resolved kudo93

    (@kudo93)


    I got this message error:
    Warning: call_user_func() expects parameter 1 to be a valid callback, function ‘epl_author_tab_à_propos’ not found or invalid function name in /home3/invest01/public_html/wp-content/plugins/easy-property-listings/lib/templates/content/content-author-box.php on line 42

    It happened because I’m using French language by default, in English it doesn’t..

    Solution ?

    Thanks,

    https://www.ads-software.com/plugins/easy-property-listings/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kudo93

    (@kudo93)

    I tried to use a if else statement to solve the problem but I’m super newbie in php coding..
    Here what I wrote/modified:

    <?php
    
    			$counter = 1;
    
    			foreach($author_tabs as $author_tab){
    
    				$current_tab 	= strtolower('author-'.$author_tab);
    
    				$current_class	= $counter == 1? 'author-current':''; ?>
    			if ($counter == "1") {
    				<div id="tab-<?php echo $counter; ?>" class="<?php epl_author_class ($current_tab .' author-tab-content '.$current_class) ?>">
    				<?php apply_filters('epl_author_tab_'.$author_tab.'_callback',call_user_func('epl_author_tab_about'))  ?>
    				</div>
    			} else {
    				<div id="tab-<?php echo $counter; ?>" class="<?php epl_author_class ($current_tab .' author-tab-content '.$current_class) ?>">
    				<?php apply_filters('epl_author_tab_'.$author_tab.'_callback',call_user_func('epl_author_tab_'.str_replace(' ','_',$author_tab)))  ?>
    				</div>
    			}				
    
    				<?php
    
    				$counter ++;
    
    			}
    
    		?>

    Before it I tried with this if statement:if ($author_tab == "A_propos") etc..

    Idea why it’s not working ?

    Plugin Author Merv Barrett

    (@mervb1)

    Looking into it

    Plugin Author Merv Barrett

    (@mervb1)

    Resolved in 2.1

    Thread Starter kudo93

    (@kudo93)

    thanks !!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issue with author information display with other language than english’ is closed to new replies.