Scriptrunner (Doug Sparling)
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: mark post as read or unreadThe plugin you mentioned has not been updated in four years, so it’s likely non-functional.
Pipin Williamson reviewed “Mark as Read for WordPress” plugin on his blog. You might check that out.
Forum: Fixing WordPress
In reply to: "Internal Server Error" due to .htaccess? Delete it automatically?Is that a recurring problem? I’ve never seen a case where that needed to be done on a regular basis. You can simply go to Settings->Permalinks and click “Save Changes.” That will regenerate (and replace, if one exists) your .htaccess file.
Forum: Fixing WordPress
In reply to: Unable to update/install themes/plugins brand new installationDoes the host allow outbound http connections? Some hosts don’t allow it and it’s required if you want to install/update plugins and themes from your WordPress dashboard.
Forum: Fixing WordPress
In reply to: small biz call-time php fatal errorI don’t use Bluehost (but a small WordPress business I work for does). This may help: Bluehost Web Hosting Help: PHP Version Selection (PHP Config). It would still be best if you contacted your theme author to have theme update the theme. Bluehost has been updating default PHP to 5.4 I think. I’ve seen this happen before with Bluehost. (but with plugins) It’s really a matter of some plugin and theme authors not checking that their code is PHP 5.4 compatible.
Forum: Fixing WordPress
In reply to: update comment author id with wp_update_commentThe function
wp_update_comment()doesn’t have the option to update the user id. It only updates these fields:- comment_content
- comment_author
- comment_author_email
- comment_approved
- comment_karma
- comment_author_url
- comment_date
- comment_date_gmt
- comment_parent
Forum: Fixing WordPress
In reply to: small biz call-time php fatal errorPHP 5.4 has removed call-time pass-by-reference, so your theme needs to be modified to work with PHP 5.4. If the theme author can’t do that, then you can check if your host can put you back on PHP 5.3.
Forum: Fixing WordPress
In reply to: fatal error in functions.php after tweaking a la Neil PatelAfter rereading that section of the article, the only thing you should add at the bottom of functions.php is:
// Add a rel="nofollow" to the comment reply links function add_nofollow_to_reply_link( $link ) { return str_replace( '")\'>', '")\' rel=\'nofollow\'>', $link ); } add_filter( 'comment_reply_link', 'add_nofollow_to_reply_link' );Don’t use
include_once('theme_admin/includes/widgets.php');It’s clear to me now in the example he’s saying put your code below this already existing line. (which is confusing, because that’s what it is with whatever theme he’s using, but it might not be there with your theme)
The article offers bad advice (IMHO) in using the admin editor (Appearance->editor) to modify your theme files because it’s too easy to make a mistake and then create an error that you can only fix by using FTP, which you should have done to begin with. When I set up sites for clients, I almost always disable the admin editor.
Forum: Fixing WordPress
In reply to: fatal error in functions.php after tweaking a la Neil PatelYou want to make sure that you make a backup of any theme file you modify so you can quickly restore if you create an error with your modifications. Or having the original, unmodified theme handy will work too.
Forum: Fixing WordPress
In reply to: fatal error in functions.php after tweaking a la Neil PatelAre you sure you updated your theme’s functions.php with the original, and in the right location?
wp-content/themes/shaken-grid-free/functions.phpOr are you using any caching plugins?
It’s obvious from the output that you haven’t actually updated your active theme’s functions.php file with the original (I assume you are uploading a backup).
I think we’re pretty sure it’s this theme since you modified the functions.php yourself. If nothing else, just reintall the entire theme from scratch.
Forum: Fixing WordPress
In reply to: fatal error in functions.php after tweaking a la Neil PatelYou still need
include_once('theme_admin/includes/widgets.php');and make sure
Add a rel=”nofollow” to the comment reply links
is not in your code. That’s just part of the article, not the code.
Forum: Fixing WordPress
In reply to: fatal error in functions.php after tweaking a la Neil PatelObviously (from the error you got), there is no function called
once(), but there is indeed one calledincluded_once(). So I looked at the link you posted and saw that there was indeed aninclude_once()line that he said to put in your functions.php, except I didn’t see a way to cut-and-paste it. So I guessed maybe you typo’d it 🙂Forum: Fixing WordPress
In reply to: is_page not to use in loop, alternaltive for it???Untested, but you should be able to do this:
if ( 5 == $page_data->ID ) { // Do your stuff here }Forum: Fixing WordPress
In reply to: is_page not to use in loop, alternaltive for it???$page_data->ID;Forum: Fixing WordPress
In reply to: fatal error in functions.php after tweaking a la Neil PatelFrom the looks of it, you put
once('theme_admin/includes/widgets.php');instead of the proper
include_once('theme_admin/includes/widgets.php');at the bottom of your functions.php file.
Forum: Fixing WordPress
In reply to: is_page not to use in loop, alternaltive for it???Generally the loop is used to display posts, on a specific page. Are you using the loop to display page content instead of post content?
Anyway, in the loop, use
get_the_ID()to get the current post id.