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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Civi Contact view errors
Pages: [1] 2

Author Topic: Civi Contact view errors  (Read 2010 times)

bstalcup

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 1
  • CiviCRM version: 4.7.3
  • CMS version: Joomla!
  • MySQL version: 5.5.36-cll-lve
  • PHP version: 5.3.29
Civi Contact view errors
October 03, 2014, 10:53:46 am
Hello,

Recently, I updated to CiviCRM 4.5.0.  Unfortunately, this brought a new, ugly error.  When I go to view the summary of a contact, it has the usual tabs for Events, Activities, Mailings, etc.  But whenever I click on one of those I get the error "Unable to reach the server. Please refresh this page in your browser and try again."  Even after refreshing, I still get the error. 

After some inspection, I noticed that the browser is getting a the URL's for each without the parameter "force=1," and when I manually grab the URL with that parameter there, it gets the appropriate data.

I'm willing to document and report this error if we can figure it out; it's a pretty crucial component for my team's operations.

Thanks,
bstalcup

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi Contact view errors
October 03, 2014, 10:56:20 am
Go to Administer -> System Settings -> Resource URLs and check that the image upload path is correct and matches up with the path set in Administer -> System Settings -> Directories.
Try asking your question on the new CiviCRM help site.

raustin1

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • University of Notre Dame
  • CiviCRM version: 4.6.11
  • CMS version: Joomla 3.4.8
  • MySQL version: 5.5.45-cll-lve
  • PHP version: 5.6.16
Re: Civi Contact view errors
October 03, 2014, 11:25:38 am
Hello,

I'm working on the same project as bstalcup and I've gone in and checked this. The urls and paths are the same in both sections. I tried changing them and it removes the images from the backend. Add them back and it works. In both cases, we get the unable to reach the server error.

Any other ideas?

Ricky

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi Contact view errors
October 03, 2014, 11:30:09 am
Can you check your browser console for errors.
Try asking your question on the new CiviCRM help site.

bstalcup

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 1
  • CiviCRM version: 4.7.3
  • CMS version: Joomla!
  • MySQL version: 5.5.36-cll-lve
  • PHP version: 5.3.29
Re: Civi Contact view errors
October 03, 2014, 11:42:44 am
There are no console errors at all.

raustin1

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • University of Notre Dame
  • CiviCRM version: 4.6.11
  • CMS version: Joomla 3.4.8
  • MySQL version: 5.5.45-cll-lve
  • PHP version: 5.6.16
Re: Civi Contact view errors
October 03, 2014, 11:47:02 am
To build off the force=1 note.

We get different information on a record if we put in

?option=com_civicrm&task=civicrm/contact/view/contribution&reset=1&force=1&cid=1861

vs

?option=com_civicrm&task=civicrm/contact/view/contribution&reset=1&cid=1861

The first url pulls the correct data. The second one shows nothing.


Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi Contact view errors
October 03, 2014, 11:57:16 am
Ok I'm looking on the demo sites for WP and Drupal, and also there's an old beta of 4.5 here (ignore that it says 4.4 in the homepage): http://sandbox.joomla.civicrm.org/
In all of them I do see force=1 in the url for e.g. contribution tab.
So now I'm baffled as to why it would be missing from your site.
Have you cleared all caches and deleted the contents of files/templates_c?
Try asking your question on the new CiviCRM help site.

raustin1

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • University of Notre Dame
  • CiviCRM version: 4.6.11
  • CMS version: Joomla 3.4.8
  • MySQL version: 5.5.45-cll-lve
  • PHP version: 5.6.16
Re: Civi Contact view errors
October 03, 2014, 12:34:10 pm
We've cleared caches and emptied the templaces_c file (a couple times, now). We've also tried this on our dev site to no avail.

We also don't have anything showing wrong in the logs.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi Contact view errors
October 03, 2014, 12:37:21 pm
Do you have any custom code or extensions or template overrides? Can you try disabling them to see if that has an effect?
Try asking your question on the new CiviCRM help site.

raustin1

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • University of Notre Dame
  • CiviCRM version: 4.6.11
  • CMS version: Joomla 3.4.8
  • MySQL version: 5.5.45-cll-lve
  • PHP version: 5.6.16
Re: Civi Contact view errors
October 03, 2014, 01:21:09 pm
I disabled all extensions (and eventually uninstalled). no change

I removed the paths for custom extensions and php. no change

We do not have template overrides.

I've gone through the demo and have not been able to replicate the error.

I did find the error in one other place on our site. If I disable or enable a set of custom data on the custom data screen, the network error dialog pops-up. Civi will disable and enable the data, but rather than just updating and returning to the same screen, it shows the network error dialog.

So far that's the only other place showing the error. Perhaps an ajax error?


Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi Contact view errors
October 03, 2014, 01:30:22 pm
Errors like that definitely ought to show up in your browser's console and that will give us much more to work with. Check the "net" tab in Chrome or the "console" tab in FF.
Try asking your question on the new CiviCRM help site.

raustin1

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • University of Notre Dame
  • CiviCRM version: 4.6.11
  • CMS version: Joomla 3.4.8
  • MySQL version: 5.5.45-cll-lve
  • PHP version: 5.6.16
Re: Civi Contact view errors
October 03, 2014, 02:17:46 pm
Still no errors. Checked on both Chrome and FF. All 200 OK

The console actually shows the data in the administrator/?option=com_civicrm&task=civicrm/contact/view/contribution&reset=1&force=1&cid=1861&snippet=json loading correctly and even shows the appropriate data in the response.

I found another place where the network error dialog shows up. If we load the groups tab independently at ?option=com_civicrm&task=civicrm/contact/view&reset=1&cid=1861 then the dialog shows. No console errors on that page either.

It might have something to do with ajax loading the smart groups. The dialog does not show up until it tries to load the smart groups section. When the animated gif goes away, the dialog shows up. Again, that seems connected to ajax. I disabled the auto show smart groups in display preferences and it went away. Unfortunately, when you try to load it manually, the network dialog shows up again. Still no console errors and data is showing that it is loading.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi Contact view errors
October 03, 2014, 02:25:25 pm
So the smart groups are loading correctly according to the console, but the UI reports a failure? Did I get that right?
And your other tabs are now loading correctly in the UI? Or only in the console?
Try asking your question on the new CiviCRM help site.

raustin1

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • University of Notre Dame
  • CiviCRM version: 4.6.11
  • CMS version: Joomla 3.4.8
  • MySQL version: 5.5.45-cll-lve
  • PHP version: 5.6.16
Re: Civi Contact view errors
October 03, 2014, 02:31:55 pm
According the console, the smart groups load correctly if you isolate and load the groups tab as its own page. According to the console, the contributions, groups, pledges, tags, etc tabs load correctly too. The UI just won't show them loading and then we get the network server error dialog.

So according to the console, everything is loading correctly (and actually looks exactly the same as the demo site).

I'm looking for something thats running on joomla that would conflict but I don't even know where to start.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Civi Contact view errors
October 03, 2014, 02:36:26 pm
It might be worth sticking a console.log or other debugging statement into js/crm.ajax.js around line 208 to find out why _onFailure is being triggered.
Try asking your question on the new CiviCRM help site.

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Civi Contact view errors

This forum was archived on 2017-11-26.