Scriptrunner (Doug Sparling)
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Strict Standards errorAre you running in DEBUG mode and running PHP 5.4 or greater?
As of PHP 5.4, E_STRICT has been included as part of E_ALL, so if you’re running in DEBUG mode, you’ll now see Strict Standards warnings (note – they’re warnings, not errors), where you didn’t see them before in PHP 5.3.x or earlier.
Forum: Fixing WordPress
In reply to: debug not logging to fileAre you seeing any debug output in your browser? (that is, you still have WP_DEBUG_DISPLAY set to its default value of true) The file will not be created until there is actual debug output. (and WordPress will create it for you if it doesn’t exist)
Also, permission issues could prevent the debug.log file from being created and written to. I’d double check this, especially since you created it yourself.
Forum: Fixing WordPress
In reply to: Fatal Error: Undefined function wp_get_current_user () in user.phpIt’s not likely WordPress, but it could be something the install. I could see a not commonly used plugin being a problem, but if you’re having the problem with multiple well-known plugins, then that leaves theme (or a faulty WordPress install).
As far as the theme, wp_get_current_user wouldn’t necessarily have to be in functions.php, it could be in any other php file in the theme. I’ve had to fix major bugs in premium themes before, but granted, very obscure and unusual bugs.
So let us know if using a default WordPress theme like TwentyThirteen or TwentyTwelve fixes the problem.
Forum: Fixing WordPress
In reply to: Fatal Error: Undefined function wp_get_current_user () in user.phpTara has a very good point. Try using another theme. If that fixes it, then look in the culprit theme’s functions.php file and see if it’s using
wp_get_current_user()anywhere. If the wp_get_current_user function is not running in a hook, it’s very likely you’ll get this same error.Forum: Fixing WordPress
In reply to: Building tag URLs with an "and/or"Awesome, glad you got it figured out!
Forum: Fixing WordPress
In reply to: Fatal errorFatal error: Call to a member function register_handler() on a non-object in /home/maurolar/public_html/wordpress/wp-includes/media.php on line 944register_handler()is on line 944 only in WordPress 3.5, so it’s possible you’re mixing WordPress 3.6.1 and WordPress 3.5, and that’s not going to work. Originally that could be due to a failed upgrade.If you’re trying to upload a fresh copy of WordPress (3.6.1), you absolutely need to follow Tara’s advice and delete old folders and files first (except for the wp-content directory and wp-config.php file). And make a backup first!
Forum: Fixing WordPress
In reply to: Restrict Contributors to only able to edit 1 pageI sometimes write plugins (and submit to WordPress.org) based on some bit of functionality someone here is looking for (to avoid having to update functions.php). This is one case where I might do that, as long as it’s not reinventing a wheel.
Forum: Fixing WordPress
In reply to: Restrict Contributors to only able to edit 1 pageSo you want basically a contributor role for your users, the only difference being is allowing them to edit only certain already existing pages and not allow them to create new ones? Say for example, the marketing team could only update the marketing specific pages and no others (and other non-marketing users could edit the marketing pages).
Forum: Fixing WordPress
In reply to: Fatal error@sallymc – To clarify, your site (as in your content) is data stored in the database and anything under wp-content. So first, you need to backup your database and the wp-content directory. That way, you will never “lose” your site no matter what. wp-config.php contains database credentials, so you don’t want to overwrite that, though if you do, you simply have to update the file.
The errors you’re getting are very common with incomplete installs or failed upgrades (as suggested by other posters in this thread).
Forum: Fixing WordPress
In reply to: Restrict Contributors to only able to edit 1 pageOK, my bad…I guess this part:
Role Scoper is no longer actively developed. For feature requests (including plugin compatability issues) and WP 3.7+ compatibility try the successor plugins, Press Permit Core and Press Permit Pro. See the RS-PP feature comparison grid for details.
So Press Permit Core perhaps?
Forum: Fixing WordPress
In reply to: Restrict Contributors to only able to edit 1 pageRoleScoper seems up-to-date:
Requires: 3.0 or higher
Compatible up to: 3.6.1
Last Updated: 2013-9-21
Downloads: 339,273What plugin is the one that’s no longer supported?
Forum: Plugins
In reply to: [WP Facebook Open Graph protocol] Footer html added to feed with 2.0.7No problem, and definitely my pleasure.
When I help folks on the WordPress.org support forums, I not only try to help the user get their site working again, but I also try to help make WordPress better by passing on any discoveries to theme/plugin authors, especially if the original poster can’t or won’t submit a bug report themselves.
Thanks!
Forum: Fixing WordPress
In reply to: Numbered lists changed to bulleted listsIt looks like you changed the page, but here’s the link to your original css file:
I used Firebug to track it down. I believe it was this line that was changing the decimals to squares:
#post_wrap li{list-style-type:square}Just comment out that line. The usual caveat applies (though from your previous comment, it sounds like it might not apply in your case) – any changes you make directly editing the css file could possibly be lost if you update the theme. In that case, create a child theme or use a plugin to allow you to update css outside of the theme.
Forum: Fixing WordPress
In reply to: Error: Trying to get property of non-object in post-templateYou haven’t given us much to go on, but after looking at
wp-includes/posts-template.phpmy guess is that you may be callingget_the_ID()outside the loop somewhere in your theme, or perhaps you are trying to use$postwithout first usingglobal $post;in a function.If you could narrow it down to a specific template file and provide a code sample, that would be a big help.
Forum: Fixing WordPress
In reply to: Numbered lists changed to bulleted listsLooks like you got it sorted out. The theme’s css was setting the list-style-type.