Eric Mann
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Parse error: syntax errorFirstly, you should never, never, never make edits to a live theme in a production environment for this very reason. Typos and errors can break your site!
To fix it, you’ll need to log in to your site via FTP. Then rename the theme folder (
/wp-content/themes/twentyten/) to something else (maybe “twentyten-2”). Then try to visit your site again.Renaming the folder will automatically disable the theme and throw a very minimal default theme on your site. But this means it won’t be broken any more.
Now, either un-do whatever changes you made and rename the folder again, or download a fresh copy of Twenty Ten and place it on your site.
Forum: Plugins
In reply to: [JS Banner Rotate] [Plugin: JS Banner Rotate] Actual Code AssistanceThe image references need to be absolute paths – meaning they need to start with http:// and include the site. So the
/wp-content/themes...section is what’s causing it to break.Forum: Plugins
In reply to: [JS Banner Rotate] [Plugin: JS Banner Rotate] Actual Code Assistance@rhassall – I don’t see this installed anywhere on the site you mentioned (windedbowhinter.com). Have you removed the plug-in already?
Also, where did you attempt to place the [jsbrotate /] shortcode? This is meant to be used in the content of a post or page (as are all shortcodes). If you tried to use this outside of that area, the shortcode would not be parsed into a rotating banner.
If you need to use it in a theme, use native PHP functions instead:
<?php jsbrotate('images=...'); ?>This will create the same kind of display and requires the same kind of input (as per the instructions in readme.txt).
Forum: Requests and Feedback
In reply to: Remove Revisions Easter Egg.@ianatkins – I ran into the same problem with a client. I took some time to write a quick patch to prevent this from happening with my needier clients in the future:
function prevent_matrix_easter_egg() { $left = empty( $_POST['left'] ) ? ( empty( $_GET['left'] ) ? '' : $_GET['left'] ) : $_POST['left']; $right = empty( $_POST['right'] ) ? ( empty( $_GET['right'] ) ? '' : $_GET['right'] ) : $_POST['right']; if($left == $right) { $redirect = get_edit_post_link( $left ); wp_die("Error: Cannot compare a revision to itself.<br /><a href=\"" . $redirect . "\">Go Back</a>"); } } add_action('admin_action_diff', 'prevent_matrix_easter_egg');This will override the Matrix message and instead present a standard WordPress “you can’t do that” error. It might not be the best way to do it, but it works for now. In the mean time, I’m running a quick contest on WordPress Answers to see if anyone can come up with a more elegant solution.
This particular site is on a shared host at 1and1. But I think the client has added some additional server tools (the tools are incompatible with PHP5 and the sole reason I can’t upgrade the server) … I’m thinking those might be the culprits. Let me check on which tools/extensions they are and get back to you.
My guess is that this could be an isolated incident with this particular server because I haven’t run into this problem anywhere else. For reference, I tested everything on a stock installation of TwentyTen and disabled all plug-ins but AIOSEOP after I identified it as the one that was breaking … the server 500 errors remained.
Forum: Networking WordPress
In reply to: How to Map a Domain with subdirectory to a Multi-site NetworkGreat post … but it’s very long and the forum formatting doesn’t help for readability. I’d recommend posting this as a tutorial on your own site (it will help drive traffic if nothing else) and/or submitting it as a Codex article.
Forum: Plugins
In reply to: [JS Banner Rotate] [Plugin: JS Banner Rotate] Javascript ErrorsFYI If you’re reporting hearsay errors, please link to the original source! Stating that a plug-in doesn’t work in IE followed by a clear statement that you can’t even use IE makes it incredibly difficult for developers to track down the problem. It also means that you, personally, aren’t facing the issue in the first place.
So my question to you is this: is the widget working for you or not? If it’s working, then please close this thread as “resolved.” If it’s not, please let me know what error you are receiving so I can fix it.
I just tested the site you linked to in IE. The page with the picture frame throws no errors in IE at all. The
document.getElementByID(...)' is null or not an objecterror shows up on other pages (i.e. those without the rotating banner) but the error itself only stops the banner script from functioning, not the rest of the site.So yes there is a bug, but the bug does not impede the operation of the site in any browser. I’ll add a filter to the plug-in to only include the script on pages that have the
#jsbannerselement on the page to the next version.Forum: Plugins
In reply to: [JS Banner Rotate] [Plugin: JS Banner Rotate] Javascript ErrorsCan you give me more details about when and where you’re seeing this error? Is it on every page? Does the banner rotator still work despite the error? Have you made any changes to the plug-in code? Can you provide a link to your site so I can see the error in the field?
@ganesh72 Can you both post the actual shortcode you’re using and a link to your site here so I can see what you’re doing and try to diagnose the problem?
Copying my example from the readme doesn’t show what else is going on with your site … there could be conflicting code, a typo, or some other issue with your actual images causing the problem. I can’t tell unless I can a) see the code you’re trying to use and b) see the output generated by the plug-in.
Forum: Fixing WordPress
In reply to: Add New Post Takes Forever to Loan (500 Internal Server Error)“Plugins: All Active”
… which plug-ins are active? How many are you using? There might be a plug-in that’s adding unnecessary code before the add new post screen loads … if you can give us a list of your active plug-ins we might be able to narrow it down. Otherwise, I suggest deactivating all of your plug-ins and re-activating them one at a time to find out which one is causing the delay.
Forum: Everything else WordPress
In reply to: Does anyone on here know howt to use the plug-in browser?Here’s the deal … just about any code you want to add to your site can be added with a plug-in. The difference is between plug-ins that add a lot of unnecessary features and ones that do just what you want them to do. I have one plug-in on my site that adds 12 different admin screens and syndicates content with 2 other sites – but I also have one plug-in that just adds a “You’ve published XX,XXX words” tag on my dashboard.
So, I’m going to go out on a limb and say it looks like you’ve had a bad experience with plug-ins … but at the same time you’re not going to find a developer/coder/professional on these forums who will recommend anything but. Even if they can give you a good script to count visits to your site, they’ll still recommend you drop the code into your site as a plug-in.
Forum: Plugins
In reply to: Where can I find a good hit counter?I would recommend using Google Analytics. It will track unique visits, total visits, and show you statistical summaries by page, by search keyword, and even break things up by geographical region. You can either install the code yourself, or use one of the many plug-ins available that integrate well with Google.
Then, to keep it from tracking visits you make, I recommend you hide your PC from Google. You can edit your Windows hosts file to make your browser invisible to Google Analytics … then you won’t have any extra traffic in your stats from your own visits.
A good alternative method to this is to use the Stats plug-in from Automattic. It provides great statistics about your site and also won’t track your own visits to the blog (without the need to edit your hosts file).
I use both methods I outlined above, and they work incredibly well.
You can’t set a different link and title parameter for each image, period. The link and title parameters are for the entire banner element, not for individual images.
The next version release will allow you to set individual titles and links, though.
Forum: Fixing WordPress
In reply to: WP HTTP Error: Couldn't resolve host+1 to Andrew’s suggestion.