scribblerguy
Forum Replies Created
-
Forum: Alpha/Beta/RC
In reply to: Please slow down new versions…….I really hate that feature upgrades are tied in with security upgrades.
They’re not. You just have to choose the right version.
From: wordpress.org/download/legacy/ — Legacy 2.0 Branch
In keeping with the stable/testing release philosophy of Debian we have committed to maintaining our 2.0 branch with security and critical fixes until 2010. (Yes that’s 5 years after it was originally released in 2005.)
* * *
But I keep hoping…
Don’t just “keep hoping.” Act. — Where there’s demand, there’s a business opportunity (or at least a mini open source project).
Forum: Requests and Feedback
In reply to: WMD: The Wysiwym Markdown EditorIf something works for you, that’s great. Now, whether some cool new feature is worth the time and effort of integrating into the WordPress core is another matter altogether. Significant changes are discussed and debated (see the Ideas forum).
Alternate editors have been implemented via plugins (see FckEditor for WordPress as an example. It is possible (and I think has been discussed) to allow the option of choosing from multiple editors may be built into WP, but for now, that’s still mostly an idea.
To replicate the basic functionality of that editor:
(1) Turning off the visual editor
(2) add a markdown intepreter plugin: Markdown for WordPress and bbPress
(3) Hack your install’s Quicktags or use a plugin such as AddQuicktagsForum: Fixing WordPress
In reply to: Possibly remove sidebar from a specific page?DootThaLoop: Hi, I need to know is it possible to remove the sidebar/widgets from a specific page. Is there a plugin or something that can do this? Thanks!
All you need is bit of custom code. See the Codex: Conditional Tags
(especially the example on Variable Sidebar Content).* * *
sweetteafilms: I’ve got the opposite problem. My sidebar disappeared on my home page and I need it back. I don’t know how mine disappeared, but it happened when my site was moved to a different server. If anyone has any suggestions, that would be great!
Don’t hijack someone else’s thread.
You’ve got multiple problems: This is from a page.
WordPress database error: [Table ‘ingramlabs_sweetteafilms_wp.wp_comments’ doesn’t exist]
SELECT * FROM wp_comments WHERE comment_post_ID = ’17’ AND comment_approved = ‘1’ ORDER BY comment_dateSo, if you can get into the admin panel, export all your posts and pages, ’cause you may be looking at a complete reinstall. Also, backup your database. References: WordPress Backups, Restoring Your Database From Backups, Importing Content.
In your sidebar, do you have a recent comments widgets? With (apparently) no wp_comments table, that might be the cause of your broken page.
The sidebar issue is secondary to this database error.
Forum: Plugins
In reply to: WordPress and ForumsJust use bbpress!
Forum: Themes and Templates
In reply to: Using an if exists statement with custom fieldsUse the
post_customfield (it’s not documented in the Codex, yet). The following should work for what you want to do (no warranties).<?php if (post_custom('source_url')) { // if the 'source_url' field exists, do this (output the source url) echo post_custom('source_url'); } else { // otherwise, do this (output the post title) the_title(); } ?>This goes a bit beyond the drop-in template tag structure for WP templates. The
<?phpand?>is just a wrapper for PHP instructions, which are what all WP tags and functions are, so those aren’t needed if you’re calling WP template tags inside a larger function or such.Forum: Everything else WordPress
In reply to: How do I Make search results only show data from posts?A quick search of the WP Plugins directory found this plugin: Search Everything.
Forum: Everything else WordPress
In reply to: how to stop spam postsI found this in our wonderful Codex, just by doing a quick search: Combating Comment Spam.
Forum: Fixing WordPress
In reply to: No posts going to 404 page?This is basically an error handling issue (not enough conditional statements). Also, take a look at the Template Hierarchy.
Here’s some Trac tickets related to the issue: 3345 and 1969. The dev team is aware of the issue and a fix is in the works.
Was this just an ‘academic’ question or do you need some sort of work around? (An easy fix would be to create a “placeholder” post with all categories selected.)
Forum: Fixing WordPress
In reply to: 404 error shows all pages’ contentsI should have checked Trac, sooner (my bad). This looks like a WP bug…
If an installation is configured to have the home page set to a static page, with the “Front page” set but the “Posts page” unset, instead of the 404 template showing up when necessary, all pages are loaded and displayed.
(See also #6803)
On my test site (Windows, Apache 2.2.x, PHP 5.2.5), I tried that and I could duplicate your problem. Then, setting the “Posts page” fixed the issue.
You are using a static front page, right? If so, see if setting the “Posts page” to some page fixes the problem. If not, read through the #6539 ticket and try to apply one of the patches.
Forum: Plugins
In reply to: How to allow quotes (“) or ” in post slugsI was looking at WP’s Trac and noticed a ticket that seems to be right on point. See WordPress Trac Ticket #3329. Hope that helps.
Forum: Fixing WordPress
In reply to: 404 error shows all pages’ contentsThere’s also one from get_pages that is asking for all published pages. How can I find where that is being called?
You’ll need to examine the theme’s files and look for any template tags that would query your blog’s database: query_posts, get_posts, maybe a wp_list_pages. Perhaps check to see if you’re using any deprecated functions.
While looking at the source of the 404 results page, I saw this:
In the end I wrote a plugin from scratch to do it for me. It’s not something I’d share as it has a lot of hard coded details applicable only to Booberfish, and it’s incomplete since not all my static pages are under WP control, but I’m pretty happy with it.
Did you deactivate that, too? (Just checking)
Unless someone else can swoop in with another opinion, it looks like reinstalling your WP installation is the next step.
(BTW, you should remove that text document or at least edit query # “[3]”)
Forum: Fixing WordPress
In reply to: 404 error shows all pages’ contentsI tried using wget to request a page that doesn’t exist. It reported a 301 Moved Permanently, then requested the same address with a slash on the end , which returns 200 OK. If I request something with a slash on the end it just says 200 OK.
Unless a theme’s 404.php template contains the proper code, WP will always return a 200 message for the 404 page (see the Codex page on creating a 404 page). And the no-slash redirect to correct ‘slash’ permalink is also normal WP behavior (since 2.3 or so).
I dug around for something along those lines, but nothing turned up. It’s not the .htaccess file, the plugins, or the theme.
So I and others can be sure, please answer the following questions:
1. Have you checked your theme’s folder to make sure the files are in their proper spot and named correctly (including all lower-case letters) — see the Codex page on the Template Hierarchy.
Does this happen after you…
2. …disabled all plugins?
3. …removed all the widgets from your sidebar?
4. …switched to a default theme?If the problem still occurs, then export your site from the Admin panel , back up your database, and backup your site’s files. Then remove all of the old WP files and reinstall WordPress, using your old database.
If the problem still occurs, then create a fresh database for your WP install. If the problem still occurs, then there’s probably a conflict between WP and the server setup of your site (MySQL version, PHP, et cetera).
***
Another debugging option: To see exactly what queries your WP install is doing, add the following two lines to your wp-config file
/* save database queries for debugging */ define('SAVEQUERIES', true);And add this PHP snippet to your theme’s footer:
<?php if (SAVEQUERIES) { global $wpdb; echo '<!--\n'; print_r($wpdb->queries); echo '\n--!>'; } ?>I posted a sample set of queries at the pastebin: http://wordpress.pastebin.ca/1034713. Ignore the queries for options and compare the SELECT statements that query your wp_posts table.
Forum: Fixing WordPress
In reply to: static page that also shows postsdoes the rule that each loop should have its own query only apply when i have the loop of posts first and static content second, or is it a general rule to be applied whenever you have multiple loops?
It’s not a rule per se. It’s just that in almost all uses of multiple loops, the reason for multiple loops is to generate different lists.*
If you’re using a custom loop before the static content’s loop, then you’ll need to save the implicit query for that page (see the example I linked to earlier).
As long as everything “works,” then you should be okay.
*An example of when the same query could be ran for two loops is if the first loop was some sort of page contents listing (the title of the post and an anchor link (#title-of-post) to the second instance of the post, which had the full entry (the content).
Forum: Fixing WordPress
In reply to: feed has invalid formatI was able to get your feed, but it took a while (15-20 seconds). Though, your main site as well as the blog come up fairly quickly, so this seems like something isolated to when WP queries for the feed.
One possible cause is a corrupted database. Take a look at this post on checking for database “overhead” and optimizing the database. Make sure you back up your database.
Also, I manually checked the code of your feed at W3’s validator: http://validator.w3.org/feed/. That validated with no problems and there’s no extra lines at the top, so the feed, once it’s generated, is okay.
Forum: Themes and Templates
In reply to: Working with a theme but I want NO COMMENTSWill this be a totally static site? E.g., all pages, no posts?
If you’re just using pages, check the page.php file in your theme’s folder. See if has a line with
<?php comments_template(); ?>— that instruction includes the comment.php file of your theme.If so, for the one page that you want to have comments, save a copy of page.php as “page-with-comments.php”. Use that file to create a Page Template (read about those in the Codex: Pages). For the original page.php, delete the line of code I mentioned and save the file. I think that’s all you need to do for that template. Then, use the page-with-comments template as the page template for the one page where you want comments.
For the comments feed link in the footer, find the footer.php file in your theme’s folder. There should be something similar to the following:
and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>. Delete that and save your file. That should be everything.