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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Undefined index: host error message
Pages: [1]

Author Topic: Undefined index: host error message  (Read 3109 times)

thomas

  • Guest
Undefined index: host error message
January 16, 2010, 05:30:11 pm
I have installed Civicrm 3.1 beta 5 on top of joomla 1.5.15 and it seems to be a successful install except that it shows an error message in administrator when I select civi from the components menu.

I get some java script errors and the error message on top of the page:

Notice: Undefined index: host in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\joomla15\administrator\components\com_civicrm\civicrm\CRM\Core\Config.php on line 436

(line 436 from config.php)
$this->resourceBase = ($rrb['host'] == $_SERVER['HTTP_HOST']) ? $rrb['path'] : $this->userFrameworkResourceURL;

My computer is running windows vista, apache 2.2.14, mysql 5.1.42 and php 5.2.12. Joomla is configured to run via ssl.

Any ideas how to solve my problem?

Regards,
Thomas

thomas

  • Guest
Re: Undefined index: host error message
January 17, 2010, 07:37:32 pm
I managed to fix the problem when I change resourceBase to my base file structure

$this->resourceBase = '/joomla15/administrator/components/com_civicrm/civicrm/';

It seems to work ok, but I am a bit worried about if this hard coded line will cause problems elsewhere.
 
Has anybody experienced the same problem with and empty string resourceBase and can provide the correct solution to this problem?

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: Undefined index: host error message
January 17, 2010, 09:08:47 pm

you might want to check what the function parse_url returns and see what the function returns (line 430 or so)

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

thomas

  • Guest
Re: Undefined index: host error message
January 18, 2010, 09:44:29 pm
It returns

Array
(
    [path] => /
)

and my $config has

->userFrameworkBaseURL = "https://localhost/joomla15/administra..."
->userFrameworkResourceURL = "/"

Cheers,
Thomas


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: Undefined index: host error message
January 19, 2010, 05:51:03 am

your: userFrameworkResourceURL seems incomplete

can you goto administer civicrm >> glabal settings >> urls and fix it to be a complete ur

thanx

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

thomas

  • Guest
Re: Undefined index: host error message
January 22, 2010, 04:11:40 pm
That fixed my problem.

Thanks for you help
Thomas

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Undefined index: host error message

This forum was archived on 2017-11-26.