Scriptrunner (Doug Sparling)
Forum Replies Created
-
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
In reply to: "Cookies are blocked or not supported" since update to 3.7.1COOKIEPATH 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.
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
In reply to: "Cookies are blocked or not supported" since update to 3.7.1The 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?
It’s most likely the WordPress Heartbeat API introduced in WP 3.6.
Using the WordPress Heartbeat API
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
In reply to: "Cookies are blocked or not supported" since update to 3.7.1WordPress 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 sessionUpon 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
In reply to: wordpress 3.7 updated itself before I backed upThe 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
In reply to: wordpress 3.7 updated itself before I backed up3.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
In reply to: How to add particular flash puzzleJust 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
In reply to: mark post as read or unreadYes, 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
In reply to: wordpress 3.7 updated itself before I backed upAs 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
In reply to: "Internal Server Error" due to .htaccess? Delete it automatically?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
In reply to: How do I load a GPX file to a page?This is untested, but you should be able to add this to the
functions.phpfile 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
In reply to: I Keep Getting A Fatal Error Code Can not reach admin panel or siteLooks 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
In reply to: "Internal Server Error" due to .htaccess? Delete it automatically?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.