Closed (fixed)
Project:
Table of Contents
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jun 2008 at 15:32 UTC
Updated:
10 Jan 2010 at 07:05 UTC
Jump to comment: Most recent file
Comments
Comment #1
deviantintegral commentedIt looks like you missed actually attaching the patch.
--Andrew
Comment #2
eMPee584 commented:O
DOH!!! i swear i attached it *g
here it is though..
Comment #3
deviantintegral commentedCan you paste the tableofcontents string which is causing this error? I'm wondering if this should be caught instead on the node submit.
--Andrew
Comment #4
eMPee584 commentedwell that's the point, there is not tableofcontents stuff anywhere, that's why the results array from preg_match_all is empty!
Comment #5
eMPee584 commentedplease, query your watchdog table for php errors:
SELECT * FROM `watchdog` WHERE `variables` REGEXP 'tableofcontents'i had *a lot* of them on my site...
Comment #6
deviantintegral commentedAnyone else having errors like this? I haven't been able to replicate this on any of my installs across a variety of PHP versions and OS's. Obviously the patch is simple, but I just want to be sure that it actually fixes the issue.
--Andrew
Comment #7
deviantintegral commentedI'm marking this as won't fix as I can't replicate it myself, and there hasn't been any other reports of the same error. If this error re-appears, please re-open this issue.
--Andrew
Comment #8
eMPee584 commented??????
Superb code verification method. If not more than one guy who doesn't know sh*t about drupal complains about a bug, there is no bug? ???? Have you even tried and executed the above SQL query?? How trivial is it to understand that, on a page where there is no tableofcontents tag, the preg_match result is EMPTY and accessing it by index ... heck in C this would friggin' seg fault!
Comment #9
deviantintegral commentedPlease keep your flaming off-line. Yelling doesn't get bugs fixed or solutions created.
I don't have any errors in my watchdog database. I'm not disputing that the patch works for you, and that's great, but try running the following on your server in interactive mode with php -a:
None of my machines throw any warnings or errors. If your server does, please post the output of php -v.
--Andrew
Comment #10
eMPee584 commentedyeah well, add
error_reporting(E_ALL);at the top.(This function produces an error on *every single filtered string* that does not contain the TOC tag, you can do the maths how many php errors it has put in logs all over the world...)
Comment #11
deviantintegral commentedAwesome - I was able to replicate the error. I've committed the patch to both the D5 and the D6 versions.
Thanks,
--Andrew
Comment #12
eMPee584 commentedAwesome - you took only three months to take me serious!
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #14
summit commentedBookmarking, have same sort of problem with other module, still investigating.. greetings, Martijn
Comment #15
AlexisWilke commentedSummit,
D5 or D6?
Thank you.
Alexis