Title: Scriptrunner (Doug Sparling)'s Replies - page 8 | 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 - 106 through 120 (of 520 total)

[←](https://wordpress.org/support/users/scriptrunner/replies/page/7/?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)…
[7](https://wordpress.org/support/users/scriptrunner/replies/page/7/?output_format=md)
8 [9](https://wordpress.org/support/users/scriptrunner/replies/page/9/?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/9/?output_format=md)

 *   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-4260915)
 * The plugin you mentioned has not been updated in four years, so it’s likely non-
   functional.
 * Pipin Williamson reviewed “[Mark as Read for WordPress](http://pippinsplugins.com/mark-as-read-for-wordpress/)”
   plugin on his blog. You might check that out.
 *   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-4260911)
 * 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unable to update/install themes/plugins brand new installation](https://wordpress.org/support/topic/unable-to-updateinstall-themesplugins-brand-new-installation/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/unable-to-updateinstall-themesplugins-brand-new-installation/#post-4258289)
 * Does 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [small biz call-time php fatal error](https://wordpress.org/support/topic/small-biz-call-time-php-fatal-error/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/small-biz-call-time-php-fatal-error/#post-4261818)
 * I 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)](https://my.bluehost.com/cgi/help/447).
   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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [update comment author id with wp_update_comment](https://wordpress.org/support/topic/update-comment-author-id-with-wp_update_comment/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/update-comment-author-id-with-wp_update_comment/#post-4261464)
 * The 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [small biz call-time php fatal error](https://wordpress.org/support/topic/small-biz-call-time-php-fatal-error/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/small-biz-call-time-php-fatal-error/#post-4261814)
 * PHP 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [fatal error in functions.php after tweaking a la Neil Patel](https://wordpress.org/support/topic/fatal-error-in-functionsphp-after-tweaking-a-la-neil-patel/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-in-functionsphp-after-tweaking-a-la-neil-patel/#post-4253069)
 * After 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [fatal error in functions.php after tweaking a la Neil Patel](https://wordpress.org/support/topic/fatal-error-in-functionsphp-after-tweaking-a-la-neil-patel/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-in-functionsphp-after-tweaking-a-la-neil-patel/#post-4253068)
 * You 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [fatal error in functions.php after tweaking a la Neil Patel](https://wordpress.org/support/topic/fatal-error-in-functionsphp-after-tweaking-a-la-neil-patel/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-in-functionsphp-after-tweaking-a-la-neil-patel/#post-4253066)
 * Are you sure you updated your theme’s functions.php with the original, and in
   the right location?
 *     ```
       wp-content/themes/shaken-grid-free/functions.php
       ```
   
 * Or 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [fatal error in functions.php after tweaking a la Neil Patel](https://wordpress.org/support/topic/fatal-error-in-functionsphp-after-tweaking-a-la-neil-patel/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-in-functionsphp-after-tweaking-a-la-neil-patel/#post-4253010)
 * You 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [fatal error in functions.php after tweaking a la Neil Patel](https://wordpress.org/support/topic/fatal-error-in-functionsphp-after-tweaking-a-la-neil-patel/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-in-functionsphp-after-tweaking-a-la-neil-patel/#post-4253008)
 * Obviously (from the error you got), there is no function called `once()`, but
   there is indeed one called `included_once()`. So I looked at the link you posted
   and saw that there was indeed an `include_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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [is_page not to use in loop, alternaltive for it???](https://wordpress.org/support/topic/is_page-not-to-use-in-loop-alternaltive-for-it/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/is_page-not-to-use-in-loop-alternaltive-for-it/#post-4250598)
 * Untested, but you should be able to do this:
 *     ```
       if ( 5 == $page_data->ID ) {
           // Do your stuff here
       }
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [is_page not to use in loop, alternaltive for it???](https://wordpress.org/support/topic/is_page-not-to-use-in-loop-alternaltive-for-it/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/is_page-not-to-use-in-loop-alternaltive-for-it/#post-4250594)
 *     ```
       $page_data->ID;
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [fatal error in functions.php after tweaking a la Neil Patel](https://wordpress.org/support/topic/fatal-error-in-functionsphp-after-tweaking-a-la-neil-patel/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-in-functionsphp-after-tweaking-a-la-neil-patel/#post-4252979)
 * From 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [is_page not to use in loop, alternaltive for it???](https://wordpress.org/support/topic/is_page-not-to-use-in-loop-alternaltive-for-it/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/is_page-not-to-use-in-loop-alternaltive-for-it/#post-4250532)
 * 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.

Viewing 15 replies - 106 through 120 (of 520 total)

[←](https://wordpress.org/support/users/scriptrunner/replies/page/7/?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)…
[7](https://wordpress.org/support/users/scriptrunner/replies/page/7/?output_format=md)
8 [9](https://wordpress.org/support/users/scriptrunner/replies/page/9/?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/9/?output_format=md)