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 CiviCampaign (Moderators: Kiran Jagtap, xavier) »
  • CiviCampaign not populating campaigns, petitions or surveys
Pages: [1]

Author Topic: CiviCampaign not populating campaigns, petitions or surveys  (Read 2105 times)

rorymccarron

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Drupal 7
  • MySQL version: unsure
  • PHP version: unsure
CiviCampaign not populating campaigns, petitions or surveys
January 07, 2013, 09:20:41 pm
We are testing CiviCRM on a sandbox site (I am more familiar with BSD toolsets and Salsa) and we haven't been able to get the petitions or campaigns to populate on the dashboard once we have saved them. When we go to create a petition it can find the campaign we created in the dropdown but that's it.

Any assistance would be appreciated.

Thanks

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: CiviCampaign not populating campaigns, petitions or surveys
January 08, 2013, 09:45:33 am

Petitions and campaigns are fairly new functionality and hence not exposed in many places including the dashboard

can you explain what your use case is and what / where you would like to see this info exposed

any chance your org can contribute some developer resources to also help build the above functionality

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

rorymccarron

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Drupal 7
  • MySQL version: unsure
  • PHP version: unsure
Re: CiviCampaign not populating campaigns, petitions or surveys
January 08, 2013, 01:12:39 pm
Sorry, I should have specified. The petition page won't publish. I can save it but can never find it. The campaigns won't populate anywhere in the backend or the frontend.

We've created a number of specific campaigns for testing purposes and this is what we see when we go to the CiviCampaign dashboard.


achernow

  • I’m new here
  • *
  • Posts: 4
  • Karma: 1
  • CiviCRM version: 4.2
  • CMS version: 7
Re: CiviCampaign not populating campaigns, petitions or surveys
January 08, 2013, 02:44:53 pm
Let me expand on Rory a bit....   

Everything is being created...  It's available if you try and add a petition or survey.  Nothing, however, will currently populate into the campaign module's dashboard.  I've tried all of the fixes (clean URLs, missing JS files) that I can find.  We're on a shared hosting, so I don't have access to the Apache log files, unfortunately.

...and I wish we had spare developers.  I'm currently the only one.
« Last Edit: January 08, 2013, 02:46:52 pm by achernow »

josue

  • I post occasionally
  • **
  • Posts: 81
  • Karma: 7
    • PTP
  • CiviCRM version: 3.4.4, 4.1.1
  • CMS version: Drupal 6.24, Drupal 7.12
  • MySQL version: 5.0
  • PHP version: 5.2
Re: CiviCampaign not populating campaigns, petitions or surveys
January 08, 2013, 03:10:04 pm
can you try it on the drupal civi demo site: http://drupal.demo.civicrm.org/

it sounds like you cannot get the Campaigns Dashboard working? is that right? it seems to work on the demo, but see if what you are trying to do works there first.

--josue

rorymccarron

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Drupal 7
  • MySQL version: unsure
  • PHP version: unsure
Re: CiviCampaign not populating campaigns, petitions or surveys
January 08, 2013, 03:46:50 pm
Josue,

It seems to be working fine within the demo.

R.

josue

  • I post occasionally
  • **
  • Posts: 81
  • Karma: 7
    • PTP
  • CiviCRM version: 3.4.4, 4.1.1
  • CMS version: Drupal 6.24, Drupal 7.12
  • MySQL version: 5.0
  • PHP version: 5.2
Re: CiviCampaign not populating campaigns, petitions or surveys
January 08, 2013, 04:15:12 pm
totally above my pay grade now.

as i see it, you create a campaign and then click on the Campaigns Dashboard link and it is blank, as demonstrated by the image you posted.

since it works on the demo site, it means that your installation is somehow handling this code wrong, or something is missing from the code you used to install civi, or something else running on the server is interfering with the code.

if this is a new site, i would try installing it again.

if you want to try to find out what is wrong with your current site, you need to find the code that generates the campaign list. civicrm/CRM/Campaign/Page/Dashboard.php is the code. the easy way to find this is to look at the source code of the page in question and search for a tpl file. you get ".tpl file invoked: CRM/Campaign/Page/DashBoard.tpl" - this is the template, which is in civicrm/template/CRM/Campaign/Page

let us know what you do next!

--josue

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviCampaign not populating campaigns, petitions or surveys
January 08, 2013, 04:28:38 pm
It looks like there's an issue w/ the Ajax call which retrieves the data table. You can investigate w/ FireFox Firebug extension. Install and enable it if you don't have it already, then go to that page and click the Console tab. You'll see several URLs called (screenshot attached). The important one looks like this (from demo):

http://drupal.demo.civicrm.org/civicrm/ajax/rest?snippet=4&className=CRM_Campaign_Page_AJAX&fnName=campaignList

If you right click on that and click 'Open Response in New Tab' - you'll hopefully get a clue about the problem (hopefully an error message). When it 'works' you get JSON data.
Protect your investment in CiviCRM by  becoming a Member!

achernow

  • I’m new here
  • *
  • Posts: 4
  • Karma: 1
  • CiviCRM version: 4.2
  • CMS version: 7
Re: CiviCampaign not populating campaigns, petitions or surveys
January 08, 2013, 04:33:27 pm
Quote from: josue on January 08, 2013, 04:15:12 pm
if this is a new site, i would try installing it again.

let us know what you do next!

Attempting a reinstall now.

achernow

  • I’m new here
  • *
  • Posts: 4
  • Karma: 1
  • CiviCRM version: 4.2
  • CMS version: 7
Re: CiviCampaign not populating campaigns, petitions or surveys
January 08, 2013, 06:52:34 pm
Reinstalled.  Noticed that there was still a problem.  As you can see from the screen shots, I had added a new campaign but still couldn't see anything.  So, I took Dave Greenberg's advice and started poking around in the console (I use Chrome, not Firefox however.) 

I noticed that it was saying that jquery.dataTables.min.js had the type "application/x-gzip" which didn't make any sense to me.  I went poking around in the FTP site and found that in "sites/all/modules/civicrm/packages/jquery/plugins/DataTables/media/js/" directory there was, in addition to the .js file, a .js.gz file.  I deleted the .gz file and it unconfused the system and it's now displaying things just fine.

I'm not sure if this is something I should file as a bug report, or if it's just some random thing that happened in just my install.  In any case, it's working now!

Thanks everyone for pointing Rory and I in the right direction!
« Last Edit: January 08, 2013, 07:10:15 pm by achernow »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviCampaign not populating campaigns, petitions or surveys
January 09, 2013, 10:42:19 am
Discussed w/ the team and there was agreement that the .gz copy wasn't needed. Removing it starting w/ next release.

http://issues.civicrm.org/jira/browse/CRM-11630
Protect your investment in CiviCRM by  becoming a Member!

achernow

  • I’m new here
  • *
  • Posts: 4
  • Karma: 1
  • CiviCRM version: 4.2
  • CMS version: 7
Re: CiviCampaign not populating campaigns, petitions or surveys
January 09, 2013, 11:02:29 am
Quote from: Dave Greenberg on January 09, 2013, 10:42:19 am
Discussed w/ the team and there was agreement that the .gz copy wasn't needed. Removing it starting w/ next release.

http://issues.civicrm.org/jira/browse/CRM-11630

Neat :)

Glad I could track down what happened and let y'all know!!  And thanks again for all the help!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCampaign (Moderators: Kiran Jagtap, xavier) »
  • CiviCampaign not populating campaigns, petitions or surveys

This forum was archived on 2017-11-26.