Closed (fixed)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2009 at 19:31 UTC
Updated:
31 Dec 2009 at 11:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
mephir commentedHi. Can you write the relative url, where u got this notices, i cannot find them anywhere ...
If this page is generated by other module, can i please the name of module ?
Comment #2
WorldFallz commentedFor the first one, watchdog says the referrer is admin/content/types, for the other 2 it's admin/build/modules.
Comment #3
wwalc commentedDo you perhaps remember what you were actually doing with the configuration of the CKEditor module?
Is it possible that you have remove the Global Profile, cloned profiles or something like that? I'm having troubles with reproducing it.
I'll try again tomorrow, but if you can give me some hints what were you doing (nothing special?) it could help me a bit. Thanks in advance!
Comment #4
WorldFallz commentedNothing special at all-- the undefined index notices came as soon as i installed the module so I hadn't done anything yet. The undefined offset appears on the home page. One thing to note-- I'm using the dev version of d6 which shows all notices, maybe you're using the official release?
Comment #5
mephir commentedHave you got FCKEditor installed before on this Drupal installation?
Comment #6
wwalc commentedHmm, could you try editing CKEditor profiles and resaving them (including Global Profile)?
Comment #7
WorldFallz commented@mephir: nope, this was a fresh d6 dev install.
@wwalc: tried that also, still getting the undefined offset.
I can't get the undefined index notices to occur again though.
Comment #8
WorldFallz commentedah... if i disable and uninstall the module, when I reenable it i get the undefined index notices-- 2 of each, for a total of 4 all on line 1201.
Comment #9
wwalc commentedVery strange.. I have just downloded 6.x-1.x-dev (2009-Dec-10), installed on a fresh Drupal 6.14 and can't reproduce it (I have also tried uninstalling & installing the module again).
Could you pelase try testing it on a vanilla Drupal installation with just the CKEditor 6.x-1.x-dev module enabled (please redownload the dev module, it has been updated today)?
Comment #10
WorldFallz commentedok, i did that-- the undefined offset at 998 is now gone, but i still get the 4 undefined index errors when the module is first enabled. FYI my host is using 5.2.8.
Comment #11
WorldFallz commentedI have no clue why-- but I've discovered that the 'undefined offset on line 998' notice only appears when the devel module is present and enabled.
Comment #12
mephir commentedI enabled devel module and i couldn't confirmed this, anywhere.
Comment #13
WorldFallz commentedYeah--- this is driving me insane. I have 2 versions of d6 dev installed in the same host-- they only differ by subdomain. On one I get the notice when devel is installed and enabled-- reliably. Turn off devel, the notice goes away. Turn it on, the notice comes back. I've probably done it n100 times.
On the other site I never get the offset notice (just the first 4 'undefined index' notices when the modules is first enabled, then nothing).
I'm absolutely at a loss-- this makes no technical sense whatsoever. Clearly, there has to be something different between the two sites but I can't figure out what it is. When i do, I'll post back.
Comment #14
wwalc commentedCan you PM me link to a dump of CKEditor tables (structure + content) in your database?
Comment #15
WorldFallz commentedLike this?
Comment #16
WorldFallz commentedanother wierd piece of the puzzle... if I set a home page other than 'node' (ie 'node/1' or 'frontpage') the error also vanishes.
Comment #17
wwalc commented@WorldFallz thanks for adding the database dump, I have fixed the problem with undefined index: simple_incl, excl in CVS. Upload the dev version of CKEditor module (should be available after midnight) and this problem should be gone (if it will not disappear instantly, re-save your CKEditor profiles).
I still cannot reproduce this error: notice: Undefined offset: 1 in /home/xxx/public_html/scratch/sites/all/modules/ckeditor/ckeditor.module on line 998.
On what page (url) exactly does this error appear (for example http://example.com/, http://example.com/node/1/edit, http://example.com/drupal/node/1/edit)?
(I don't have to know the exact domain name)
Comment #18
WorldFallz commentedThe exact watchdog entry is:
And it only happens if the default home page (admin/settings/site-information) is set to 'node' (the default).
Comment #19
WorldFallz commentedActually-- i think I get why this notice occurs. It's because of the following line:
On the default front page ('node') there is no $get_q[1] -- i have no idea why you don't receive the error or the best way to fix it, but this works:
Comment #20
WorldFallz commentedAnd here's patch.
Comment #21
wwalc commentedActually you're simply right, in such case there are no extra parameters in $_GET['q'] to find out what's the node type, so we can't do anything more than just checking it with empty() call, to get rid of that E_NOTICE error.
Comment #22
wwalc commentedThanks, fixed in CVS.