Mark
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: kStats Reloaded] Fatal Error warningThis would be the second time I’ve done this now – I’m too used to not checking version requirements of certain functionality as I’m used to having the latest versions always installed.
I did this a few versions back with htmlentities() as well (double encode was only added in 5.2.3). I’ll add it to my todo list of things to fix in the next release!
Forum: Plugins
In reply to: [Plugin: kStats Reloaded] warning error on latest version0.6.9 is out tonight, which includes this bug fix amongst others. Thank you for bringing it to my attention!
Forum: Plugins
In reply to: [Plugin: kStats Reloaded] New Version MySQL ErrorWhat’s odd about that is the fact that if kStats doesn’t find a valid IP in HTTP_CLIENT_IP or after filtering HTTP_X_FORWARDED_FOR it falls back on REMOTE_ADDR. In so far as I know, it’s impossible for REMOTE_ADDR to be empty as it’s set on the server and the server needs to know the REMOTE_ADDR in order to send any data.
Would you be willing to help me debug this? I will of course attempt to locally but since I’m not seeing the same occurrence it’s a little harder. If you would, please drop me a line through the contact form on my blog (author homepage or plugin homepage link on the repository) and I’ll email you back with some instructions.
When all is said and done we can post back here with our findings?
Forum: Plugins
In reply to: [Plugin: kStats Reloaded] warning error on latest versionWhile I thought there shouldn’t be any empty strings spit out by the ignore list, I should have added a check to make sure either way.
I’ll add this to the bugfix list for the next release (due out today), but if you want to get rid of the warning produced, the following should fix it. Open lib/functions.php and go to line 117, it will look like (with the lines on either side for clarity);
foreach ( $kstats->config['ignore']['ignore_list'] as $ignore ) if ( strpos( $ip, $ignore ) !== FALSE ) return TRUE;Change the if statement to the following;
if ( ! empty( $ignore ) && strpos( $ip, $ignore ) !== FALSE )I normally run with WP_DEBUG set to on for a couple days before release, but in this case I had turned it off since MU itself has been producing more warnings than my plugin was. My fault for not running it on before tagging that release though, sorry.
Forum: Plugins
In reply to: [Plugin: kStats Reloaded] New Version MySQL Error@wasee,
Every few seconds? How many times total has it happened?There should be no possible way for a hit to occur that doesn’t have an IP address attached to it, and kStats looks for this address in HTTP_CLIENT_IP, HTTP_X_FORWARDED_FOR (filtered for local loopbacks) and failing finding it there will use REMOTE_ADDR.
If it keeps occurring or anybody else sees it I would almost be interested in turning off NOT NULL for that column just to see what other kind of data is being recorded for those hits.
Forum: Plugins
In reply to: Built in plugin management and removing idle scriptsI just stumbled across a couple of things that I think are good resources as far as this topic of conversation goes.
The first is on Ozh blog (how came I haven’t been subscribed there until now? geebus), and is a little more in depth on the code you posted: http://planetozh.com/blog/my-projects/wordpress-hooks-filter-flow/
It’s oldddddd, but it still does the trick, I ran it on a local copy with absolutely no quirks. This, and what you wrote, proves my assumption that there was probably a way to retrieve this list easily enough.
The second, relating more to what you’ve been mentioning, was just recently posted on WordPress Tavern: http://www.wptavern.com/is-a-plugin-validation-team-a-pipe-dream
Definitely worth checking out if anybody is out there looking at this thread.
Forum: Plugins
In reply to: Built in plugin management and removing idle scriptsI think that it would be just as frustrating to build such functionality into the core without changing the plugins api drastically.
I don’t know, it’s all being queued right, so the ‘list’ is already in there, it’s just a matter of when each part will fire. I guess I was picturing a thin layer where you could intercept everything in the list and rearrange it or remove it.
I’m still familiarizing myself with the codebase as I go, she’s no small task. I definitely agree edumacation is the way to go, but if you think about it, there’s a lot of resources out there to learn from already. Books, blogs, big wooden sticks that you can hit people with. Despite all that, it’s still happening.
What I’m picturing might not be the right method, but it would be convenient to have a more focused approach. Unhooking everything and writing new functions to overlay the old is tedious at best.
Forum: Plugins
In reply to: get_cat_id is returning false, but how?Thanks guys, but I’m not new to PHP. 🙂 PHP variables and member properties are case sensitive, functions are not. That is why the following code;
function test () { echo 'test'; } function Test () { echo 'Test'; }Will return; Fatal error: Cannot redeclare test() (previously declared in ***.php:1) in ***.php on line 3
So not the issue, though I’ll make sure I double check my semantics in the future. In the meantime I’ve discovered using get_cat_ID was pointless anyways as inside of the foreach loop I had access to $category->cat_ID.
Nonetheless I still get some odd business with get_cat_ID() – I turned on paging for my custom loop, and for some reason previous_posts_link() was working but next_posts_link() wasn’t. So I took the body of my function which created and displayed the custom loop, and placed it directly in the page just to see if there was a global missing somewhere. Upon doing so, get_cat_ID failed again, this time for gawd knows what reason.
Not sure, but I think I’ll start by looking at the functions body itself.
Forum: Fixing WordPress
In reply to: Import only imports 100 posts??Resolved – @andrea_r suggested cutting the file in half, and importing twice which did the trick.
Forum: Plugins
In reply to: [plugin: Contact Form 7 2.0] Upgrade fails?What version of WordPress are you both running? Worked flawlessly for me the second time when I deactivated the original plugin.
Forum: Plugins
In reply to: [plugin: Contact Form 7 2.0] Upgrade fails?@harrism wayyyy ahead of ya haha, I reinstalled the old version immediately following this discovery. I don’t like having broken plugins running on my sites if I can help it.
@takayukister that makes sense, I’ll run a backup of my database first, then give the update another try and let everybody here know how it goes!
…seemed to work just fine, didn’t lose my forms, which makes me happy. I do have one question for you though @takayukister, why did you move it to it’s own menu page when there really seems to be no difference between it and the ‘edit’ submenu option? I moved it back to Tools so that it’s still easy to find but nice and tucked away when not in use. 🙂
Forum: Plugins
In reply to: Best way to dynamically load with WordPressThat’s a snazzy solution, but still doesn’t seem to work with add_shortcode().
function init_codex () { if (is_page('theme-codex')) { include (TEMPLATEPATH.'/lib/codex/theme/theme_codex.php'); add_shortcode('theme_codex', array($kats_theme_codex, 'shortcode_func')); } }I even tried this function as a plugin, and no go there either. It won’t parse the shortcode if it’s added this way.
Looks like you can’t use the built in functions to do this, which is okay. The alternate solution is fairly eloquent in it’s simplicity though I suppose;
if (strpos($_SERVER['REQUEST_URI'], 'theme-codex')) { include (TEMPLATEPATH.'/lib/codex/theme/theme_codex.php'); add_shortcode('theme_codex', array($kats_theme_codex, 'shortcode_func')); }Which seems to work just fine. 🙂
Forum: Plugins
In reply to: Best way to dynamically load with WordPressYeah the problem seems to be that while the conditional functions are available from within functions.php they can’t seem to figure out what page is being loaded and therefore ultimately return false.
At what stage is functions.php being loaded that it’s unaware of what page we’re actually on?
Forum: Plugins
In reply to: WordPress Shopping Cart other than wp e-commerce?Everybody really needs to stop getting retaliatory when somebody offends their plugin. If you release something into the widespread community, no matter how fantastic it is, it will get some poor feedback. I’m sure there’s places where people hate WordPress itself, maybe even posted on these forums, but I doubt you’ll see Matt come in here and tell them they’re being ridiculous.
Take the bad with the good, and grow with it, or at least roll with it. 😉
</soapbox>Honestly, some of us are just plain frustrated and speaking for myself only, I’m still frustrated, but dealing with it better now. 🙂
Forum: Fixing WordPress
In reply to: Moving wordpress causing a memory error?Hmm, the problem seems to be wp ecommerce (shocker)… After removing the plugin directory for it, everything popped back to life.