Scriptrunner (Doug Sparling)
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 403 Forbidden Error nginx appears on HeaderYou’re using a premium theme and plugin, so I’m afraid there’s not much we can do here as these support forums are for WordPress.org plugins/themes (GPL). My only advice would be to try the Ninja Popups with a default WordPress theme (like Twentythirteen or Twentytwelve) and seek support from the respective theme and plugin authors.
Forum: Fixing WordPress
In reply to: How to pull Title and content of a post in a different pageIf you know the ID of the post, you can just call this in page.php (or whatever template you’re using for your page):
<?php $id = 78; $my_post = get_post( $id ); echo $my_post->post_title; echo "<br />"; echo $my_post->post_content; ?>I’m guessing you only want to add this to a single page, so you might want to create a separate template specifically for this page, or check for the page ID in the page template.
Forum: Fixing WordPress
In reply to: URL Redirect / .htaccess / subdomain / maintenance page madnessI did a quick test and it worked for me…best of luck!
Forum: Fixing WordPress
In reply to: Wp-configThe username and password for what? wp-config.php contains the username and password for your database. What ever is in wp-config will have to match your database credentials (or at least one of theme, usually it’s best to have a separate database login for your web app). If you are indeed updating the username and password for your database, you’d update that most likely in cPanel that your web host provides. (I’m assuming that, since you mentioned control panel)
Forum: Fixing WordPress
In reply to: URL Redirect / .htaccess / subdomain / maintenance page madnessOK, I’m not at a place where I can test this, but this should do what you want. Just replace the remote host IP with yours (and yes, you’d need a static IP).
Options +FollowSymlinks RewriteEngine on #ip to allow access RewriteCond %{REMOTE_HOST} !^11\.11\.11\.11$ #send to root RewriteRule .? http://www.oldsite.com [R=302,L]Forum: Fixing WordPress
In reply to: Formatting.php errorIf you do have DEBUG set to true, then setting it to false is about all you need to do. Unfortunately, a lot of plugins will display warnings if DEBUG mode is set to true. This is different from an error (or at least a fatal error). For security reasons, it’s best to never run a production site with DEBUG set to true. Good luck!
Forum: Fixing WordPress
In reply to: URL Redirect / .htaccess / subdomain / maintenance page madnessTwo things come to mind…
1) Why would users ever visit newsite.com?
2) You could do the redirect only if it’s not from your IP (basically, whitelist yourself).
Forum: Fixing WordPress
In reply to: Formatting.php errorWarning: strlen() expects parameter 1 to be string, object given in /home/content/60/10837160/html/ugometrics/web/wp-includes/formatting.php on line 1820
This is a warning, not a fatal error. This also suggests that you are probably running your production site with DEBUG set to true.
One thing you’ll want to do if that’s the case is change
define('WP_DEBUG', true);to
define('WP_DEBUG', false);in
wp-config.php.Next item, it only appears to be happening to a single user’s comments, so you might look in the wp_comments table and see if there’s something odd about his record. The warning is saying that WordPress expects
$emailto be a string and it isn’t.Finally (or firstly), you should try temporarily deactivating all plugins and changing to a default WordPress theme like TwentyThirteen to see if the problem persists (the Safe Mode plugin is handy for that if you don’t want to do it manually).
I installed the “dinky” theme on a vanilla WordPress 3.6.1 install and I’m not seeing that the function that the code you posted is in is even being called, which makes me wonder if a plugin or theme is involved.
Forum: Fixing WordPress
In reply to: My RSS Feed looks damaged – how do i repair it?If you’re interested, I’ve posted the fix on the plugin author’s support forum:
http://wordpress.org/support/topic/footer-html-added-to-feed-with-207The author also has a dev version of the plugin on Github, and I had no issues with the feed using that version.
Forum: Fixing WordPress
In reply to: My RSS Feed looks damaged – how do i repair it?I was able to duplicate it, and the plugin causing the problem in my case is:
WP Facebook Open Graph protocol
FYI – WordPress caches feeds for 1 hour, so you may need to update a post to have it refresh your feed.
Later today I’m going to dig through the plugin and see why it’s causing the issue.
Let me know if deactivating that plugin does or does not fix your feed.
Forum: Fixing WordPress
In reply to: Tables,graphs, and charts.OK, not WordPress related, but take a look at Google Charts.
Forum: Fixing WordPress
In reply to: Building tag URLs with an "and/or"Take a look at this Codex page:
Function Reference/query posts
One example on that page may get you started:
query_posts( 'cat=1&tag=apples+oranges' );though you may not need the category id…
Forum: Fixing WordPress
In reply to: Site admin not loadingHard to say. Anyway you can see the web server error logs? (if you have a cPanel or something similar) The cause of the problem should be logged there.
Forum: Fixing WordPress
In reply to: My RSS Feed looks damaged – how do i repair it?Every time someone’s RSS feed breaks, it’s always because of additional content added to the feed. In the cases that I have been able to track it down, it was always because of a plugin.
I see this at the top of your feed:
<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-27424618-1']); _gaq.push(['_setDomainName', 'knolzone.com']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <!-- Woo Tabs Widget --> <script type="text/javascript">jQuery(document).ready(function(){var a="#tagcloud";var b=jQuery("#tagcloud").height();jQuery(".inside ul li:last-child").css("border-bottom","0px");jQuery(".wooTabs").each(function(){jQuery(this).children("li").children("a:first").addClass("selected")});jQuery(".inside > *").hide();jQuery(".inside > *:first-child").show();jQuery(".wooTabs li a").click(function(a){var b=jQuery(this).attr("href");jQuery(this).parent().parent().children("li").children("a").removeClass("selected");jQuery(this).addClass("selected");jQuery(this).parent().parent().parent().children(".inside").children("*").hide();jQuery(".inside "+b).fadeIn(500);a.preventDefault()})})</script> <!--wp_footer-->so something is adding footer html to your feed xml.
You’ve already indicated the disabling all plugins fixes this, and as I said, I’ve always found the cause to be plugin. (though in theory, it could be a theme – you might try switching to default theme like TwentyThirteen to see if anything changes)
I’d really like to be able to duplicate this. Could you post a list of all the plugins you are using?
Forum: Fixing WordPress
In reply to: My RSS Feed looks damaged – how do i repair it?That said, I don’t think that’s the only problem (but give it a shot). If you do find a specific plugin causing this issue, please post what you find here.