Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,197,842 members, 7,966,128 topics. Date: Friday, 04 October 2024 at 09:39 AM |
Nairaland Forum / Science/Technology / Webmasters / Need Help Of Webmasters (623 Views)
I Need Help Of Nairaland Webmasters. / Only For Webmasters On Nairaland / Hello Webmasters; Lets Do A Comment Exchange Today (2) (3) (4)
Need Help Of Webmasters by gbengs247: 11:53am On Feb 07, 2018 |
I moved my site recently to a new web host, but my page is showing this error "Warning: Declaration of Roots_Walker_Comment::start_el(&$output, $comment, $depth, $args, $id = 0) should be compatible with Walker_Comment::start_el(&$output, $comment, $depth = 0, $args = Array, $id = 0) in comments.php on line 0" What is responsible for this. Thank you |
Re: Need Help Of Webmasters by hostkobo(m): 12:42pm On Feb 07, 2018 |
gbengs247: Perhaps PHP-version compatibility. Do you know the PHP-version in your old-host? is it the same as the new host. regards HK |
Re: Need Help Of Webmasters by gbengs247: 1:10pm On Feb 07, 2018 |
hostkobo: How do i check the Php versions? If they are not same? what can i do to correct it? |
Re: Need Help Of Webmasters by Donald3d(m): 1:20pm On Feb 07, 2018 |
gbengs247:Via your cpanel |
Re: Need Help Of Webmasters by gbengs247: 1:35pm On Feb 07, 2018 |
Thank you for your help. I have checked the Php version of the old host and i have also changed it on the new host, but its still the same. I dont think that is the problem. |
Re: Need Help Of Webmasters by Dmayor7(m): 1:43pm On Feb 07, 2018 |
gbengs247: contact the Arthur of the theme you are using to update his theme codes. or better still change your theme. |
Re: Need Help Of Webmasters by RealLordZeus(m): 8:58am On Feb 08, 2018 |
Your site url?? |
Re: Need Help Of Webmasters by gbengs247: 9:19am On Feb 08, 2018 |
RealLordZeus:I dont want to disclose it. |
Re: Need Help Of Webmasters by gbengs247: 12:27pm On Feb 08, 2018 |
<?php /** * Use Bootstrap's media object for listing comments * * @link http://twitter.github.com/bootstrap/components.html#media */ class Roots_Walker_Comment extends Walker_Comment { function start_lvl(&$output, $depth = 0, $args = array()) { $GLOBALS['comment_depth'] = $depth + 1; ?> <ul <?php comment_class('media unstyled comment-' . get_comment_ID()); ?>> <?php } function end_lvl(&$output, $depth = 0, $args = array()) { $GLOBALS['comment_depth'] = $depth + 1; echo '</ul>'; } function start_el(&$output, $comment, $depth, $args, $id = 0) { $depth++; $GLOBALS['comment_depth'] = $depth; $GLOBALS['comment'] = $comment; if (!empty($args['callback'])) { call_user_func($args['callback'], $comment, $args, $depth); return; } extract($args, EXTR_SKIP); ?> <li id="comment-<?php comment_ID(); ?>" <?php comment_class('media comment-' . get_comment_ID()); ?>> <?php include(locate_template('templates/comment.php')); ?> <?php } function end_el(&$output, $comment, $depth = 0, $args = array()) { if (!empty($args['end-callback'])) { call_user_func($args['end-callback'], $comment, $args, $depth); return; } echo "</div></li>\n"; } } function roots_get_avatar($avatar) { $avatar = str_replace("class='avatar", "class='avatar pull-left media-object", $avatar); return $avatar; } add_filter('get_avatar', 'roots_get_avatar'); |
Re: Need Help Of Webmasters by gbengs247: 12:28pm On Feb 08, 2018 |
gbengs247:This is the code. |
Re: Need Help Of Webmasters by gbengs247: 12:33pm On Feb 08, 2018 |
gbengs247:This is the error message |
(1) (Reply)
Top Approval Tricks For Non-hosted Google Adsense Accounts In 2018 (full Guide) / Learn With Marthais: Learn How To Create A Blog / Send And Receive Payment From Any Nigerian Phone Number
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 23 |