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 Profiles (Moderator: Dave Greenberg) »
  • Extremely slow performance when filling in form in front-end
Pages: [1]

Author Topic: Extremely slow performance when filling in form in front-end  (Read 2716 times)

Franklin

  • Guest
Extremely slow performance when filling in form in front-end
September 07, 2009, 11:51:19 pm
Hello there,

I'm configuring CiviCRM for a friend's website and I'm quite happy with its features. The only thing that bothers me is that, when someone fills in a form in the front-end of the website, it takes some 20 - 30 seconds to finish. I'm using Joomla (1.5.14) en CiviCRM (2.2.7). Can anyone help me out please? Like I said I'm happy with CiviCRM as a component but this little bit spoils it all at the moment.

Regards,
Franklin (The Netherlands)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Extremely slow performance when filling in form in front-end
September 08, 2009, 01:37:44 am
See my post at http://forum.civicrm.org/index.php/topic,5259.msg23184.html#msg23184

You don't change the original CiviCRM template but create a copy in your custom template directory.

Note that the template file which you need to modify has been changed in a subsequent release made after that I posted the article.

The idea is to surround the offending links to JS with tests that check whether you are on the front-end (only works in Joomla!). Look also for script segments that invoke the JS, otherwise you get run-time errors. For example ...

{if ! $config->userFrameworkFrontend}
    ...
{/if}

Finally, note you will need to update this code each time there is a release of CiviCRM that updates this template.

Ken

Franklin

  • Guest
Re: Extremely slow performance when filling in form in front-end
September 08, 2009, 04:24:23 am
Dear Ken,

Thanks for your quick reply. Unfortunately it didn't make any difference. This is what I did:
I created the folders CRM/common in my root/templates folder. And in this folder i placed joomla.tpl (basicly a blank file with only the code in it that you posted in the other thread). I've probably done something wrong because it didn'yt change anything. It takes 65 seconds before a page refreshes after someone has filled in a profile-form....

I'm rather new to CiviCRM so your help is greatly appreciated!

Regards,
Franklin (The Netherlands)

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: Extremely slow performance when filling in form in front-end
September 08, 2009, 06:36:19 am

is your form sending out an email? seems like if its taking so long, it might be getting stuck on a network call?

also what is your hosting provider? can u give a few details on that

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

Franklin

  • Guest
Re: Extremely slow performance when filling in form in front-end
September 08, 2009, 06:44:01 am
Hi Donald,

No it's not. When a user registers (using profile field form) it registers a person in the database (not all the time though) but it doesn't send an email. Also, when a person wants to subscribe to an event, I get the same kind of errors and no confirmation email is send. I'm using a shared hosting service at HostingTime / JoomlaHosty.

Also, when I select some contacts in the back-end in order to send them an email, it takes more than a minute after I clicked the "send"-button before the page refreshes and when it does it shows a whole lot of errors like I posted about.

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: Extremely slow performance when filling in form in front-end
September 08, 2009, 07:40:54 am

1. Seems like you might have an smtp issue. Check your SMTP settings under Administer CiviCRM >> Global Settings >> SMTP

and make sure u can save and send test email. If this does not work, contact your hosting provider

2. not sure what plan u r under, but u might want to upgrade to a better plan. CiviCRM is a pretty big resource hog and does a few too many db calls. Paying a few extra dollars/euros/pounds to the hosting provider is definitely worth it and recommended

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

Franklin

  • Guest
Re: Extremely slow performance when filling in form in front-end
September 08, 2009, 08:04:00 am
Wow! That worked. Although I changed the SMTP settings, CiviCRM remained running slow. I then chose to change my email settings from SMTP to Sendmail and things run as smoothly as possible. My next and final question: What is the difference between SMTP and Sendmail? If you can help me out with this I'm finished (such a relieve....)

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: Extremely slow performance when filling in form in front-end
September 08, 2009, 08:11:43 am

there is a fair amount of information on the web about smtp and sendmail, please do a web search

in general, we prefer smtp over sendmail. we develop and test on smtp

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

Franklin

  • Guest
Re: Extremely slow performance when filling in form in front-end
September 08, 2009, 08:17:00 am
Lobo,

Thanks gratefully for your help! You really get me going!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Extremely slow performance when filling in form in front-end

This forum was archived on 2017-11-26.