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) »
  • "showBlocks array item not in .tpl" error
Pages: [1]

Author Topic: "showBlocks array item not in .tpl" error  (Read 2053 times)

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
"showBlocks array item not in .tpl" error
October 26, 2009, 05:00:08 pm
If you don't mind helping someone who sometimes tries to hack code when he has no idea what he is doing, please read on:

The javascript links (is this the terminology?) were not working in my joomla backend, so I couldn't use any reports.

I tried hacking the administrator/components/com_civicrm/civicrm/templates/CRM/Report/Form/Fields.tpl file to just show the whole page and eliminate the need for the javascript. I changed the line <div id="id_{$formTpl}"> to just <div> and the line <div id="id_{$instanceForm}"> to just <div>.

It kind of worked, but I got these 2 popup errors (I changed 2 lines of code): "showBlocks array item not in .tpl = id_default" and ""showBlocks array item not in .tpl = id_1".

Anyway, it was not a good long term solution at any rate, so I restored the original Fields.tpl file. I'm still getting the above popup errors though. Has changing that file altered something in the database? That's all I can think of. Otherwise, why would this error still be happening a week later. Do I need to reset something in the database?

I also need to import some new members and I want to add them to a group on import, but the javascript doesn't function there either.

Do I need to reinstall Civi?

Thanks for reading,
Phil

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: "showBlocks array item not in .tpl" error
October 26, 2009, 08:25:44 pm

you should try deleting:media/civicrm/templates_c/

and see if that fixes your problem

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

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Re: "showBlocks array item not in .tpl" error
October 26, 2009, 09:03:30 pm
That did it, thanks. I was looking to do that earlier, but I couldn't remember where the dang subdirectory was! And then I got off on another tangent...

Thanks again,
Phil

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • "showBlocks array item not in .tpl" error

This forum was archived on 2017-11-26.