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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • showBlocks array item error in contribution page on upgrade 1.9 to 2.0
Pages: [1]

Author Topic: showBlocks array item error in contribution page on upgrade 1.9 to 2.0  (Read 981 times)

mlampard

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 3
showBlocks array item error in contribution page on upgrade 1.9 to 2.0
March 17, 2009, 11:33:45 pm
Hi All,
Just upgraded from 1.9 to 2.0 and I'm getting the following javascript popup error when I try to either edit an existing, or create a new contribution (haven't found it anywhere else, just contributions):
showBlocks array item not in .tpl = id-honoree-show
and
showBlocks array item not in .tpl = id-honoree

I have been through the custom data and contribution types looking for non alpha characters - none!
I edited every contribution type and "saved", just in case there was something that needed writing to DB - no change!
I have dumped the database and regex searched for the id-hon string - nothing found!
I have run "grep -r id-hon *" from the root of the drupal install (which catches the civicrm code) - nothing found!

I'm at somewhat of a loss and have no idea where this "id-honoree" string is originating from - any thoughts anyone?

Cheers,
Marty

Sunil

  • I post frequently
  • ***
  • Posts: 131
  • Karma: 23
  • The community around a product more important than the product itself?
    • CiviCRM
Re: showBlocks array item error in contribution page on upgrade 1.9 to 2.0
March 18, 2009, 12:10:33 am
Hi,

Quote
showBlocks array item not in .tpl = id-honoree-show
and
showBlocks array item not in .tpl = id-honoree

<div id="id-honoree-show" ....
AND
<div id="id-honoree" class="section-shown">

are present in the templates/CRM/Contribute/Form/Contribution.tpl around line no. 100

Quote
CRM/Contribute/Form/Contribution.php:313:            $showHide->addShow( "id-honoree" );
CRM/Contribute/Form/Contribution.php:314:            $showHide->addHide( "id-honoree-show" );
CRM/Contribute/Form/Contribution.php:316:            $showHide->addShow( "id-honoree-show" );
CRM/Contribute/Form/Contribution.php:317:            $showHide->addHide( "id-honoree" );
templates/CRM/Contribute/Form/Contribution.tpl:96:   <div id="id-honoree-show" class="section-hidden section-hidden-border" style="clear: both;">
templates/CRM/Contribute/Form/Contribution.tpl:97:   <a href="#" onclick="hide('id-honoree-show'); show('id-honoree');
templates/CRM/Contribute/Form/Contribution.tpl:99:   <div id="id-honoree" class="section-shown">
templates/CRM/Contribute/Form/Contribution.tpl:101: <legend><a href="#" onclick="hide('id-honoree'); show('id-honoree-show');
If this id not present in the template file, it will show the java script pop-up error as u describe.
I run the "grep -irn id-hon *" in v2.0 and i also got the all files, but not in v1.9.

sunil
 
The community around a product more important than the product itself?

mlampard

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 3
Re: showBlocks array item error in contribution page on upgrade 1.9 to 2.0
March 18, 2009, 09:10:07 am
Awesome - thanks! The text is certainly there in the file, but nothing I can do with grep allows me to find it - Maybe a way that Mac OS/X grep works with quote surrounded text (just a thought...)

Anyway, the issue was as follows:
I had a custom Contribution.tpl in the civicrm_custom folder. Basically, pre version 2.0 civicrm would show contributions in the activity history, even if contribution access had been locked down in drupal admin. Once I removed that custom file (I don't need it anymore anyway), and cleaned out the smarty cache, it worked fine.

Thanks for your help in locating this!
Cheers,
Marty.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • showBlocks array item error in contribution page on upgrade 1.9 to 2.0

This forum was archived on 2017-11-26.