Hello,
I installed addresses 6.1.10 and I created fields on my profile content type.
The problem si that whenever I go into the page for changing values, i obtain these errors:

warning: Illegal offset type in /var/www/vhosts/spazioausili.net/httpdocs/includes/form.inc on line 1377.
warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/spazioausili.net/httpdocs/includes/bootstrap.inc on line 859.

Anyway all data is saved properly.
I had the problem that each time I select a country, it save always "tonga!" But I installed 6.1.xdev, run update.php and now the country is Italy. :-)
But the 2/3 error message remain.
Have you any ideas about it?
And since the module run ok, althought the error, can I hide them to the users?

Comments

AlexisWilke’s picture

Hi drein,

I don't recall having that error (So far).

The country had a problem in 1.10, indeed... I guess I should create a 1.11 so some of the bugs get removed. There is still one or two problems I wanted to fix though.

This being said, to hide the errors from end users go to "Admin » Site Configuration » Error Reporting".

When is this happening? Is it at the time you save? Are you using a CCK field?

One of the error is calling check_plain() with an array so I would suspect CCK sending a parent object instead of the child as required. (this means it may not be displayed properly? have you tried to Reload that page and see whether you get the error again?)

Thank you.
Alexis

drein’s picture

Status: Active » Closed (fixed)

Hello,
I set an address field to "required" and all errors are disappeared.
Yes, I'm using lots of cck fields in the form and the error occ
urred when I saved it.
Anyway, this problem seems to be solved, so I'm going close this issue.
Thank you for your help.

AlexisWilke’s picture

Issue tags: +CCK

tagging

AlexisWilke’s picture

Title: illegal offset type... » illegal offset type with no CCK field is marked as required...
Component: Code » Code, CCK related
Status: Closed (fixed) » Active

Thinking about it, it's probably not a good thing because marking any one field in a CCK Addresses Field will actually mark that whole CCK field required and some people may not want that. So if that's really a problem, we probably want to fix it at some point. So for now, I'll keep this open.

Thank you.
Alexis

loominade’s picture

subscribe