Title: Scriptrunner (Doug Sparling)'s Replies - page 7 | WordPress.org

---

# Scriptrunner (Doug Sparling)

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 91 through 105 (of 520 total)

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Admin-ajax.php being Called from Admin Pages Causing DB Connection Issues](https://wordpress.org/support/topic/admin-ajaxphp-being-called-from-admin-pages-causing-db-connection-issues/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/admin-ajaxphp-being-called-from-admin-pages-causing-db-connection-issues/#post-4319597)
 * Good luck – sounds like an edge case, but a perfectly valid one. AFAIK, the heartbeat
   only stops when you close your browser, but does slow down after (I think) five
   minutes of inactivity. But I’m not aware of any built-in way to turn it off. 
   Also, as I think Pippin was alluding to, plugin developers do have the ability
   to decrease the ping time through a hook, down to once every 10-15 seconds I 
   believe.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: ["Cookies are blocked or not supported" since update to 3.7.1](https://wordpress.org/support/topic/cookies-are-blocked-or-not-supported-since-update-to-371/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/cookies-are-blocked-or-not-supported-since-update-to-371/page/2/#post-4307336)
 * COOKIEPATH equates to ‘home’ and SITECOOKIEPATH equates to ‘siteurl.’
 * I was initially wrong about it possibly setting two cookies.
 * What’s happening is, it will set a test cookie with path based on the url found
   in ‘home.’ If ‘siteurl’ and ‘home’ are different, it then rewrites the test cookie
   with using the path based on ‘siteurl.’
 * Either way, you should get a cookie.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Admin-ajax.php being Called from Admin Pages Causing DB Connection Issues](https://wordpress.org/support/topic/admin-ajaxphp-being-called-from-admin-pages-causing-db-connection-issues/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/admin-ajaxphp-being-called-from-admin-pages-causing-db-connection-issues/#post-4319570)
 * Yes, given the time interval and given the log snippet you posted, I’d guess 
   with confidence that it’s the heartbeat api. (that’s the normal time interval,
   though I do think it slows down after a period of inactivity) It’s not something
   I’ve actually tried to do, and I wasn’t 100% sure if what I gave you would work.
 * Is there a reason you need to have multiple admin pages open constantly? The 
   obvious and easiest solution is not to do that.
 * Maybe Pippin or someone else knows, but I’m not sure how to disable it (or if
   you really should), but I may look into it when I have more time over the weeekend…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: ["Cookies are blocked or not supported" since update to 3.7.1](https://wordpress.org/support/topic/cookies-are-blocked-or-not-supported-since-update-to-371/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/cookies-are-blocked-or-not-supported-since-update-to-371/page/2/#post-4307332)
 * The test cookie is set by wp-login.php, and like you, when I go to the login 
   page on your site, no test cookies are set. I also noticed that the wp-admin 
   and colors-fresh css are not loading.
 * Never the less, wp-login.php should set the test cookies, nothing special there
   and nothing regarding that has changed with WordPress 3.7.1 that I’m aware of.
   So to me it looks like that wp-login.php is the culprit.
 * Can you verify that:
 *     ```
       setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
       if ( SITECOOKIEPATH != COOKIEPATH )
       	setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
       ```
   
 * is in your wp-login.php file?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Admin-ajax.php being Called from Admin Pages Causing DB Connection Issues](https://wordpress.org/support/topic/admin-ajaxphp-being-called-from-admin-pages-causing-db-connection-issues/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/admin-ajaxphp-being-called-from-admin-pages-causing-db-connection-issues/#post-4319515)
 * It’s most likely the WordPress Heartbeat API introduced in WP 3.6.
 * [Using the WordPress Heartbeat API](http://pippinsplugins.com/using-the-wordpress-heartbeat-api/)
 * [The Heartbeat API: Changing the Pulse](http://wp.tutsplus.com/tutorials/creative-coding/the-heartbeat-api-changing-the-pulse/)
 * I’ve not done this myself, so I’m not sure if this is the complete solution, 
   but you should be able to add this to functions.php to stop the API:
 * remove_action( ‘admin_init’, ‘wp_auth_check_load’ );
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: ["Cookies are blocked or not supported" since update to 3.7.1](https://wordpress.org/support/topic/cookies-are-blocked-or-not-supported-since-update-to-371/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/cookies-are-blocked-or-not-supported-since-update-to-371/page/2/#post-4307316)
 * WordPress will set one or two test cookies when you go to wp-login.php. If siteurl
   and home are the same, then just one cookie. So after you go to wp-login.php,
   check if you have any cookies named ‘wordpress_test_cookie.’
 * You can check your siteurl and home url via SQL. In my case, for example:
 *     ```
       mysql> SELECT option_value FROM wp_options WHERE option_name='home';
       +------------------+
       | option_value     |
       +------------------+
       | http://localhost |
       +------------------+
       1 row in set (0.00 sec)
   
       mysql> SELECT option_value FROM wp_options WHERE option_name='siteurl';
       +------------------+
       | option_value     |
       +------------------+
       | http://localhost |
       +------------------+
       1 row in set (0.00 sec)
       ```
   
 * So since siteurl and home are the same, I only have one test cookie set.
 *     ```
       Name: wordpress_test_cookie
       Content: WP+Cookie+check
       Host: localhost
       Path: /
       Send For: Any type of connection
       Expires: At end of session
       ```
   
 * Upon login, WordPress checks that the test cookie has been set and you’ll get
   that error if not (assuming the form is sending the hidden param of testcookie
   =1, which it should)
 * So first see if wp-login.php (just go to the page, you don’t need to login) is
   setting the test cookie(s) for siteurl and home.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wordpress 3.7 updated itself before I backed up](https://wordpress.org/support/topic/wordpress-37-updated-itself-before-i-backed-up/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/wordpress-37-updated-itself-before-i-backed-up/#post-4262647)
 * The host auto-updating WordPress is completely unrelated to WordPress 3.7 auto
   updates. I know for a fact that if you install WordPress via cPanel at a shared
   host (like Bluehost or Dreamhost), then they will update WordPress. I can’t recall
   if there’s a way to turn that off or if you have to contact theme. I generally
   do my own install of WordPress instead of using cPanel.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wordpress 3.7 updated itself before I backed up](https://wordpress.org/support/topic/wordpress-37-updated-itself-before-i-backed-up/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/wordpress-37-updated-itself-before-i-backed-up/#post-4262646)
 * 3.7 auto updates only do minor point release updates (security/bug fixes, like
   3.7 -> 3.7.1). If you see “Database Update Required” then it’s likely your host
   is updating WordPress for you, as that suggests a bigger change. I don’t believe
   you should ever see “Database Update Required” for a minor point release update.
   I leave 3.7 auto-updates enabled for my sites, but do major updates (say 3.6.
   x -> 3.7) manually after testing plugin/theme compatibility on a staging site.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to add particular flash puzzle](https://wordpress.org/support/topic/how-to-add-particular-flash-puzzle/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/how-to-add-particular-flash-puzzle/#post-4268412)
 * Just create a normal post or page and insert that html in the post editor wysisyg
   using the Text tab (it won’t work if you use the Visual tab)
 * You don’t need a plugin, this is just html.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [mark post as read or unread](https://wordpress.org/support/topic/mark-post-as-read-or-unread/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/mark-post-as-read-or-unread/#post-4261001)
 * Yes, it is premium, and I know that doesn’t suit everybody (though the license
   is only $5). I only offered that link because I don’t know of any free alternatives
   that works.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wordpress 3.7 updated itself before I backed up](https://wordpress.org/support/topic/wordpress-37-updated-itself-before-i-backed-up/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/wordpress-37-updated-itself-before-i-backed-up/#post-4262409)
 * As leejosepho said, you’ll see that message once WordPress is done updating and
   is normal. As far as it already updating, some hosts will automatically update
   WordPress (I think if use a cPanel installer). As far as your data, it’s very
   important to make regular backups. But don’t worry, a WordPress update will only
   update core files and perhaps make changes to database tables. You shouldn’t 
   lose data. But like I said, make sure to do regular backups.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: ["Internal Server Error" due to .htaccess? Delete it automatically?](https://wordpress.org/support/topic/internal-server-error-due-to-htaccess-is-no-1-suspect-delete-it-automatical/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/internal-server-error-due-to-htaccess-is-no-1-suspect-delete-it-automatical/#post-4260932)
 * If it’s set to permission of 404, then there’s no way your .htaccess file could
   be overwritten at all unless something is changing the file permissions first.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How do I load a GPX file to a page?](https://wordpress.org/support/topic/how-do-i-load-a-gpx-file-to-a-page/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/how-do-i-load-a-gpx-file-to-a-page/#post-4261920)
 * This is untested, but you should be able to add this to the `functions.php` file
   in your theme:
 *     ```
       function add_upload_mime_types( $mimes ) {
           if ( function_exists( 'current_user_can' ) )
               $unfiltered = $user ? user_can( $user, 'unfiltered_html' ) : current_user_can( 'unfiltered_html' );
           if ( !empty( $unfiltered ) ) {
               $mimes['gpx'] = 'application/gpx+xml';
           }
           return $mimes;
       }
       add_filter( 'upload_mimes', 'add_upload_mime_types' );
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [I Keep Getting A Fatal Error Code Can not reach admin panel or site](https://wordpress.org/support/topic/i-keep-getting-a-fatal-error-code-can-not-reach-admin-panel-or-site/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/i-keep-getting-a-fatal-error-code-can-not-reach-admin-panel-or-site/#post-4261917)
 * Looks like your WordPress update didn’t complete or was corrupted. Your best 
   bet would be to reinstall WordPress. You could try uploading /wp-includes from
   a copy of WordPress 3.7.
 * I’m not sure what you mean by you deleted everything dated today an yesterday,
   but from the error message, there is at least one file missing (/wpincludes/pomo/
   mo.php).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: ["Internal Server Error" due to .htaccess? Delete it automatically?](https://wordpress.org/support/topic/internal-server-error-due-to-htaccess-is-no-1-suspect-delete-it-automatical/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/internal-server-error-due-to-htaccess-is-no-1-suspect-delete-it-automatical/#post-4260923)
 * Good point, I totally forgot that you were already unable to get into the admin.
   Do you use any security plugins? Bullet Proof Security can update .htaccess, 
   though I’ve never had the problem you’re experiencing (and it could be some interaction
   between multiple security plugins, if you’re using any). Another thought, you
   could set your .htaccess file to read only, that way it wouldn’t keep overwriting
   itself.

Viewing 15 replies - 91 through 105 (of 520 total)

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