Scriptrunner (Doug Sparling)
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Error: Trying to get property of non-object in post-templateThe code you supplied worked for me. (in context of TwentyThirteen theme, to which I added your code to)
I would comment out as much of your theme as possible until it works and then start adding code back in until you get the error.
Maybe someone with more theme creation experience would have other ideas.
Forum: Fixing WordPress
In reply to: debug not logging to fileIt’s possible (and I’m guessing here) that the host blocks all outbound requests and then whitelists certain URLs that they allow. The themes and plugins URLs are different, so it’s possible the host has already whitelisted the plugins url but not the themes url.
The urls being used are:
You can’t call them directly in your browser. (well, you can, but you’ll get an error. The API expects a POST with serialized parameters) But to see if you can connect, you can try something like this (assuming you have cURL):
curl -I http://api.wordpress.org/plugins/info/1.0/and
curl -I http://api.wordpress.org/themes/info/1.0/That will at least tell you if you can make the connection. If you can, you should see output something like this:
HTTP/1.1 200 OK Server: nginx Date: Tue, 15 Oct 2013 14:06:36 GMT Content-Type: text/html; charset=utf-8 Connection: close Vary: Accept-EncodingForum: Fixing WordPress
In reply to: Unexpected ErrorCool, glad you got it resolved!
Forum: Fixing WordPress
In reply to: Strict Standards errorIt should work fine with PHP 5.4, as Strict Standards are only warnings (but ones the plug author should probably take note of). These warnings should only display (with PHP 5.4) if you have WP_DEBUG set to true. As I said, it wasn’t until PHP 5.4 that E_STRICT was added to E_ALL (which WordPress uses for wP_DEBUG), and that’s why you’re seeing it now in PHP 5.4. Basically the output is just saying there’s a better or safer way to do something even though the code is syntactically correct.
Forum: Fixing WordPress
In reply to: Unexpected ErrorI over simplified the echo bit, but WordPress does call
_default_wp_die_handler()which basically just outputs html.Forum: Fixing WordPress
In reply to: Subscriber notification emails not going out after 3.6.1 updateI suppose you could try something like Check Email to send a test email.
Forum: Fixing WordPress
In reply to: Subscriber notification emails not going out after 3.6.1 updateIf you can, deactivate the Jetpack plugin, or for that matter, all plugins and try a default theme like TwentyTweleve or TwentyThirteen.
As far as Qmail, probably the easiest way to find out is to ask your host. And no, unfortunately there’s no upgrade log generated by WordPress.
Forum: Fixing WordPress
In reply to: Unexpected ErrorIf this a case of the host not allowing outbound requests from the server, this will not show in the error log. WordPress handles it with the WP_Error class and simply does an echo to the browser with the error message. I don’t believe it goes into any log. (server error log or WordPress debug log)
Forum: Fixing WordPress
In reply to: Unexpected ErrorAn unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums
This often means that your host is not allowing outbound connections. Sometimes you can turn that on through cPanel. Your host would know.
Forum: Fixing WordPress
In reply to: Subscriber notification emails not going out after 3.6.1 updateDid you upgrade from WordPress 3.6 or something older? There is a bug with the phpmailer library that’s included with WordPress 3.6 and 3.6.1, but it only effects WP on servers using Qmail as their MTA.
Forum: Fixing WordPress
In reply to: debug not logging to fileAn unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.
This error generally means your server cannot make outbound requests. Hosts often disallow this for security reasons. In some cases, if you have cPanel, you can turn this on.
The reason it’s not showing in your debug log is because the particular bit of code used in WordPress core to make the request is using the
WP_Errorclass for error handling, and the message is simply being printed out to the browser with anechostatement. So there is no actual error that would go to the log. (if the code used adiestatement to stop processing, it might, but in this case it’s nothing more than anechostatement displaying the result of the attempt to contact wordpress.org).Forum: Fixing WordPress
In reply to: Restrict Contributors to only able to edit 1 pagejulesthomas – I’ll definitely take a look at other plugins first, as this sure seems like something somebody else might have tackled before. If not, I’ll add it to my “plugin ideas” list.
Forum: Fixing WordPress
In reply to: Can't upload swf files to wordpress anymore.Since this particular topic is resolved, and the question you have is actually quite different from the original topic, please post a new topic for your question. Thanks!
Forum: Fixing WordPress
In reply to: debug not logging to fileUnless you have set WP_DEBUG_DISPLAY to false, then with the code you’ve placed in your wp-config.php should display errors to both the browser and the debug log. If there are no errors showing in your browser (generally at the top of the page), then nothing will be saved to the debug file, nor will it create one until there are some errors being displayed.
Trying to deduce from from you OP what you are trying to achieve. Are you saying you can’t search theme from WordPress.org through your WordPress admin?
Obviously, you do not want to leave your permissions set to 777.
Forum: Fixing WordPress
In reply to: Dreamweaver – WordPress: Fatal ErrorI don’t know anything about Dreamweaver, but from looking at that screenshot I’d have to assume Dreamweaver is not loading in WordPress itself, so when you try to load a template file directly, any WordPress functions (like get_header()) would be undefined.
As I said, I don’t know anything about Dreamweaver. If there’s a way to configure Dreamweaver to load the WordPress environment, then you’ll need to do that first.