admin gets an "Call to undefined function ckeditor_user_customize_form_validate()" error when submitting a form of fields in profile2.

otherwise, everything works just perfect for regular users, error occurs only on uid=1.

Comments

dczepierga’s picture

Status: Active » Postponed (maintainer needs more info)

Do u try do this with last DEV version? We fix problem with this function before... I try to reproduce this but for me everything works fine...

Greetings

kirillsmile’s picture

yep, i'm using WYSIWYG HTML editor 7.x-1.x-dev (2011-Mar-31) and Profile 2 7.x-1.0-beta2 (2011-Mar-21)

interestiong thing is error occurs only on admin account.

floleft’s picture

I posted this issue last week (http://drupal.org/node/1109366). The latest dev (March 31) fixed the issue for the day I applied the fix, but the issue is now rearing it's ugly head once again. I haven't touched the module since testing the dev version. I searched this issue just now and found this post. I logged into the site using a non UID 1/God account and all updates are working fine. So it looks like this issue is confined to that UID 1.

kirillsmile’s picture

i realy don't understand your reply, camrade floleft.

look, there is no problem to reproduce that bug: i've installed d7 with common core modules + profile2 + ckeditor on locale (denwer).
later, i've made a new profile with some textfields + logngtext field.

and after sumbit(uid=1 offcourse) i get the same shit error:
Call to undefined function ckeditor_user_customize_form_validate() on uid=1.

so, you can make same experiment on your own computer.

looks like there is a bug in form validation under admin user and this bug isn't solved yet.

mkesicki’s picture

Status: Postponed (maintainer needs more info) » Needs work
floleft’s picture

I believe you misinterpreted what I wrote kirillsmile. I stated that I had this problem last week, and the dev version seemed to fix it at the time. But it's now an error once again (not fixed), and the error is bypassed if updating profiles using any other user besides UID 1. So, yes it is an error. I didn't want to post a separate bug issue, because this is the same bug I'm still having. I posted my previous bug post to help in the debugging process.

weboide’s picture

I am also getting this error, but I do not use profile2. (ckeditor 7.x-1.x-dev as of April 7th)
Enabled modules: ctools, og, features, filepicker, imagepicker, strongarm, entity, diff
Using another user does not work either.

weboide’s picture

Looking at http://drupal.org/node/542202#files the files[] variable in .info file seems to only work for classes and interfaces, but not regular functions... includes/ckeditor.user.inc might not get included.

I added this to ckeditor.module and everything works.

require_once('includes/ckeditor.user.inc');
dczepierga’s picture

Status: Needs work » Needs review

Ok, so i add this fix and commit to GIT. Thx for help @weboide.

Pls check last DEV version and report me does it help, because i still cannot reproduce this :)

Greetings

kirillsmile’s picture

well, great work! this helps.

dczepierga’s picture

Status: Needs review » Fixed

Ok so i mark it as fixed.

Greetings

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.