Scriptrunner (Doug Sparling)
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Sharing ad revenue with authorsI 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
In reply to: PHP 5.4 disables pagesWell, 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
In reply to: PHP 5.4 disables pageshttp://www.php.net/manual/en/migration54.incompatible.php
Call-time pass by reference has been removed.
Forum: Fixing WordPress
In reply to: PHP 5.4 disables pagesI’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
In reply to: How to make a Link Open a New Window Rather than Replacing the pageAs 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
In reply to: Fatal error: Call to undefined function wp_get_current_userYou’re quite welcome!
Forum: Fixing WordPress
In reply to: Fatal error: Call to undefined function wp_get_current_userDo you have FTP access to the site? If so, just rename the plugins directory. (
wp-content/plugins)Forum: Fixing WordPress
In reply to: Fatal error: Call to undefined function wp_get_current_userOK, first, you don’t want to modify a core file (wp-includes/capabilities.php). As I recall,
/wp-includes/pluggable.php(which defines thewp_get_current_userfunction) 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
In reply to: Error When Deleting Admin Account that Created the SiteMissed that too, apologies 🙂
Forum: Fixing WordPress
In reply to: Error When Deleting Admin Account that Created the SiteDoug, 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
admin4If 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
In reply to: Error When Deleting Admin Account that Created the SiteBut 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
In reply to: Error When Deleting Admin Account that Created the SiteDoes the other account have administrator role?
Forum: Fixing WordPress
In reply to: Error When Deleting Admin Account that Created the SiteID# <username> The current user will not be removedmeans that you tried to delete the username you are currently logged in as.
Forum: Fixing WordPress
In reply to: Error When Deleting Admin Account that Created the SiteLike @leejosepho, I use Better WP Security to take care of most of that…
Forum: Fixing WordPress
In reply to: Error When Deleting Admin Account that Created the SiteYou 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.