Title: Scriptrunner (Doug Sparling)'s Replies - page 16 | 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 - 226 through 240 (of 520 total)

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sharing ad revenue with authors](https://wordpress.org/support/topic/sharing-ad-revenue-with-authors/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/sharing-ad-revenue-with-authors/#post-4181916)
 * I work for a publisher and we have sites with multiple creators on a single site/
   domain. We use DoubleClick for Publishers (DFP), which allows us to pass custom
   tracking codes. How they use it on the accounting side of things, I don’t know,
   but I know that’s what we use on our sites and mobile apps for ad rev share.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [PHP 5.4 disables pages](https://wordpress.org/support/topic/php-54-disables-pages/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-54-disables-pages/#post-4191916)
 * Well, both sort of. But it’s really more a case of plugins not keeping up with
   changes in PHP. I’ve had a couple plugins that gave me this error in the last
   few months. We host most of our smaller WordPress sites on Bluehost. One plugin
   I simply rewrote and put on the repository, the other I had to make an emergency
   fix to, but I think the author has updated his plugin now. The call-time pass-
   by-reference removal is the only issue I’ve had with PHP 5.4.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [PHP 5.4 disables pages](https://wordpress.org/support/topic/php-54-disables-pages/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-54-disables-pages/#post-4191909)
 * [http://www.php.net/manual/en/migration54.incompatible.php](http://www.php.net/manual/en/migration54.incompatible.php)
 * Call-time pass by reference has been removed.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [PHP 5.4 disables pages](https://wordpress.org/support/topic/php-54-disables-pages/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-54-disables-pages/#post-4191908)
 * I’ve had a few plugins break when Bluehost switched to PHP 5.4. It’s really an
   issue plugin authors should have caught, as it was deprecated in earlier versions
   of PHP:
 *     ```
       Fatal error: Call-time pass-by-reference has been removed in...
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to make a Link Open a New Window Rather than Replacing the page](https://wordpress.org/support/topic/how-to-make-a-link-open-a-new-window-rather-than-replacing-the-page/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/how-to-make-a-link-open-a-new-window-rather-than-replacing-the-page/#post-4191489)
 * As a general best practice, I’d only do this if the link goes to an external 
   site.
 * If you are creating the links in the WordPress visual editor, then just highlight
   the text you want to link with, click the link button in the editor toolbar, 
   and then check the “open in new window/tab” checkbox.
 * Or just add:
 * `target="_blank"`
 * to your link, as in this example:
 *     ```
       <a title="example.com" href="http://example.com" target="_blank">example.com</a>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal error: Call to undefined function wp_get_current_user](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_current_user-9/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_current_user-9/#post-4190955)
 * You’re quite welcome!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal error: Call to undefined function wp_get_current_user](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_current_user-9/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_current_user-9/#post-4190952)
 * Do you have FTP access to the site? If so, just rename the plugins directory.(`
   wp-content/plugins`)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal error: Call to undefined function wp_get_current_user](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_current_user-9/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_current_user-9/#post-4190949)
 * OK, first, you don’t want to modify a core file (wp-includes/capabilities.php).
   As I recall, `/wp-includes/pluggable.php` (which defines the `wp_get_current_user`
   function) doesn’t get loaded until after plugins are loaded.
 * So, it’s most likely a plugin causing the issue. Disable your plugins and see
   if that eliminates the error. If not, try a default WordPress theme like Twenty
   Thirteen (but I’m pretty sure this is a plugin issue)
 * If deactivating your plugins does get rid of the error then you need to find 
   out which plugin is causing the issue.
 * Assuming it is a plugin causing the problem, the plugin author needs to add this
   to their code:
 *     ```
       <?php
       if( !function_exists( 'wp_get_current_user' ) ) {
           include( ABSPATH . "wp-includes/pluggable.php" );
       }
       ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error When Deleting Admin Account that Created the Site](https://wordpress.org/support/topic/error-when-deleting-admin-account-that-created-the-site/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-when-deleting-admin-account-that-created-the-site/page/2/#post-4188656)
 * Missed that too, apologies 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error When Deleting Admin Account that Created the Site](https://wordpress.org/support/topic/error-when-deleting-admin-account-that-created-the-site/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-when-deleting-admin-account-that-created-the-site/page/2/#post-4188637)
 * > Doug, we have 4 accounts with Admin role. The one I am trying to remove doesn’t
   > provide the option to remove when I hover my cursor over it but others do.
 * This still isn’t clear to me. This suggests to me that you are logged in as the
   user you are trying to delete (as did the error message you posted earlier).
 * Perhaps it would be easier to walk you through it if you list the user names (
   even if they’re made up, but so we have something to reference).
 * For sake of discussion, let’s say you have four users, all with administrator
   role:
 * admin1
    admin2 admin3 admin4
 * If you want to delete admin1, then should be able to do that if you are logged
   in as admin2, admin3, or admin4. If you are logged in as admin1, then you won’t
   be able to delete admin1.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error When Deleting Admin Account that Created the Site](https://wordpress.org/support/topic/error-when-deleting-admin-account-that-created-the-site/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-when-deleting-admin-account-that-created-the-site/#post-4188623)
 * But never the less, if you log in with your admin account, then you should be
   able to delete another user, even if that other user’s role is administrator.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error When Deleting Admin Account that Created the Site](https://wordpress.org/support/topic/error-when-deleting-admin-account-that-created-the-site/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-when-deleting-admin-account-that-created-the-site/#post-4188621)
 * Does the other account have administrator role?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error When Deleting Admin Account that Created the Site](https://wordpress.org/support/topic/error-when-deleting-admin-account-that-created-the-site/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-when-deleting-admin-account-that-created-the-site/#post-4188619)
 * `ID# <username> The current user will not be removed`
 * means that you tried to delete the username you are currently logged in as.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error When Deleting Admin Account that Created the Site](https://wordpress.org/support/topic/error-when-deleting-admin-account-that-created-the-site/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-when-deleting-admin-account-that-created-the-site/#post-4188617)
 * Like [@leejosepho](https://wordpress.org/support/users/leejosepho/), I use Better
   WP Security to take care of most of that…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error When Deleting Admin Account that Created the Site](https://wordpress.org/support/topic/error-when-deleting-admin-account-that-created-the-site/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-when-deleting-admin-account-that-created-the-site/#post-4188616)
 * You can’t delete yourself if you’re logged in as admin.
 * You’ll need to create a second admin account, then log out of your original admin
   account, login to the new one, and then delete your original admin account.

Viewing 15 replies - 226 through 240 (of 520 total)

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