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) »
  • Trouble with profile standalone forms
Pages: [1]

Author Topic: Trouble with profile standalone forms  (Read 1964 times)

jkmuller

  • Guest
Trouble with profile standalone forms
May 27, 2009, 12:37:26 pm
I'm using CiviCRM with Joomla and am having difficulty getting the standalone profile forms to work correctly. They appear to submit and redirect correctly, but no email is sent and nothing is added to the database. You can view the form at http://mira-mo.org/joomla/

Strangely, one form was working briefly yesterday. I cannot think of anything that I would have done to break it. What could have gone wrong, and how can I even diagnose this?

Form code
Code: [Select]
<form action="http://mira-mo.org/joomla/index.php?option=com_civicrm&amp;task=civicrm/profile/edit&amp;gid=3&amp;reset=1&amp;" method="post" name="Edit" id="Edit">
<input name="postURL" type="hidden" value="http://mira-mo.org/joomla/index.php?option=com_content&amp;view=article&amp;id=48" />
<input name="cancelURL" type="hidden" value="index2.php?option=com_civicrm&amp;task=civicrm/profile&amp;reset=1&amp;gid=3" />
<input name="group[3]" type="hidden" value="1" />
<input name="_qf_default" type="hidden" value="Edit:cancel" />
<input name="first_name" type="text" id="first_name" class="textarea" value="First Name"></input>
<input name="last_name" type="text" id="last_name" class="textarea" value="Last Name"></input> <br />
<input name="email-Primary" type="text" id="email-Primary" class="textarea" value="Email"></input><br />
<input type="submit" class="submit" value="" accesskey="S" name="_qf_Edit_next" ></input>
</form>

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Trouble with profile standalone forms
May 27, 2009, 05:45:26 pm
Not sure if this is what's causing the problem, but I noticed you have two instances of the form on your front page (top and bottom). Might try getting rid of one of them and seeing if that helps.

Also, you can test the "built-in" mode for your profile by navigating to:
http://mira-mo.org/joomla/index.php?option=com_civicrm&task=civicrm/profile/edit&gid=3&reset=1

... and seeing if that submits and adds data properly.
Protect your investment in CiviCRM by  becoming a Member!

jkmuller

  • Guest
Re: Trouble with profile standalone forms
May 28, 2009, 09:19:49 am
Thanks for the help Dave!

Very strange, but all the forms work now, built-in and standalone. Perhaps there was some caching issue that just needed to work itself out. I had tried with different browsers as well, though. Any ideas what could have happened?

jkmuller

  • Guest
Re: Trouble with profile standalone forms
June 01, 2009, 11:26:59 am
Unfortunately my standalone forms keep becoming unusable. I can't tell if there's a pattern to when they stop working yet. I have them set to send me an email when they're submitted as well as to add the contact to a group, but neither of those happen sometimes. Then, suddenly, they'll start working again. Is anyone else experiencing this issue? Any ideas as to what could be causing this?

jkmuller

  • Guest
Re: Trouble with profile standalone forms
June 01, 2009, 11:37:39 am
It seems to work once I load the non-standalone version of the form. Would removing the javascript from the standalone form stop it from functioning?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Trouble with profile standalone forms
June 01, 2009, 12:18:22 pm
I don't think removing javascript would cause the POST (form submit) to stop working. Side note - would be good for you to update your forum information to show versions of Civi, Joomla, PHP, MySQL that you're using.

Perhaps check your webserver (apache) logs to see if there are errors from the form submits that don't work - might give some clues.
Protect your investment in CiviCRM by  becoming a Member!

jkmuller

  • Guest
Re: Trouble with profile standalone forms
June 02, 2009, 03:31:30 pm
Thanks for the assistance Dave. I've updated my profile with my settings, and I've upgraded CiviCRM to 2.2.5. The standalone forms stop working after awhile of non-use, but start working once a non-standalone form is accessed. Something must be loaded or changed when a normal form is accessed. I don't even need to fill out the non-standalone form for the standalone form to start working again, just bring it up. Should I file a bug?

jkmuller

  • Guest
Re: Trouble with profile standalone forms
June 02, 2009, 03:35:45 pm
Here's another interesting bit: when I submit the newsletter signup form (standalone), it redirects to a thank you page. Directly afterward, if I go to the "join MIRA" page with the "becoming a member" form (non-standalone), it displays the message "Thank you. Your information has been saved." as though I submitted the "becoming a member" form. Perhaps this happens because both forms are on the same page? I wonder if this is related to my issue.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Trouble with profile standalone forms
June 02, 2009, 04:51:04 pm
Please try to replicate the behavior you're seeing on our joomla demo site:

http://joomla.demo.civicrm.org/administrator/

Login to the Admin interface with user = demo, pw = demo and set up your profile and a page with your standalone form, etc.
Assuming you can recreate the behavior, you should file an issue in the Issue Tracker with detailed steps on how to replicate it.

thx!
dave
Protect your investment in CiviCRM by  becoming a Member!

jkmuller

  • Guest
Re: Trouble with profile standalone forms
June 02, 2009, 08:21:59 pm
I tried to recreate on the demo site, and since I can't place a standalone form (due to permissions and editor issues) I placed it in an html file on my server. I believe that what might be occurring is that an error occurs, but a message cannot be displayed because I've removed the javascript. Is that possible?

Also, I can't understand what is causing the error. Does one have to be logged in to use a profile form? The other issues don't appear to apply.

Test URL: http://mira-mo.org/test/testform.html
Error:
Quote
Sorry. A non-recoverable error has occurred.
The requested Profile (gid=6) is disabled OR it is not configured to be used for 'Profile' listings in its Settings OR there is no Profile with that ID OR you do not have permission to access this profile. Please contact the site administrator if you need assistance.

Return to home page.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Trouble with profile standalone forms
June 03, 2009, 04:39:34 pm
How are you adding the code to that page? Is it embedded in the template, or are you adding it to a module position?
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

jkmuller

  • Guest
Re: Trouble with profile standalone forms
June 04, 2009, 08:57:14 am
For the form on the actual website, the standalone form is embedded into the template. For the last link I posted, I just put the form in an HTML file to test it with the Joomla test installation.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Trouble with profile standalone forms
June 04, 2009, 12:10:43 pm
It's possible that you've got a js conflict. You've got jquery and mootools on that page, which are known to create conflicts in some instance. I'd try troubleshooting by disabling whatever extensions are including mootools and see if you get the form working.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

danfriedman

  • Guest
Re: Trouble with profile standalone forms
August 05, 2009, 08:17:34 am
I'm having this same issue.  The standalone form was not working, I tested the "built-in" mode, and it started working, but I don't know for how long.  Did anybody happen to figure out a fix?

Thanks,
Dan

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Trouble with profile standalone forms

This forum was archived on 2017-11-26.