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) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Extensions stopped working, get Civi home page instead??
Pages: [1]

Author Topic: Extensions stopped working, get Civi home page instead??  (Read 1022 times)

denishow

  • I’m new here
  • *
  • Posts: 19
  • Karma: 2
  • CiviCRM version: 4.2
  • CMS version: WordPress 3.4.2
  • MySQL version: 5.4
  • PHP version: 5.3.15
Extensions stopped working, get Civi home page instead??
January 17, 2013, 12:06:47 am
Hi,

I have an extension with a set of custom pages, a custom tab on the contact page and an API extension. It works fine on my local test site and was working fine on the live site until yesterday.

Now none of them are working and I don't understand what I've done to disable them but I think it must be a reset call I made, or some change to the database. I've checked that all the files are still there.

The extension still shows up in System Settings > Manage Extensions. It says that it's installed and enabled (I tried disabling it and re-enabling it but no change). I've also checked that the paths are all correct.

The odd thing is that the extra tab in contacts does show up, but when you click on it, you get the main Civi dashboard (no error, nothing in the logs, even with debug switched on). Surely this means that the extension must be working since it's adding the text?

Similarly, I've added a page to the Contribution menu. It shows up fine, but clicking on it takes me to the Civi dashboard page.

Could it be a permissions thing? I've been adding and removing people from groups, including the Administrators group. Though I've added myself back to the Admin group, is there something else I need to do? I can access everything else, just my extension that's not working.

Given it all works on the test site, how do I debug this when there are no errors and nothing logged?

Thanks
Denis


totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Extensions stopped working, get Civi home page instead??
January 17, 2013, 12:33:06 am
Quote from: denishow on January 17, 2013, 12:06:47 am
The odd thing is that the extra tab in contacts does show up, but when you click on it, you get the main Civi dashboard (no error, nothing in the logs, even with debug switched on). Surely this means that the extension must be working since it's adding the text?

Since some of the functionality of the extension works (like creating an extra tab), it sounds like the general extension system is working -- but the "request-router" or "menu system" isn't loading the right PHP class given the URL. This is probably a problem in the XML "menu" file. (In a civix-based extension, the file is usually called "xml/Menu/myextension.xml".)

(You can recognize this because it's showing the dashboard instead your custom page. Civi's request-router has a special behavior -- if "/civicrm/foo/bar" doesn't exactly match an entry in an XML file, then it will lookup an entry for "/civicrm/foo"; if that doesn't have a match, it will treat it try "/civicrm"' -- which is the dashboard.)

Some things you might try:
 * Make the sure the entry in the menu XML matches the link in the dashboard.
 * Make sure the XML document is well-formed (no obviously broken XML)
 * Reload the menu-XML by making a web-request for "civicrm/menu/rebuild?reset=1"
 * Compare the extension's menu-XML with an original/new/clean version. You might do this by creating a skeletal module with civix that imitates your current module -- then using "diff" to see how the code has changed.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Extensions stopped working, get Civi home page instead??

This forum was archived on 2017-11-26.