Need Help Of Webmasters - Webmasters - Nairaland
Nairaland Forum › Science/Technology › Webmasters › Need Help Of Webmasters (717 Views)
| Need Help Of Webmasters by gbengs247(op): 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(op): 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(op): 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(op): 9:19am On Feb 08, 2018 |
RealLordZeus:I dont want to disclose it. |
| Re: Need Help Of Webmasters by gbengs247(op): 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(op): 12:28pm On Feb 08, 2018 |
gbengs247:This is the code. |
| Re: Need Help Of Webmasters by gbengs247(op): 12:33pm On Feb 08, 2018 |
gbengs247:This is the error message |
I Need Help Of Nairaland Webmasters. • Only For Webmasters On Nairaland • Hello Webmasters; Lets Do A Comment Exchange Today • 2 • 3 • 4
Verified 9ja Adsense For Sale • Beware Of This Scam Blog • Parallel Profits Review:how To Make Money Selling Service To Local Business