Title: Scriptrunner (Doug Sparling)'s Replies - page 11 | 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 - 151 through 165 (of 520 total)

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error: Trying to get property of non-object in post-template](https://wordpress.org/support/topic/error-trying-to-get-property-of-non-object-in-post-template/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-trying-to-get-property-of-non-object-in-post-template/#post-4208310)
 * The 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [debug not logging to file](https://wordpress.org/support/topic/debug-not-logging-to-file/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/debug-not-logging-to-file/#post-4217593)
 * It’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:
    - [http://api.wordpress.org/plugins/info/1.0/](http://api.wordpress.org/plugins/info/1.0/)
    - [http://api.wordpress.org/themes/info/1.0/](http://api.wordpress.org/themes/info/1.0/)
 * 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-Encoding
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unexpected Error](https://wordpress.org/support/topic/unexpected-error-9/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/unexpected-error-9/#post-4221562)
 * Cool, glad you got it resolved!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Strict Standards error](https://wordpress.org/support/topic/strict-standards-error-5/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/strict-standards-error-5/#post-4217591)
 * It 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unexpected Error](https://wordpress.org/support/topic/unexpected-error-9/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/unexpected-error-9/#post-4221474)
 * I over simplified the echo bit, but WordPress does call `_default_wp_die_handler()`
   which basically just outputs html.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Subscriber notification emails not going out after 3.6.1 update](https://wordpress.org/support/topic/subscriber-notification-emails-not-going-out-after-361-update/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/subscriber-notification-emails-not-going-out-after-361-update/#post-4221053)
 * I suppose you could try something like [Check Email](http://wordpress.org/plugins/check-email/)
   to send a test email.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Subscriber notification emails not going out after 3.6.1 update](https://wordpress.org/support/topic/subscriber-notification-emails-not-going-out-after-361-update/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/subscriber-notification-emails-not-going-out-after-361-update/#post-4221050)
 * If 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unexpected Error](https://wordpress.org/support/topic/unexpected-error-9/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/unexpected-error-9/#post-4221453)
 * If 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unexpected Error](https://wordpress.org/support/topic/unexpected-error-9/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/unexpected-error-9/#post-4221451)
 * > An 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Subscriber notification emails not going out after 3.6.1 update](https://wordpress.org/support/topic/subscriber-notification-emails-not-going-out-after-361-update/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/subscriber-notification-emails-not-going-out-after-361-update/#post-4221042)
 * Did 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [debug not logging to file](https://wordpress.org/support/topic/debug-not-logging-to-file/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/debug-not-logging-to-file/#post-4217574)
 * > An 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_Error` class
   for error handling, and the message is simply being printed out to the browser
   with an `echo` statement. So there is no actual error that would go to the log.(
   if the code used a `die` statement to stop processing, it might, but in this 
   case it’s nothing more than an `echo` statement displaying the result of the 
   attempt to contact wordpress.org).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Restrict Contributors to only able to edit 1 page](https://wordpress.org/support/topic/restrict-contributors-to-only-able-to-edit-1-page/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/restrict-contributors-to-only-able-to-edit-1-page/#post-4212948)
 * julesthomas – 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Can't upload swf files to wordpress anymore.](https://wordpress.org/support/topic/cant-upload-swf-files-to-wordpress-anymore/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cant-upload-swf-files-to-wordpress-anymore/#post-4173018)
 * 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [debug not logging to file](https://wordpress.org/support/topic/debug-not-logging-to-file/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/debug-not-logging-to-file/#post-4217534)
 * Unless 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Dreamweaver – WordPress: Fatal Error](https://wordpress.org/support/topic/dreamweaver-wordpress-fatal-error/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/dreamweaver-wordpress-fatal-error/#post-4214678)
 * I 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.

Viewing 15 replies - 151 through 165 (of 520 total)

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