Comment on on #127 Invalid argument foreach defaul

15 years 3 months ago #81848 by Oishiku
Wolfcreek wrote

All columns had published/occupied values, but when I unpublished columns 2/3/4, it removed the error. I appreciate the insight, but these are populated values and columns, but when they are published, we are getting the error.

Wolf.


Wolf,

Is it possible that just one of your field values was somehow disabled/unpublished?

I had created a column to store forum rank and # of posts data and all ran well. By the day’s end, I decided I didn’t want those fields on the profile tab so I disabled them. Since these fields were already on a column on the user’s list, I received the error…

Warning: Invalid argument supplied for foreach() in /xxxx/components/com_comprofiler/plugin/templates/default/default.php on line 436


I was pretty grateful when I opened the memberlist config in the backend and received an aleart with an explanation [thank you CB creators!] with options for how to resolve the issue (either re-enable the fields that I had placed on the user’s list, or allow the component to erase them from the list).



So, it clarified for me that as long as a field is called to the user’s list, it cannot be disabled .. as well.. a column need have a field on it if it is enabled.

It may be possible that you don’t have to remove all your columns, Wolf. Perhaps, you just have to make careful review of the status of the fields that are being called for the list.

Please Log in to join the conversation.

15 years 3 months ago #81852 by wolfcreek
I will have a look...thanks for a thought at least.

Wolf.

Please Log in to join the conversation.

15 years 3 months ago #82139 by evnmove
Hi there,

I get the same issue with my website whilst trying to search the users of C.B public front end

Warning: Invalid argument supplied for foreach() in /home/xxxx/public_html/components/com_comprofiler/plugin/templates/default/default.php on line 436

Enabling search to public front end users is one of the main functions of my site and I'm stuck with a non functional search :(


Can anyone suggest a solution?:) I am not verry knowledgable when it comes down to PHP

Here is line 436 on default.php
foreach ( $cellFields as $fieldView ) {

Thanks!
--

Post edited by: evnmove, at: 2008/12/12 11:38

I am the way and the truth and the life. No one comes to the Father except through me.
- Jesus

Please Log in to join the conversation.

15 years 3 months ago #82153 by evnmove
I have solved the issue now with the tools on the new C.B which I have to admint it really useful!

Thanks :)

I am the way and the truth and the life. No one comes to the Father except through me.
- Jesus

Please Log in to join the conversation.

15 years 3 months ago #82466 by qualcuna
I've the same problem: how exactly you have solved that?
:dry:

Please Log in to join the conversation.

15 years 3 months ago #82616 by evnmove
I don't know for sure in your case but in mine it was a mixture of making sure the User group in "User management" was public and I had to use the C.B tools to sync my database for new users. So far the C.B tools have been really useful.

I hope one of these works!

I am the way and the truth and the life. No one comes to the Father except through me.
- Jesus

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.218 seconds

Facebook Twitter LinkedIn