pha3z
Forum Replies Created
-
Forum: Plugins
In reply to: [Combine CSS] Numerous Undefined ErrorsYou probably haven’t been seeing the NOTICES yourself because you are developing in WordPress Production environment instead of Development environment. To develop in WordPress Development environment with E_ALL error_reporting enabled, you need to add this line to your wp-config.php:
define(‘WP_DEBUG’, true);
That line will cause WordPress to enable ALL errors to be output including NOTICES. Automattic officially recommends using WP_DEBUG when developing for WordPress.
Forum: Plugins
In reply to: [Combine CSS] Numerous Undefined ErrorsI thought I’d add that this problem also exists in Combine JS, which I’ve started using now.
Forum: Plugins
In reply to: [Collapse-O-Matic] Suggested FeatureAha!
I failed at RTFM. Sorry!
Good to know about that feature in Pro though. I will look at that, too!
Forum: Plugins
In reply to: [Collapse-O-Matic] SPAN tags break wpautop if priority is alteredI never even noticed this. Fail @ me.
I still think it’d be worthwhile to change the spans to divs as the default though. Anything better out of the box is almost always worthwhile.
Thanks for the link to the page. I hadn’t been to your site!
Forum: Plugins
In reply to: [Crayon Syntax Highlighter] Adding a button to WP Text TabDisregard this. I finally found some stuff about it on the web. And evidentally Crayon is using an older method by manipulating the DOM through jQuery. They’re saying the correct way to do it is here:
http://wordpress.stackexchange.com/questions/29675/add-quicktag-buttons-to-the-html-editorAlthough, at this particular moment it’s not working for me. 🙁 Not sure what I’m doing wrong yet.
Forum: Plugins
In reply to: [Collapse-O-Matic] SPAN tags break wpautop if priority is alteredYou’re welcome.
1. Thanks for the information about tag=”div”. I didn’t realize I could change that. I’ve got like 30+ expandable elements, but I can change them all with a search and replace. It’ll work!
2. I’m not sure what you’re referring to by page options default tag. Is that a collapse-o-matic feature?
Forum: Plugins
In reply to: [Disable Visual Editor WYSIWYG] Undefined IndexTested. Works great! Thanks!
Forum: Plugins
In reply to: [Disable Visual Editor WYSIWYG] Undefined IndexI leave Notices on for my own sites and development, because I don’t like dirty code. I prefer my sites to notify me when any code I write has improperly handled variables.
Tested it. It’s amazing dude!!!
This is completely bullet-proof!!
Forum: Plugins
In reply to: [Crayon Syntax Highlighter] Undefined property: WP_Query::$postIt appears that the error only shows up on the front page of my site. I don’t have any shortcodes for Crayon on the front page.
Internal pages with Crayon shortcodes work just fine.
Forum: Plugins
In reply to: [Don't Break The Code] How does it work?Meant to indicate I’m using WP 3.5. So that might be the problem?
Forum: Requests and Feedback
In reply to: Bulk Edit – All Should Really Mean AllI suppose that works just fine!
Forum: Hacks
In reply to: Meta Data being corrupted or alteredYes, my code has been setting the value. Good suggestion, though.
The problem wasn’t happening every time I saved. I was trying to explain in my original post that the problem has been seemingly random. It usually doesn’t happen when I save the post. And I haven’t been positive but I thought it was even happening when I was doing other operations on other posts. I couldn’t ever replicate it.
Fortunately, since I made the change to check to see if $_POST is set, the problem seems to be gone now. I still never figured out just exactly what action I was taking that was causing it to change, but it hasn’t happened again (yet).
I’m certain its not the meta box default value because that is properly setting and representing the current database value. But thanks for the suggestion on something to look into!
—————————————————————
I’m considering this issue as resolved. I should have marked it resolved before. I’ll do it now.Forum: Hacks
In reply to: Meta Data being corrupted or alteredThat is an extremely good point. But that’s definitely not the problem. Its a very unique name.
I actually think I’ve solved the problem, but I’m not positive since I never did manage to figure out how to replicate it. I ended up adding some conditional logic before the UPDATE occurs. The logic checks to see if the $_POST value is set before doing anything. Obviously, it would have been smart to have that there before, but it appears it wasn’t. I think what was happening is that the save_meta_data function was getting called from certain actions on the site wherein the POST data wasn’t present since it wasn’t in the standard page update/publish method I’d expect. Since the value was not set, PHP was just tripping over it and storing a null or zero value.
The thing that turned me onto this possible cause was that I did a Bulk Edit operation on all the pages on the site, and I discovered that Bulk Edit causes all the save_meta_data functions I created to trigger because they are tied to the post update action. Obviously when you do a Bulk Edit, all those POST vars you might expect aren’t there. I saw a PHP NOTICE about an unset index for POST, and that’s what tipped me off.
– Jim
Forum: Plugins
In reply to: [WP Widget Cache] Undefined IndicesThere are more than just those showing up on other pages:
Notice: Undefined index: vwidget-3 in /themename/wp-content/plugins/wp-widget-cache/widget-cache.php on line 509