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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • Drupal tests in Joomla code
Pages: [1]

Author Topic: Drupal tests in Joomla code  (Read 1756 times)

chawbs

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1 alpha
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Drupal tests in Joomla code
December 05, 2011, 03:20:28 am
Received fatal error in Display.php on line 131

Tracked down to Drupal check module_exists being used without first checking if it exists:

Added function_exists check for module_exists in same line to prevent failure

Sorry cannot add code sections - keep getting error saying not allowed to post external links when trying to post relevant code...

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal tests in Joomla code
December 05, 2011, 03:55:10 am
Which page do you get this fatal. Can you enable debugging and paste the backtrace here.

Kurund
Found this reply helpful? Support CiviCRM

chawbs

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1 alpha
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Re: Drupal tests in Joomla code
December 05, 2011, 05:24:05 am

I went into Administer | Administration Console | Config Checklist and started working my way down the list. It broke on "Site preferences"
I enabled debug for joomla and no trace :-(
I enabled debug and trace in civicrm and no trace :-(


Whenever I try to include anything that remotely looks like it could be a url or path this system rejects my post... What special characters are we not allowed to use in posts?

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: Drupal tests in Joomla code
December 05, 2011, 07:20:22 am

filed and fixed the issue here:

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

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

chawbs

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1 alpha
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Re: Drupal tests in Joomla code
December 05, 2011, 09:57:57 am
But the statement in error is an IF statement... means module_exists function will still be looked for and still fail...

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: Drupal tests in Joomla code
December 05, 2011, 10:23:45 am

committed another patch to the code

note that the && and || operators are short-circuited in PHP, so if the first succeeds or fails the rest are not evaluated

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • Drupal tests in Joomla code

This forum was archived on 2017-11-26.