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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • New Install dashboard blog doesn't work, curl missing from php
Pages: [1]

Author Topic: New Install dashboard blog doesn't work, curl missing from php  (Read 1760 times)

questions

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 2
  • CiviCRM version: 4.4.6
  • CMS version: Durpal, 7
  • MySQL version: 5.1
  • PHP version: 5.3
New Install dashboard blog doesn't work, curl missing from php
July 28, 2014, 10:52:19 am
I'm moving our stuff to a new server and a different hosts.  Copied things over and installed.  I noticed that the dashboard blog civicrm news feed wasn't getting updated.  I don't really care about the blog but something not working bothers me.

After considerable hacking, I discovered the php that was installed was missing curl.  A sudo apt-get install php5-curl fixed it

The annoying thing is the basic civi install script doesn't check for php curl.  I suspect it's only used for the blog, but it's an easy check  if (!function_exists('curl_init')) {

Even more annoying is that there were zero error messages as why the blog wasn't getting updated.  Buried down in sites/all/modules/civicrm/CRM/Utils/HttpClient.php there is code to have it actually fail with a decent message but it's commented out.  The code as it stands (4.4.6) passes a bland generic status that doesn't get report out.  There is a FIXME note at the top of the file noting error reporting inconsistencies.

I suppose these might both be bugs and I should figure out how to log a bug.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: New Install dashboard blog doesn't work, curl missing from php
July 29, 2014, 02:54:06 am
CiviCRM is an open-source project and is only as good as what people put into it. Complaining can serve a purpose but is more welcome when paired with something constructive.

Installing curl is optional so we don't check it as a requirement during install.
We actually do display a user-friendly message in the blog dashlet about curl if it is not present. Not sure why you don't see it in 4.4 but I think it's there in 4.5.
Yes the code contains FIXMEs and TODOs - we have limited time and resources and cannot make every little thing a top priority. If something is important to you, please help us work on it.
Try asking your question on the new CiviCRM help site.

questions

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 2
  • CiviCRM version: 4.4.6
  • CMS version: Durpal, 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: New Install dashboard blog doesn't work, curl missing from php
July 29, 2014, 07:37:19 pm
I wasn't trying to complain without being constructive.  I partially posted this so others coming across the same problem might find an answer.

And I am sorry and I don't want to argue but the user friendly error message for the get function is commented out in 4.4.6 code, which I believe is the current release.  Had it not been, I wouldn't have posted anything.   (The fetch does give a user friendly message but unfortunately, the blog thing uses the get)

It looks like it is fixed in 4.5 so this is all moot, well, I guess except for people installing before it is released and wonder why the blog thing doesn't work.




Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • New Install dashboard blog doesn't work, curl missing from php

This forum was archived on 2017-11-26.