Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,147,973 members, 7,799,315 topics. Date: Tuesday, 16 April 2024 at 06:43 PM

Need Help Of Webmasters - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Need Help Of Webmasters (568 Views)

I Need Help Of Nairaland Webmasters. / Only For Webmasters On Nairaland / Hello Webmasters; Lets Do A Comment Exchange Today (2) (3) (4)

(1) (Reply) (Go Down)

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:
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

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:


Perhaps PHP-version compatibility.

Do you know the PHP-version in your old-host? is it the same as the new host.

regards
HK

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:


How do i check the Php versions? If they are not same? what can i do to correct it?
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:
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.

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:
Your site url??
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:
<?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');
This is the code.
Re: Need Help Of Webmasters by gbengs247: 12:33pm On Feb 08, 2018
gbengs247:


"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"
This is the error message

(1) (Reply)

I Just Started Blogging And I Bought Ngscholars.com.ng What Do You Think / Which Affiliate And Cpa Program Will You Recommend For Nigerians? / How To Place Links Texts On A Post In Nairaland

(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. 18
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.