Hi, I've added a regular text CCK field in content profile and set the "Number of Values" to unlimited. I also expose this field to the registration page. However when trying to "add another item" on the registration page I get the following error in a popup:

An HTTP error 403 occurred.
/content/js_add_more/profile/field_ywam_history

Could this be because the javascript file is not included while registering a new account?

Regards,

Marius

Comments

fago’s picture

Status: Active » Postponed (maintainer needs more info)

Could you try again with the latest dev-snapshot? It should work with it.

mariusooms’s picture

Version: 6.x-1.0-beta2 » 6.x-1.x-dev

I just tried with the latest dev, but I still experience the same problem. I could circumvent this issue with a different approach, but someone else might need this functionality too.

Regards,

Marius

fago’s picture

Probably your anonymous users don't have the "access content" permission? Try granting the permission to them, then it should work.

mariusooms’s picture

That's makes complete sense and indeed I did have access content turned off for anonymous users. However after enabling the permission, anonymous users receive the following fatal error upon entering the registration screen:

Fatal error: Unsupported operand types in /home/.author/user/www.mysite.com/modules/content_profile/modules/content_profile_registration.module on line 25

Looking at the code I saw this used as operant "+=", I figured it must be "=". After changing it to that I receive the following warning:

warning: Invalid argument supplied for foreach() in /home/.author/ywamnation/dev.ywamnation.com/modules/content_profile/modules/content_profile_registration.module on line 26.
fago’s picture

Status: Postponed (maintainer needs more info) » Fixed

You have the integration turned on for a field without cck fields. Make sure to have a cck field for each content profile type. if not - create on, disable it, delete the field.

jgraham’s picture

Component: Base module » User registration module
Status: Fixed » Active

reopening as this needs to be resolved properly.

jgraham’s picture

Status: Active » Fixed

Could not reproduce. Please open if problem persists.

mariusooms’s picture

Title: Number of Values: Unlimited » Add fields during registration + Deselect all fields in settings
Status: Fixed » Active

Yes...it works, thanks for sorting my mess. I have another question regarding deselecting all fields, but I'll open a different ticket for that.

Regards,

Marius

mariusooms’s picture

Title: Add fields during registration + Deselect all fields in settings » Add fields during registration
Status: Active » Closed (fixed)

Closing this as this issue is fixed.