Skip to Content Skip to Menu

getField() function not working as expected

11 years 4 months ago #228612 by robemenecker
getField() function not working as expected was created by robemenecker
Hi,

I have a custom web-form (writing to database) that I am working on for a client running Joomla 1.5.26 (yes, out of date) with CB 1.2.3.

I am able to establish a connection to the CB API with the code provided in the Tutorials on the site. However, when I call the getField function it throws the following error at me:

Fatal error: Class 'cbTabs' not found in /home/naaccc/public_html/administrator/components/com_comprofiler/plugin.foundation.php on line 939

Here is the line of code that is precipitating the above error:
Code:
$field = $cb_user->getField('name');

It happens regardless of using a predefined field or a custom field. I am actually trying to get the value of a custom field ('cb_committees').

Any thoughts/ideas?

Full code is attached.


File Attachment:

File Name: cb-getfield-fail.txt
File Size:1 KB
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum