Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Black Friday Intro Offer for your subscription's lifetime
🎉 Black Friday sale is here! Great savings on professional and developer memberships! Get 25% off now with code BLACK-FRIDAY-2024!

getField() function not working as expected

11 years 5 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