Title: chadrew's Replies | WordPress.org

---

# chadrew

  [  ](https://wordpress.org/support/users/chadrew/)

 *   [Profile](https://wordpress.org/support/users/chadrew/)
 *   [Topics Started](https://wordpress.org/support/users/chadrew/topics/)
 *   [Replies Created](https://wordpress.org/support/users/chadrew/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/chadrew/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/chadrew/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/chadrew/engagements/)
 *   [Favorites](https://wordpress.org/support/users/chadrew/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 114 total)

1 [2](https://wordpress.org/support/users/chadrew/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/chadrew/replies/page/3/?output_format=md)…
[6](https://wordpress.org/support/users/chadrew/replies/page/6/?output_format=md)
[7](https://wordpress.org/support/users/chadrew/replies/page/7/?output_format=md)
[8](https://wordpress.org/support/users/chadrew/replies/page/8/?output_format=md)
[→](https://wordpress.org/support/users/chadrew/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Comment Attachment] Page Not Found (404)](https://wordpress.org/support/topic/page-not-found-404-3/)
 *  [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [7 years ago](https://wordpress.org/support/topic/page-not-found-404-3/#post-11476917)
 * Make a copy of wp-comments-post.php and name it blahblah.php. Then, when calling
   the comment form in your theme, make it use the new file like this:
 * `comment_form(array('action' => '/blahblah.php'));`
 * Or, use a different web host 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Comment Attachment] Two forms instead of one](https://wordpress.org/support/topic/two-forms-instead-of-one/)
 *  [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [7 years ago](https://wordpress.org/support/topic/two-forms-instead-of-one/#post-11474952)
 * It’s a hack because there is no good way to add `multipart/form-data` (which 
   is necessary for file uploads) to the default WordPress comment form.
 * You could edit the plugin and comment out the `add_action('comment_form_top'`
   to disable this. Then, add the `multipart/form-data` attribute using jQuery:
 * `<script>jQuery('#commentform')[0].encoding = 'multipart/form-data';</script>`
    -  This reply was modified 7 years ago by [chadrew](https://wordpress.org/support/users/chadrew/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Comment Attachment] Page Not Found (404)](https://wordpress.org/support/topic/page-not-found-404-3/)
 *  [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [7 years ago](https://wordpress.org/support/topic/page-not-found-404-3/#post-11474707)
 * Are you using HostGator?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PostRatings] Caching with WP-PostRatings](https://wordpress.org/support/topic/caching-with-wp-postratings/)
 *  [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/caching-with-wp-postratings/#post-9874473)
 * Ran into a funny problem with this that took me a while to figure out – how can
   ratings work fine one day but fail to load the next without making any changes
   to the site?
 * Turns out this function uses a nonce (randomly generated number) for security,
   and since it’s right there in the source code it gets cached along the rest of
   the webpage. WordPress nonce lifetime is 12-24 hrs, so if your cached page is
   older than that, your nonce will be invalid and ratings won’t load.
 * Solution is to not cache pages for longer than 12 hrs, or increase nonce lifetime
   as described here:
 * [https://codex.wordpress.org/WordPress_Nonces#Modifying_the_nonce_lifetime](https://codex.wordpress.org/WordPress_Nonces#Modifying_the_nonce_lifetime)
 *   Forum: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
   
   In reply to: [Browser search (Ctrl+F) doesn’t work with new code editor](https://wordpress.org/support/topic/browser-search-ctrlf-doesnt-work-with-new-code-editor/)
 *  Thread Starter [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/browser-search-ctrlf-doesnt-work-with-new-code-editor/#post-9802116)
 * Oh man, I didn’t know there was already an option to disable it. Thank you very
   much.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Enable Media Replace] Replace image of different size](https://wordpress.org/support/topic/replace-image-of-different-size/)
 *  [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/replace-image-of-different-size/#post-7492001)
 * According to this post from the developer, that’s the intended behavior:
 * [https://wordpress.org/support/topic/not-updating-img-src-for-resized-images?replies=4](https://wordpress.org/support/topic/not-updating-img-src-for-resized-images?replies=4)
 *   Forum: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
   
   In reply to: [Get rid of emoji](https://wordpress.org/support/topic/get-rid-of-emoji/)
 *  [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [11 years ago](https://wordpress.org/support/topic/get-rid-of-emoji/page/2/#post-6061861)
 * Why this stuff is in core is beyond me. It would be perfect to have emoji as 
   a plugin, not as a core feature.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YARPP - Yet Another Related Posts Plugin] Removing the wrapping div in custom templates](https://wordpress.org/support/topic/removing-the-wrapping-div-in-custom-templates/)
 *  [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/removing-the-wrapping-div-in-custom-templates/#post-4994565)
 * Same issue here. I’m using a custom template as a “pseudo widget” in the sidebar,
   problem is YARPP now adds div tags between the li.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YARPP - Yet Another Related Posts Plugin] Events Manager & YARPP](https://wordpress.org/support/topic/events-manager-yarpp/)
 *  [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [13 years ago](https://wordpress.org/support/topic/events-manager-yarpp/#post-3685957)
 * You could create a custom YARPP template file, and check the event date of every
   related post against today’s date. In fact, I use something very similar, but
   I don’t know how Events Manager stores the event date. In my case I store it 
   in a custom field. If Events Manager does the same, then maybe this will help:
 * [http://pastebin.com/0J6ppaKg](http://pastebin.com/0J6ppaKg)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Widget Logic] Error after Widget Logic upgrade](https://wordpress.org/support/topic/error-after-widget-logic-upgrade/)
 *  [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-after-widget-logic-upgrade/page/3/#post-3293842)
 * > PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
   > T_STRING in /home/public_html/wp-content/plugins/widget-logic/widget_logic.
   > php(284) : eval()’d code on line 1
 * I’ve been getting this error constantly, replacing the plugin with the one you
   posted earlier fixed it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Super Cache] [Plugin: WP Super Cache] Erroneous Garbage Collection warning](https://wordpress.org/support/topic/plugin-wp-super-cache-erroneous-garbage-collection-warning/)
 *  [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-erroneous-garbage-collection-warning/#post-3095779)
 * I also had this error after upgrading to the new version, but then I re-saved
   the garbage collection options, and it went away. Everything seems to be working
   fine.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Super Cache] WP Super Cache deletes cached pages on comment](https://wordpress.org/support/topic/wp-super-cache-deletes-cached-pages-on-comment/)
 *  Thread Starter [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/wp-super-cache-deletes-cached-pages-on-comment/#post-2767141)
 * It seems this is still happening with 1.2, if I’m reading the log right.
 * > 17:55:36 /wp-comments-post.php wp_cache_post_edit: Clearing cache for post 
   > 6796 on post edit.
   >  17:55:36 /wp-comments-post.php wp_cache_post_change: comment
   > detected. only deleting post page. 17:55:36 /wp-comments-post.php supercache
   > dir: /home/public_html/wp-content/cache/supercache/domain.com/coupons/ 17:55:
   > 36 /wp-comments-post.php wp_cache_post_id_gc post_id: 6796 [http://domain.com/coupons](http://domain.com/coupons)
   > clearing cache in /home/public_html/wp-content/cache/supercache/domain.com/
   > coupons/. 17:55:36 /wp-comments-post.php prune_super_cache: wp_cache_rebuild_or_delete(/
   > home/public_html/wp-content/cache/supercache/domain.com/coupons/index.html )
   > 17:55:36 /wp-comments-post.php rebuild_or_gc: rename to /home/public_html/wp-
   > content/cache/supercache/domain.com/coupons/index.html.needs-rebuild 17:55:
   > 36 /wp-comments-post.php wp_cache_post_id_gc clearing cache in /home/public_html/
   > wp-content/cache/supercache/domain.com/coupons//page/. 17:55:36 /wp-comments-
   > post.php wp_cache_post_id_gc clearing cache in /home/public_html/wp-content/
   > cache/supercache/domain.com//page/. 17:55:36 /wp-comments-post.php prune_super_cache:
   > deleted /home/public_html/wp-content/cache/supercache/domain.com//page/2/index.
   > html 17:55:36 /wp-comments-post.php gc: deleted /home/public_html/wp-content/
   > cache/supercache/domain.com//page/2, forced delete 17:55:36 /wp-comments-post.
   > php prune_super_cache: deleted /home/public_html/wp-content/cache/supercache/
   > domain.com//page/3/index.html 17:55:36 /wp-comments-post.php gc: deleted /home/
   > public_html/wp-content/cache/supercache/domain.com//page/3, forced delete 17:
   > 55:36 /wp-comments-post.php prune_super_cache: deleted /home/public_html/wp-
   > content/cache/supercache/domain.com//page/4/index.html 17:55:36 /wp-comments-
   > post.php gc: deleted /home/public_html/wp-content/cache/supercache/domain.com//
   > page/4, forced delete
 * Not exactly a big issue, but I thought I’d let you know.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Minify] [Plugin: WP Minify] Ill-conceived line-wrapping of HTML for "human readability" remains](https://wordpress.org/support/topic/plugin-wp-minify-ill-conceived-line-wrapping-of-html-for-human-readability-remains/)
 *  [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-minify-ill-conceived-line-wrapping-of-html-for-human-readability-remains/#post-2354020)
 * Is it safe to just comment out the line in question?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Custom Fields stopped working properly – admin panel](https://wordpress.org/support/topic/custom-fields-stopped-working-properly-admin-panel/)
 *  [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/custom-fields-stopped-working-properly-admin-panel/#post-3070981)
 * Just noticed the same issue. I use custom fields heavily in my blog. Thanks for
   providing a fix.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Smush – Image Optimization, Compression, Lazy Load, WebP & CDN] [Plugin: WP Smush.it] Can't upload image via gravity forms](https://wordpress.org/support/topic/plugin-wp-smushit-cant-upload-image-via-gravity-forms/)
 *  [chadrew](https://wordpress.org/support/users/chadrew/)
 * (@chadrew)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-smushit-cant-upload-image-via-gravity-forms/#post-2767908)
 * The problem probably comes from smushit.com service and not the plugin itself.
   I’ve noticed that when this happens smushit.com isn’t loading, or is loading 
   very slowly. Other people have also reported this problem on here on the forum.

Viewing 15 replies - 1 through 15 (of 114 total)

1 [2](https://wordpress.org/support/users/chadrew/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/chadrew/replies/page/3/?output_format=md)…
[6](https://wordpress.org/support/users/chadrew/replies/page/6/?output_format=md)
[7](https://wordpress.org/support/users/chadrew/replies/page/7/?output_format=md)
[8](https://wordpress.org/support/users/chadrew/replies/page/8/?output_format=md)
[→](https://wordpress.org/support/users/chadrew/replies/page/2/?output_format=md)