triplezerox
Forum Replies Created
-
Forum: Plugins
In reply to: [TinyMCE Comment Field - WYSIWYG] Reply to comments no longer worksIt may be worth trying this code which goes into your theme’s functions.php file:
global $wp_version; if (version_compare($wp_version, '5.1.1', '>=')) { add_filter('comment_reply_link', 'haremu_replace_comment_reply_link', 10, 4); function haremu_replace_comment_reply_link($link, $args, $comment, $post) { if (get_option('comment_registration') && !is_user_logged_in()) { $link = sprintf( '<a rel="nofollow" class="comment-reply-login" href="%s">%s</a>', esc_url(wp_login_url(get_permalink())), $args['login_text'] ); } else { $onclick = sprintf( 'return addComment.moveForm( "%1$s-%2$s", "%2$s", "%3$s", "%4$s" )', $args['add_below'], $comment->comment_ID, $args['respond_id'], $post->ID ); $link = sprintf( "<a rel='nofollow' class='comment-reply-link' href='%s' onclick='%s' aria-label='%s'>%s</a>", esc_url(add_query_arg('replytocom', $comment->comment_ID, get_permalink($post->ID))) . "#" . $args['respond_id'], $onclick, esc_attr(sprintf($args['reply_to_text'], $comment->comment_author)), $args['reply_text'] ); } return $link; } }
Disclaimer: Not my work. Retrieved from https://haremu.com/p/527
I used it for a separate issue when I couldn’t get comment data to POST – you’d click ‘submit’ and nothing would happen. It seems WordPress 5.1 changed the way this works, and this fixes it.
Forum: Plugins
In reply to: [TinyMCE Comment Field - WYSIWYG] Reply to comments no longer worksI’d like to present a potential solution that I put together after doing some further research and testing. I’ve confirmed that this fixes things on my site.
This appears to have been resolved already in an update of WordPress 5.1:
https://core.trac.www.ads-software.com/ticket/46260However, if you go into the directory of the plugin’s js folder:
<website root>/wp-content/plugins/tinymce-comment-field/js/You should notice that there’s a file called “comment-reply-4.8.0.js”. This appears to be a copy of the comment-reply.js file from version 4.8 of WordPress, and the reason why the plugin is not working as it should.
To resolve the issue, I simply copied the new version of the file into the directory, named the old one “comment-reply-4.8.0.js.bak” just in case, and then named the new one “comment-reply-4.8.0.js”. WordPress keeps the current version in:
<website root>/wp-includes/js/Forum: Plugins
In reply to: [TinyMCE Comment Field - WYSIWYG] Reply to comments no longer worksHi there, I’ve just noticed this as someone pointed it out to me on my site.
How to fix it is beyond me, but I tried a bit of troubleshooting and the browser console appears to throw an error when hitting the reply button:TypeError: t.I is not a function
The specific line in the code that it refers to is #7:
comm = t.I( commId ),
I have deleted the plugin files, run those SQL commands and verified that those entries are no longer in the database. However, I still have issues in activating the plugin where my browser appears to be loading the page forever and I become unable to access wp-admin. Given that this doesn’t work, I’m not sure what else to try so unfortunately I don’t think I’ll be using WP statistics anymore.
Thanks so much for your swift assistance though, your plugin was excellent while I used it.
I have deleted everything in my database related to wp statistics. I also deleted the wp-statistics directory in wordpress/wp-content/uploads. I then attempted to reinstall the plugin cleanly but it won’t activate properly. After clicking “Activate”, I become unable to access the wp-admin area until I disable the plugin by renaming the folder via ftp.
The following entries are made in the database after unsuccessful activation:
wp_uvyn_statistics_exclusions
wp_uvyn_statistics_historical
wp_uvyn_statistics_pages
wp_uvyn_statistics_useronline
wp_uvyn_statistics_visit
wp_uvyn_statistics_visitorThey have 0, 0, 11, 6, 1, 23 rows respectively.
These are the new entries in my PHP error log:
[11-Jul-2015 15:26:45 UTC] WordPress database error Table ‘zxzxzxin_wo9242.wp_uvyn_statistics_historical’ doesn’t exist for query SHOW COLUMNS FROM wp_uvyn_statistics_historical LIKE ‘key’ made by activate_plugin, include_once(‘/plugins/wp-statistics/wp-statistics.php’), include_once(‘/plugins/wp-statistics/wps-install.php’)
[11-Jul-2015 15:26:45 UTC] WordPress database error Can’t DROP ‘date_ip’; check that column/key exists for query DROP INDEXdate_ip
ON wp_uvyn_statistics_visitor made by activate_plugin, include_once(‘/plugins/wp-statistics/wp-statistics.php’), include_once(‘/plugins/wp-statistics/wps-install.php’)Is there any way that I could try a completely clean installation? WP Statistics has been working great for me since I installed it in May this year.
I can’t seem to post my log entries here so I’ve uploaded my log to here.
I’m not sure if the ‘not found’ entries occurred because I deleted the entries from the PHP table. The entries prior to July should not be an issue either as this only occurred in the past few days but I have included the entire log anyway.
When I try to load the admin area, it remains blank and Firefox tries to load the page infinitely. I have not yet checked the logs as I’m not sure where to find them but will look for them later today.
Initially I suspected a memory issue so I increased memory_limit in my php.ini file from 128 to 256 but that doesn’t seem to have had any effect.
Forum: Reviews
In reply to: [BBSpoiler] Excellent plugin!I can’t seem to edit my original review but I’d now give this 5 stars.
Forum: Reviews
In reply to: [BBSpoiler] Excellent plugin!Thanks a lot mate! This is an excellent plugin which fits perfectly with the needs of my site.