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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Front end profiles / forms not working
Pages: [1]

Author Topic: Front end profiles / forms not working  (Read 1827 times)

feaker

  • Guest
Front end profiles / forms not working
January 19, 2008, 10:15:34 pm
My profiles keep erroring out when I use them on my joomla! front end. They work fine when used internally but when I set them up as components in Joomla! they tell me that the profile is not configured correctly.

Here's what I've done so far:

1.  Changed the SMTP passwords and such and emails are being sent when profile information is submitted from within CiviCRM.

2. The civicrm.settings.php file in the Admin>components>com_civicrm folder is set:

 * Joomla! Front-end Component Flag
 * If this configuration file is being used by a Joomla! front-end CiviCRM component
 * instance, set this value to 1.
 */

define( 'CIVICRM_UF_FRONTEND', 0 );

if I change this to:1, I can no longer log into CiviCRM glogal settings.

3. The civicrm.settings.php file in the Components>com_civicrm folder is set:

 * Joomla! Front-end Component Flag
 * If this configuration file is being used by a Joomla! front-end CiviCRM component
 * instance, set this value to 1.
 */

define( 'CIVICRM_UF_FRONTEND', 1 );

- I never changed this manually.

4. I inserted the following into my root>index.php file:

// These lines are needed for proper function of CiviCRM at the frontend
session_name( md5( $mosConfig_live_site . '_frontend' ));
session_start();


// mainframe is an API workhorse, lots of 'core' interaction routines
$mainframe = new mosMainFrame( $database, $option, '.' );
$mainframe->initSession();


At this point I'm at a real loss. If anybody has any ideas please let me know.

You can check the link and test profile for yourself at:
http://feakerspeedback.com/index.php?option=com_civicrm&Itemid=26


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: Front end profiles / forms not working
January 20, 2008, 08:41:44 am

1. ensure that the value of CIVICRM_UF_FRONTEND is set to 0 in Admin>components>com_civicrm folder

2. can you let us know what the values are in the "Used For" profile settings page. Ensure that you have selected "Profile" as one of the "Used For" settings

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

feaker

  • Guest
Re: Front end profiles / forms not working
January 20, 2008, 11:42:34 am
Quote from: Donald Lobo on January 20, 2008, 08:41:44 am

1. ensure that the value of CIVICRM_UF_FRONTEND is set to 0 in Admin>components>com_civicrm folder

2. can you let us know what the values are in the "Used For" profile settings page. Ensure that you have selected "Profile" as one of the "Used For" settings

lobo


1. The value of CIVICRM_UF_FRONTEND is set to 0 in Admin>components>com_civicrm folder.

2. The Values in "Used for" is: "Profile" but I have tried adding "search results" as well but that makes no difference.

thanks for the help we can't wait to get this all up and running!

-feaks
« Last Edit: January 20, 2008, 11:55:26 am by feaker »

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: Front end profiles / forms not working
January 20, 2008, 05:35:27 pm

most likely you did not do step 4 in the right index.php file

I would add an echo and exit() immediately after session_start() to ensure that u r modifying the right index.php file. this seems like a session issue

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Front end profiles / forms not working

This forum was archived on 2017-11-26.