2:Cannot add field in CB field manager in PHP4.

15 years 10 months ago #64497 by beat
This issue is now fixed in Community Builder 1.2 RC 2.
Community Builder 1.2 RC 2 is a recommended upgrade.




I could just reproduce and track down a bug which got confirmed by several users:

There is a bug on PHP 4 systems:


Symptoms:

- Cannot create a field in backend

- Possibly cannot register or save user in frontend

- CB database checker returns:

There are 1 column(s) missing in the comprofiler table, which are defined as fields (rows in comprofiler_fields):

- Field cb_test - Column cb_test is missing from comprofiler table.

This one can be fixed by deleting and recreating the field(s) using components -> Community Builder -> Field Management.
Please additionally make sure that columns in comprofiler table are not also duplicated in users table.


- Notice: Undefined property: _fieldsCount in comprofiler.class.php on line 3196

- Blank javascript popup in admin area or saving registration/user edit.


Workaround:

is for now is to upgrade your hosting to PHP 5. Then edit/save the fields which are showing error in tools -> cb database check, then recheck CB database. Deleting / re-creating fields should not be needed normally. Fields created in PHP 4 won't work until saved in PHP 5. Do CB->Tools->Check CB datase to make sure all fields are ok.

So if you can't upgrade to PHP 5 (which is a good idea anyway, remember that PHP 4 support completeley ends on 8.8.08 at www.php.net including security patches, and that Joomla and CB run faster with PHP 5): So we really recommend PHP 5, if possible at least PHP 5.2.3, preferably latest. Joomla 1.6 decided for PHP 5.2 as minimum requirement...

We are working on a fix for this PHP4-only bug, and will be replying to this thread when done. So in that case subscribe this thread.

How to check which PHP version your joomla is using:

- Do not trust the information from your hoster.
- Do not trust yourself's last check (it might have changed without notice)
- check today in Help -> System info (Joomla 1.5) or System -> System Info.

Related main discussion-thread:

www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/id,64433/catid,50/

Sorry about that 2nd confirmed unnoticed bug. :blush:

Post edited by: beat, at: 2008/06/04 03:19

Post edited by: beat, at: 2008/06/04 03:20

Post edited by: beat, at: 2008/06/04 14:57

EDIT: added symptom line 3196 to list for another small php4 bug.

Post edited by: beat, at: 2008/06/04 20:31

EDIT: added how to check PHP version + precisions.

Post edited by: beat, at: 2008/06/04 23:44

Post edited by: beat, at: 2008/07/01 14:02

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

15 years 9 months ago #66955 by beat
This issue is now fixed in Community Builder 1.2 RC 2.

Community Builder 1.2 RC 2 is a recommended upgrade.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.160 seconds

Facebook Twitter LinkedIn