Answers.Body: <p>I solved this by re-installing CiviCRM. Somehow it got corrupted.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-14T15:18:09.553Z
Answers.LastActivityDate: 2017-02-12T19:14:36.843Z
Answers.LastEditDate: 2017-02-12T19:14:36.843Z
Answers.UserDisplayName: Nina Gonzalez
Body: <p>CiviCRM 4.7.11
  WordPress 4.6.1</p>
  
  <p>Having problems accessing Activities and Mailings. </p>
  
  <ol>
  <li>From a Contact record, click "Activites" and get an Invalid JSON response. See image.</li>
  <li>From a Contact record, click "Mailings" and get the Summary of the record.</li>
  </ol>
  
  <p>Can't do "Find Activities" or "Find Mailings" from Search pull-down either. "Find Mailings" goes to the dashboard.</p>
  
  <p>Can use Custom Searches and Activity Search. So doesn't seem to be a database error. Seems to be a code error. Haven't done any upgrades. </p>
  
  <p><a href="https://i.sstatic.net/XVStS.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/XVStS.jpg" alt="Invalid JSON"></a></p>
  
  <p><a href="https://i.sstatic.net/CcIVx.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/CcIVx.jpg" alt="Find Activites"></a></p>
  
  <p>Did research on the JSON error and this seems to be the code that is causing the error. </p>
  
  <blockquote>
    
    
    CRM.$(function($) {   // The set of options we can use to initialize
    jQuery.dashboard().   var options = {
    
        widgetsByColumn: [[{"id":2,"name":"getting-started","title":"CiviCRM
    Resources","url":"\/wp-admin\/admin.php?page=CiviCRM&q=civicrm\/dashlet\/getting-started&reset=1","cacheMinutes":"7200","fullscreenUrl":"\/wp-admin\/admin.php?page=CiviCRM&q=civicrm\/dashlet\/getting-started&reset=1&context=dashletFullscreen"}],[]],
    
        // These define the urls and data objects used for all of the ajax requests to the server.
        ajaxCallbacks: {
    
          // jQuery.dashboard() POSTs the widget-to-column settings here.
          // The 'columns' property of data is reserved for the widget-to-columns settings:
          //    An array (keyed by zero-indexed column ID), of arrays (keyed by widget ID)
          //    of ints; 1 if the widget is minimized.  0 if not.
          saveColumns: {
            url: '/wp-admin/admin.php?page=CiviCRM&q=civicrm/ajax/dashboard',
            data: {
              // columns: array(0 => array(widgetId => isMinimized, ...), ...),
              op: 'save_columns', key: "6318f73741bb1ff8ca4f6bdb6a720062"
            }
          },
    
          // jQuery.dashboard() GETs a widget's settings object and POST's a users submitted
          // settings back to the server.  The return, in both cases, is an associative
          // array with the new settings markup and other info:
          //
          // Required properties:
          //  * markup: HTML string.  The inner HTML of the settings form.  jQuery.dashboard()
          //    provides the Save and Cancel buttons and wrapping  element.  Can include
          //    s of any standard type and s, nested in s etc.
          //
          // Server-side executable script callbacks (See documentation for
          // ajaxCallbacks.getWidgets):
          //  * initScript:  Called when widget settings are initialising.
          //  * script:  Called when switching into settings mode.  Executed every time
          //    the widget goes into settings-edit mode.
          //
          // The 'id' property of data is reserved for the widget ID.
          // The 'settings' property of data is reserved for the user-submitted settings.
          //    An array (keyed by the name="" attributes of s), of  values.
          widgetSettings: {
            url: '/wp-admin/admin.php?page=CiviCRM&q=civicrm/ajax/dashboard',
            data: {
              // id: widgetId,
              // settings: array(name => value, ...),
              op: 'widget_settings', key: "6318f73741bb1ff8ca4f6bdb6a720062"
            }
          }
        }
    
      };
    
      var dashboard = $('#civicrm-dashboard')
        .on('mouseover', '.widget-header', function() {
          $(this).closest('.widget-wrapper').addClass('db-hover-handle');
        })
        .on('mouseout', '.widget-header', function() {
          $(this).closest('.widget-wrapper').removeClass('db-hover-handle');
        })
        .dashboard(options);
    
    
      $('.crm-hover-button.show-refresh').click(function(e) {
        e.preventDefault();
        $.each(dashboard.widgets, function(id, widget) {
          widget.reloadContent();
        });   });
    
    });
    
    
    
    
    
    
    
    
        function createSWFObject( chartID, divName, xSize, ySize, loadDataFunction ) {
           var flashFilePath = "/wp-content/plugins/civicrm/civicrm/packages/OpenFlashChart/open-flash-chart.swf";
    
           //create object.
           swfobject.embedSWF( flashFilePath, divName,
                             xSize, ySize, "9.0.0",
                             "expressInstall.swf",
                             {"get-data":loadDataFunction, "id":chartID},
                             null,
                             {"wmode": 'transparent'}
                            );
        }   OFC = {};   OFC.jquery = {
               name: "jQuery",
                 image: function(src) { return ""},
                 popup: function(src) {
                 var img_win = window.open('', 'Save Chart as Image');
               img_win.document.write('Save Chart as Image' + OFC.jquery.image(src) + '
    ');
               img_win.document.close();
                           }
                     }
    
    function save_image( divName ) {
          var divId = "" ? 'open_flash_chart_'+divName : "";
              if( !divId ) {
                   divId = 'open_flash_'+divName;
            }
          OFC.jquery.popup( divId ); }
    
    
    
    <p>     Configure Your Dashboard</p>
    
    <p>    Refresh
    Dashboard Data</p>
    
    <p>   
        
            Welcome to your Home Dashboard
            
                Your dashboard provides a one-screen view of the data that's most important to you. Graphical or tabular data is pulled from
    the reports you select, and is displayed in 'dashlets' (sections of
    the dashboard). &nbsp;
            
         </p>
    
    <p> 
        Javascript must be enabled in your browser in order to use the dashboard features.  </p>
    
       CRM.$(function($) {
        $('#crm-dashboard-configure').click(function(e) {
          e.preventDefault();
          $(this).hide();
          if ($("#empty-message").is(':visible')) {
            $("#empty-message").fadeOut(400);
          }
          $("#civicrm-dashboard").fadeOut(400, function() {
            $(".crm-dashboard-controls").hide();
            $("#configure-dashlet").fadeIn(400);
          });
          CRM.loadPage(CRM.url('civicrm/dashlet', 'reset=1'), {target: $("#configure-dashlet")});
        });   }); 
    
    <p></p>
  </blockquote>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-12T19:15:06.123Z
Comments.Text: you can Accept your own answer and keep SE happy by having more 'answered' questions.
Comments.UserDisplayName: petednz - fuzion
Tags: <activities><error><mailing><core>
Title: Problems accessing Activity and Mailings
ThreadText: # Problems accessing Activity and Mailings
  
  (Asked by: username_0 on 2016-10-21)
  
  CiviCRM 4.7.11
  WordPress 4.6.1
  
  Having problems accessing Activities and Mailings.
  
  1. From a Contact record, click "Activites" and get an Invalid JSON response. See image.
  2. From a Contact record, click "Mailings" and get the Summary of the record.
  
  Can't do "Find Activities" or "Find Mailings" from Search pull-down either. "Find Mailings" goes to the dashboard.
  
  Can use Custom Searches and Activity Search. So doesn't seem to be a database error. Seems to be a code error. Haven't done any upgrades.
  
  [![Invalid JSON](https://i.sstatic.net/XVStS.jpg)](https://i.sstatic.net/XVStS.jpg)
  
  [![Find Activites](https://i.sstatic.net/CcIVx.jpg)](https://i.sstatic.net/CcIVx.jpg)
  
  Did research on the JSON error and this seems to be the code that is causing the error.
  
  > CRM.$(function($) {   // The set of options we can use to initialize
  > jQuery.dashboard().   var options = {
  >     widgetsByColumn: [[{"id":2,"name":"getting-started","title":"CiviCRM
  > Resources","url":"\/wp-admin\/admin.php?page=CiviCRM&q=civicrm\/dashlet\/getting-started&reset=1","cacheMinutes":"7200","fullscreenUrl":"\/wp-admin\/admin.php?page=CiviCRM&q=civicrm\/dashlet\/getting-started&reset=1&context=dashletFullscreen"}],[]],
  >     // These define the urls and data objects used for all of the ajax requests to the server.
  >     ajaxCallbacks: {
  >       // jQuery.dashboard() POSTs the widget-to-column settings here.
  >       // The 'columns' property of data is reserved for the widget-to-columns settings:
  >       //    An array (keyed by zero-indexed column ID), of arrays (keyed by widget ID)
  >       //    of ints; 1 if the widget is minimized.  0 if not.
  >       saveColumns: {
  >         url: '/wp-admin/admin.php?page=CiviCRM&q=civicrm/ajax/dashboard',
  >         data: {
  >           // columns: array(0 => array(widgetId => isMinimized, ...), ...),
  >           op: 'save\_columns', key: "6318f73741bb1ff8ca4f6bdb6a720062"
  >         }
  >       },
  >       // jQuery.dashboard() GETs a widget's settings object and POST's a users submitted
  >       // settings back to the server.  The return, in both cases, is an associative
  >       // array with the new settings markup and other info:
  >       //
  >       // Required properties:
  >       //  \* markup: HTML string.  The inner HTML of the settings form.  jQuery.dashboard()
  >       //    provides the Save and Cancel buttons and wrapping element.  Can include
  >       //    s of any standard type and s, nested in s etc.
  >       //
  >       // Server-side executable script callbacks (See documentation for
  >       // ajaxCallbacks.getWidgets):
  >       //  \* initScript:  Called when widget settings are initialising.
  >       //  \* script:  Called when switching into settings mode.  Executed every time
  >       //    the widget goes into settings-edit mode.
  >       //
  >       // The 'id' property of data is reserved for the widget ID.
  >       // The 'settings' property of data is reserved for the user-submitted settings.
  >       //    An array (keyed by the name="" attributes of s), of values.
  >       widgetSettings: {
  >         url: '/wp-admin/admin.php?page=CiviCRM&q=civicrm/ajax/dashboard',
  >         data: {
  >           // id: widgetId,
  >           // settings: array(name => value, ...),
  >           op: 'widget\_settings', key: "6318f73741bb1ff8ca4f6bdb6a720062"
  >         }
  >       }
  >     }
  >   };
  >   var dashboard = $('#civicrm-dashboard')
  >     .on('mouseover', '.widget-header', function() {
  >       $(this).closest('.widget-wrapper').addClass('db-hover-handle');
  >     })
  >     .on('mouseout', '.widget-header', function() {
  >       $(this).closest('.widget-wrapper').removeClass('db-hover-handle');
  >     })
  >     .dashboard(options);
  >   $('.crm-hover-button.show-refresh').click(function(e) {
  >     e.preventDefault();
  >     $.each(dashboard.widgets, function(id, widget) {
  >       widget.reloadContent();
  >     });   });
  > });
  >     function createSWFObject( chartID, divName, xSize, ySize, loadDataFunction ) {
  >        var flashFilePath = "/wp-content/plugins/civicrm/civicrm/packages/OpenFlashChart/open-flash-chart.swf";
  >        //create object.
  >        swfobject.embedSWF( flashFilePath, divName,
  >                          xSize, ySize, "9.0.0",
  >                          "expressInstall.swf",
  >                          {"get-data":loadDataFunction, "id":chartID},
  >                          null,
  >                          {"wmode": 'transparent'}
  >                         );
  >     }   OFC = {};   OFC.jquery = {
  >            name: "jQuery",
  >              image: function(src) { return ""},
  >              popup: function(src) {
  >              var img\_win = window.open('', 'Save Chart as Image');
  >            img\_win.document.write('Save Chart as Image' + OFC.jquery.image(src) + '
  > ');
  >            img\_win.document.close();
  >                        }
  >                  }
  > function save\_image( divName ) {
  >       var divId = "" ? 'open\_flash\_chart\_'+divName : "";
  >           if( !divId ) {
  >                divId = 'open\_flash\_'+divName;
  >         }
  >       OFC.jquery.popup( divId ); }
  >
  >   Configure Your Dashboard
  >
  >   Refresh
  > Dashboard Data
  >
  >    
  >         Welcome to your Home Dashboard
  >        
  >             Your dashboard provides a one-screen view of the data that's most important to you. Graphical or tabular data is pulled from
  > the reports you select, and is displayed in 'dashlets' (sections of
  > the dashboard).
  >
  >     Javascript must be enabled in your browser in order to use the dashboard features.
  >
  >   CRM.$(function($) {
  >     $('#crm-dashboard-configure').click(function(e) {
  >       e.preventDefault();
  >       $(this).hide();
  >       if ($("#empty-message").is(':visible')) {
  >         $("#empty-message").fadeOut(400);
  >       }
  >       $("#civicrm-dashboard").fadeOut(400, function() {
  >         $(".crm-dashboard-controls").hide();
  >         $("#configure-dashlet").fadeIn(400);
  >       });
  >       CRM.loadPage(CRM.url('civicrm/dashlet', 'reset=1'), {target: $("#configure-dashlet")});
  >     });   });
  
  **Tags:** activities, error, mailing, core
  
  > **Comments:**
  > **username_1**: you can Accept your own answer and keep SE happy by having more 'answered' questions.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-11-14. Score: 1 | Accepted answer
  
  I solved this by re-installing CiviCRM. Somehow it got corrupted.
  
  
  ---
  
  