CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Joomla error when using page to create contacts via Profile
Pages: [1]

Author Topic: Joomla error when using page to create contacts via Profile  (Read 1157 times)

mstains1

  • Guest
Joomla error when using page to create contacts via Profile
June 11, 2009, 01:21:46 pm
Hi,

I am using Civicrm with Joomla. I am trying to expose a Profile through a Joomla page to create new contacts. I followed the instructions on: "CRMDOC\Configuring Front-end Profile Listings and Forms in Joomla! Sites.html". The profile is displayed correctly and accepts data, but when I press the Create button I get the following message:

Sorry. A non-recoverable error has occurred.
One of parameters (value: ) is not of the type Integer

Return to home page.

I get the same message with my own custom Profile and with the Supporter Profile that comes with Civicrm. My custom Profile consists of only three fields and does not have Joomla registration (username and password). This is a new instalation with very little set up. I created a new Menu Item and then used the following to add the Profile:

Joomla 1.5 Steps:
Login to Administrator if not already logged in.
Click Menu on top navigation bar and select the menu you want to add the Event link(s) to (for example - mainmenu).
Click New icon (top right).Click CiviCRM link from the Internal Link list.
Enter a Name for the menu item.Complete the remaining fields (Parent Item, Access Level, Published) based on your requirements for this menu item.
In the Parameters-Basic section (upper right):
Choose CiviCRM Task - select Profile Search and Listings OR Profile Create (for new contact input form).
Ignore the Contribution ID field (this is used when creating a menu item for Online Contribution Pages).
Enter the Profile ID using the numeric ID value you noted in the section above.
Do not modify the Reset field value (it should always be 1).
Repeat these steps as needed to add additional Event menu items.

System info as follows:

System Information 
   
PHP Built on:  Windows NT PC2008 6.0 build 6001 
Database Version:  5.1.33-community 
Database Collation:  utf8_general_ci 
PHP Version:  5.2.9 
Web Server:  Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9 
Web Server to PHP interface:  apache2handler 
Joomla! Version:  Joomla! 1.5.11 Production/Stable [ Vea ] 03-June-2009 03:30 GMT 
User Agent:  Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506) 
Civicrm: 2.2.5

Thanks for your Help

Michael

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Joomla error when using page to create contacts via Profile
June 11, 2009, 01:53:07 pm

most likely there is a hostname issue on your site

ensure that both your joomla and civicrm install use the same hostname, i.e. either example.com OR www.example.com

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

mstains1

  • Guest
Re: Joomla error when using page to create contacts via Profile
June 12, 2009, 04:44:39 am
Hi Donald,
thank you for your reply. How can I check the hostnames?
Mike

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Joomla error when using page to create contacts via Profile
June 12, 2009, 06:16:35 am

check the settings file, the hostname is the first part of the url, like: drupal.demo.civicrm.org

lobo


A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

mstains1

  • Guest
Re: Joomla error when using page to create contacts via Profile
June 12, 2009, 08:40:42 am
Hi lobo,

I have checked the settings in:

<joomla_root>/components/com_civicrm/cvcrm.settings.php and <joomla_root>/administrator/components/com_civicrm/cvcrm.settings.php

I am installing on a Windows lap top and my host name is localhost. The site URL is http://localhost/joomla15/. Most of the functionality of Civcrm appears to work, all the graphics are present.

The settings appear to be consistant. Do you know what I should compare them to on the Joomla site?

Thnaks for your help
Mike

mstains1

  • Guest
Re: Joomla error when using page to create contacts via Profile
June 15, 2009, 04:44:17 am
This problem is resolved. I did not configure virtual hosts in the webserver. See "Set up a Windows test server using XAMPP" at http://drupal.org/node/161975.
Mike

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Joomla error when using page to create contacts via Profile

This forum was archived on 2017-11-26.