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) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Instructions for installing extensions
Pages: [1]

Author Topic: Instructions for installing extensions  (Read 1803 times)

matthewboh

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 2
Instructions for installing extensions
September 02, 2012, 01:19:25 pm
I want to install the Extended Reports extension. I went through and correctly set up my installation to accept extensions described http://wiki.civicrm.org/confluence/display/CRMDOC42/Extensions but the Extended Reports extension is not listed - maybe because it's specific to Drupal?

Anyway - I can't find instructions on how to download and install an extension outside of the ones that are listed in the Admin screen. Is there a spot for that?

Thanks!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Instructions for installing extensions
September 12, 2012, 10:27:19 am
Matthew - I think the "Extended Reports" extension was not shown under Manage Extensions on your site initially because the first release was not marked "stable". Subsequently Eileen has put out a "stable" release - which now shows up and can be installed "automatically" (at least for me).

I've updated the documentation on the wiki to clarify which extensions are available for automated download an installation - and which aren't (and what to do about those). Would be great if you could review and see if further clarification is needed (and feel free to improve it).

http://wiki.civicrm.org/confluence/display/CRMDOC42/Extensions
Protect your investment in CiviCRM by  becoming a Member!

flug

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 12
Re: Instructions for installing extensions
September 14, 2012, 01:33:40 pm
Quote from: matthewboh on September 02, 2012, 01:19:25 pm
I want to install the Extended Reports extension. I went through and correctly set up my installation to accept extensions described http://wiki.civicrm.org/confluence/display/CRMDOC42/Extensions but the Extended Reports extension is not listed - maybe because it's specific to Drupal?

Anyway - I can't find instructions on how to download and install an extension outside of the ones that are listed in the Admin screen. Is there a spot for that?

Thanks!

Also, I created some documentation for how to install & use the extension here:

 http://wiki.civicrm.org/confluence/display/CRMDOC42/Extended+Reports+Extension

matthewboh

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 2
Re: Instructions for installing extensions
September 15, 2012, 10:23:45 am
Thanks all! Got it up and running, checked out the new documentation - it all looks good to go. Would be great to somehow link the documentation for using the Extended Reports to the Extension screen!

erogers

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Wordpress 4.1
  • MySQL version: 5
  • PHP version: 5
Re: Instructions for installing extensions
September 16, 2012, 08:01:40 am
I installed Extended Reports via the extensions directory and now get this error on the report templates page:

"Warning: require_once(CRM/Report/Form/Extended.php) [function.require-once]: failed to open stream: No such file or directory in CRM_Core_ClassLoader::loadClass() (line 99 of .../sites/all/modules/civicrm/CRM/Core/ClassLoader.php)."

Then if I try to create a new report from any of the Extended Report Templates, I get errors like this:

"Fatal error: require_once() [function.require]: Failed opening required 'CRM/Report/Form/Extended.php' (include_path='.../sites/default/files/civicrm/extensions/nz.co.fuzion.extendedreport/:...sites/default/files/civicrm/extensions/org.civicrm.module.cividiscount/:.:.../sites/all/modules/civicrm:.../sites/all/modules/civicrm/packages:.:/usr/local/php53/lib/php') in .../sites/default/files/civicrm/extensions/nz.co.fuzion.extendedreport/CRM/Extendedreport/Form/Report/Price/Lineitemparticipant.php on line 39"

flug

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 12
Re: Instructions for installing extensions
September 17, 2012, 01:06:48 pm
Quote from: erogers on September 16, 2012, 08:01:40 am
I installed Extended Reports via the extensions directory and now get this error on the report templates page:

"Warning: require_once(CRM/Report/Form/Extended.php) [function.require-once]: failed to open stream: No such file or directory in CRM_Core_ClassLoader::loadClass() (line 99 of .../sites/all/modules/civicrm/CRM/Core/ClassLoader.php)."

I wonder if this is because it isn't pulling down the latest version from Github?  I know Eileen has fixed those issues in the more recent versions.

At any rate, it is because the class names are wrong in the .php files in Extendedreport/Report/Price:

For instance in Lineitem.php, near the top should be:

Code: [Select]
class CRM_Extendedreport_Form_Report_Price_Lineitem extends CRM_Extendedreport_Form_Report_ExtendedReport {

What you probably have is something like this:

Code: [Select]
class CRM_Report_Form_Extended_Price_Lineitem extends CRM_Extendedreport_Form_Report_ExtendedReport {

Similarly for Contributionbased.php, Lineitemparticipant.php, and Lineitemmembership.php.

One directory up, you might be having the same problem in ExtendedReport.php

In all cases, the name of the main class in the file should match the directory structure & file name of the file the class is in.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Instructions for installing extensions

This forum was archived on 2017-11-26.