Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/exec-php.php on line 22
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/manager.php on line 36
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/manager.php on line 37
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/manager.php on line 38
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/manager.php on line 39
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/admin.php on line 53
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/admin.php on line 56
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/admin.php on line 57
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/admin.php on line 63
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/admin.php on line 64
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/admin.php on line 79
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/cache.php on line 22
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/cache.php on line 39
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/ajax.php on line 64
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php on line 76
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php on line 542
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCacheAdmin.php on line 1878
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCacheAdmin.php on line 1929
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCacheAdmin.php on line 1966
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCacheAdmin.php on line 2983
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCacheAdmin.php on line 3342
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCacheAdmin.php on line 3749
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCacheAdmin.php on line 5244
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCacheAdmin.php on line 5740
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/DbCache.php on line 147
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/ObjectCache.php on line 147
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/Minify.php on line 464
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/www/web5/html/wordpress/wp-content/plugins/exec-php/exec-php.php:22) in /home/www/web5/html/wordpress/wp-content/plugins/si-contact-form/si-contact-form.php on line 2189
]]>
This comes up anyone tries to “Vote”:
Deprecated: Assigning the return value of new by reference is deprecated in /home/rock/public_html/blogs/wordpress/wp-content/plugins/filosofo-comments-preview/filosofo-comments-preview.php on line 599
Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /home/rock/public_html/blogs/wordpress/wp-content/plugins/filosofo-comments-preview/filosofo-comments-preview.php:599) in /home/rock/public_html/blogs/wordpress/wp-content/plugins/si-contact-form/si-contact-form.php on line 2075
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/rock/public_html/blogs/wordpress/wp-content/plugins/filosofo-comments-preview/filosofo-comments-preview.php:599) in /home/rock/public_html/blogs/wordpress/wp-content/plugins/si-contact-form/si-contact-form.php on line 2075
1 High Fives
Anyone help?
the site is here https://rocktownhall.com/blogs but I have deactivated the plugin as it is a heavily used/traficked website.
]]>Line 74 of comments-likes.php is
add_action('wp_head','cl_header');
function cl_header() {
echo '<link type="text/css" rel="stylesheet" href="'. get_bloginfo('wpurl').'/wp-content/plugins/comments-likes/comments-likes.css" />'."\n";
echo '<script type="text/javascript" src="'.get_bloginfo('wpurl').'/wp-content/plugins/comments-likes/js/jquery.js"></script>'."\n";
echo '<script type="text/javascript" src="'.get_bloginfo('wpurl').'/wp-content/plugins/comments-likes/js/comments-likes.js"></script>'."\n";
}
First of all, you should register your scripts with wp_register_script and enqueue it via wp_enqueue_script.
Second of all, you should never load your own version of jQuery from the plugin. Let WordPress use its own jQuery. This screwed up another jQuery plugin I was using and I had to remove the above jQuery load.
]]>Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/manager.php on line 36
Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web5/html/wordpress/wp-content/plugins/exec-php/includes/manager.php on line 37
…
and so on for dozens of lines
]]>Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /home/vol2/server.com/htdocs/wp-admin/includes/schema.php on line 649
]]>I also use a filter so the comment_like table don’t store “likes” on comments which are deleted…
add_filter('deleted_comment','cl_deleted_comment');
function cl_deleted_comment($comment_id)
{
global $wpdb;
$cl_table_name = $wpdb->prefix . "comments_likes";
if (! $wpdb->query( $wpdb->prepare("DELETE FROM $cl_table_name WHERE like_comment_ID = $comment_id;") ) ) return false;
}
BR\Emil
]]>Just a small function you can add to pull the 5 most liked comments
function cl_return_top_5()
{
global $wpdb;
$cl_table_name = $wpdb->prefix . "comments_likes";
$liketop5 = $wpdb->get_results($wpdb->prepare("SELECT SUM(like_ID),like_comment_ID FROM $cl_table_name GROUP BY like_comment_ID ORDER BY SUM(like_ID) desc LIMIT 5;"));
foreach ($liketop5 as $acomment)
{
$id_acomment = $acomment->like_comment_ID;
$commentauthor = get_comment_author($id_acomment);
$commentexcerpt = get_comment_excerpt($id_acomment);
echo '<div class="commentliketop5">';
echo '<h3>'.$commentauthor.'</h3>';
echo '<p><a href="'.get_comment_link($id_acomment).'">'.$commentexcerpt.'</a></p>';
echo '</div>';
}
}
]]>