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 CiviReport (Moderator: Dave Greenberg) »
  • After upgrading from 3.1 to 3.2.5, custom report shows up blank
Pages: [1]

Author Topic: After upgrading from 3.1 to 3.2.5, custom report shows up blank  (Read 1308 times)

omarkish

  • I’m new here
  • *
  • Posts: 10
  • Karma: 2
After upgrading from 3.1 to 3.2.5, custom report shows up blank
November 24, 2010, 09:52:17 am
We had created a custom report in our previous version of civicrm (3.1) and after upgrading to 3.2.5, the form in the report is no longer appearing. 

It seems to me from various tests I have performed that the template (.tpl) file is not being read.  If i put print statements in the actual report php page, those print statements are output, however, any change made to any of the tpl files does not appear - including the .tpl file for my report which only has the line: {include file="CRM/Report/Form.tpl"}

This leads me to believe that civicrm now believes that the templates are in a different location.   I deleted all of the files/directories under the templates_c directory which i thought would rebuild the templates, but that has not fixed the problem. 

The site is in production, so putting it into debug mode to rebuild the templates sounds risky.

Has anyone else experienced a similar problem?  Any ideas how to fix?     

Thanks!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: After upgrading from 3.1 to 3.2.5, custom report shows up blank
November 24, 2010, 03:59:11 pm
Are you using a custom template directory? Might help if you define a bit more what the setup is and what templates you've tested / changed in what way to debug things.
Protect your investment in CiviCRM by  becoming a Member!

omarkish

  • I’m new here
  • *
  • Posts: 10
  • Karma: 2
Re: After upgrading from 3.1 to 3.2.5, custom report shows up blank
November 29, 2010, 09:43:38 am
Hello and thank you very much for responding. 

Here is some more detailed information about what is happening:

My civicrm installation is integrated with drupal, so the civicrm installation is located at:

/public_html/sites/all/modules/civicrm/

my custom php directory is located here:

/public_html/sites/all/modules/custom_civicrm_php/

and my custom templates directory is here:

/public_html/sites/all/modules/custom_civicrm_templates/

I have chmod 755 all of the files and directories in each of these directories, and have set my custom template and php directories in civicrm under "Administer" -> "Configure" -> "Global Settings" -> "Directories"  to reflect the locations of these directories.   I also removed the templates_c directory after each change so as to attempt to remove cached versions of the templates. 

When none of this worked, I also put a copy of the custom templates directory in this location:

/public_html/sites/all/modules/custom_civicrm_php/templates/ 

since i had read in some posting that this was the proper location.   still this did not work.  By "not work", what i mean is that when i navigate to the report address (set in "create report from template" form), all I see is the title of the report and nothing else.   The title is "Custom participant search".  What i see for the title is:  "Custom participant search - template". 

I have put print statements in the actual php of the report, and they are all being displayed.  However, when i modify the .tpl file, i don't see those changes, so i believe that Civicrm is not able to locate the .tpl file...

When i modify the php of the report, I am modifying this file:

/public_html/sites/all/modules/custom_civicrm_php/CRM/Report/Form/Event/ParticipantSearch.php

and the template:

/public_html/sites/all/modules/custom_civicrm_templates/CRM/Report/Form/Event/ParticipantSearch.tpl

No changes are reflected when modifying the above tpl.  I have modified this file by adding a snippet of html before and after the include statement found in that file which says:

{include file="CRM/Report/Form.tpl"} 

Please let me know if i can provide any more information to help debug this. 

Thank you!

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: After upgrading from 3.1 to 3.2.5, custom report shows up blank
November 30, 2010, 11:47:35 am

1. i assume u r on 3.2.5

2. do u have the drupal module civicrm_engage enabled?

3. in your php code, can you add the following lines:

Code: [Select]
    $template =& CRM_Core_Smarty::singleton( );
    CRM_Core_Error::debug( 'template directory', $template->template_dir );

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

omarkish

  • I’m new here
  • *
  • Posts: 10
  • Karma: 2
Re: After upgrading from 3.1 to 3.2.5, custom report shows up blank
November 30, 2010, 12:47:05 pm
Thank you for responding. 

1.  Yes, I am on 3.2.5
2.  Yes civicrm_engage is enabled.  should i disable it? 
3.  I added that code, and the following was printed: 

----------------

template directory

Array
(
   
  • => /public_html/sites/all/modules/civicrm/drupal/modules/civicrm_engage/templates/
  • [1] => /public_html/sites/all/modules/civicrm//templates/
    )


    ----------------


    which is interesting since a) neither of these are the custom template directory i have set up.  and b) there is civicrm_engage - which perhaps is over-riding my custom template directory? 

    This gives me some food for thought at least, which i really appreciate. 

    Any further suggestions, of course, would be helpful, but this does get me going in a direction. 

    Thanks!



omarkish

  • I’m new here
  • *
  • Posts: 10
  • Karma: 2
Re: After upgrading from 3.1 to 3.2.5, custom report shows up blank
November 30, 2010, 12:59:02 pm
When i put the .tpl file in the civicrm_engage template directory:

/public_html/sites/all/modules/civicrm/drupal/modules/civicrm_engage/templates/CRM/Report/Form/Event/ParticipantSearch.tpl

it works...

Now i just need to decide whether i can disable civicrm_engage, or whether there's another way around this. 

Thank you.

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: After upgrading from 3.1 to 3.2.5, custom report shows up blank
November 30, 2010, 02:09:57 pm

civicrm_engage had a bug where it overwrote and messed up the template path. This has been fixed in 3.3. You can patch your civicrm_engage.module with the 3.3 version here:

http://svn.civicrm.org/civicrm/branches/v3.3/drupal/modules/civicrm_engage/civicrm_engage.module

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

omarkish

  • I’m new here
  • *
  • Posts: 10
  • Karma: 2
Re: After upgrading from 3.1 to 3.2.5, custom report shows up blank
November 30, 2010, 02:20:49 pm
Thanks a lot for your help on this matter - really saved me some time / trouble.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • After upgrading from 3.1 to 3.2.5, custom report shows up blank

This forum was archived on 2017-11-26.