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) »
  • Joomla Migration Errors
Pages: [1] 2

Author Topic: Joomla Migration Errors  (Read 5339 times)

eracha

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 3.2
  • CMS version: Joomla 1.5
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Joomla Migration Errors
July 16, 2011, 11:49:30 am
Hi all,
I hope some here can help me with this. I recently moved my website to a new server and followed the instructions on this link:
wiki.civicrm.org/confluence/display/CRMDOC33/Moving+an+Existing+Installation+to+a+New+Server+or+Location

After doing all what I thought was right, i still keep getting this error:

Warning: file_put_contents(/home1/my_old_server/public_html/mydomain/media/civicrm/templates_c/en_US/ConfigAndLog/Config.IDS.ini) [function.file-put-contents]: failed to open stream: No such file or directory in /home1/my_new_server/public_html/mydomain/administrator/components/com_civicrm/civicrm/CRM/Core/IDS.php on line 121

We could not write /home1/my_old_server/public_html/mydomain/media/civicrm/templates_c/en_US/ConfigAndLog/Config.IDS.ini. Have you moved your site directory or server?

I have deleted all files in : <joomla-root>/media/civicrm/templates_c/,
but still keep getting the same error as above.

I will appreciate any help.
Thanks

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Joomla Migration Errors
July 16, 2011, 06:25:38 pm
I have a feeling I have sometimes temporarily created this path

/home1/my_old_server/public_html/mydomain/media/civicrm/templates_c/en_US/

& given the server write permission just to get past that error (on drupal but same problem - it's still looking to do one last write to the old location before it gets with the times)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

bit_man

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.0.6
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Joomla Migration Errors
January 03, 2012, 07:21:27 am
Hello,

Did you ever resolve this?

I'm having the same issue currently and am looking for a little assistance.

Thanks,

Max

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Joomla Migration Errors
January 03, 2012, 08:09:51 am
Did you update both civicrm.settings.php files to reflect the new paths?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

bit_man

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.0.6
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Joomla Migration Errors
January 03, 2012, 08:15:49 am
I did. It's currently on an i.p. though. Would that have anything to do with it?

I'm getting this error:

Warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/nhpha/public_html/components/com_civicrm/civicrm.php on line 19

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/home/public_html/administrator/components/com_civicrm/civicrm:/home/public_html/administrator/components/com_civicrm/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/nhpha/public_html/components/com_civicrm/civicrm.php on line 19


Where nhpha is before the public html shoud not be there and does not exist in the civicrm.settings.php. That would have been there on the old server though, so for some reason it is getting carried over.

Thanks for the help and hopefully we can get his resolved.

-Max

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Joomla Migration Errors
January 03, 2012, 08:19:26 am
> I did. It's currently on an i.p. though. Would that have anything to do with it?

The URL does not matter. So long as it matches what's in civicrm.settings.php

Did you run in MySQL:

Code: [Select]
UPDATE `civicrm_domain` SET `config_backend`=NULL ;
Other option would be to make a fresh database and reinstall Joomla and CiviCRM, just to get the settings file right. Then edit those files to point to your real database.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

bit_man

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.0.6
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Joomla Migration Errors
January 03, 2012, 08:27:35 am
Thanks for the help, but I keep getting the same error.

On the admin side the error is:

Warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/nhpha/public_html/administrator/components/com_civicrm/admin.civicrm.php on line 40

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/home/public_html/administrator/components/com_civicrm/civicrm:/home/public_html/administrator/components/com_civicrm/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/nhpha/public_html/administrator/components/com_civicrm/admin.civicrm.php on line 40

I guess I'll try redoing it.

Quick question: could you explain what to do here in the migration process: joomla_db_name > dump_file_name_of_your_choice.sql

What file should I dump there?

Thanks

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Joomla Migration Errors
January 03, 2012, 08:41:21 am
Quote from: maxbit on January 03, 2012, 08:27:35 am
I guess I'll try redoing it.

Sounds good.

Quote from: maxbit on January 03, 2012, 08:27:35 am
Quick question: could you explain what to do here in the migration process: joomla_db_name > dump_file_name_of_your_choice.sql

What file should I dump there?

Name the file as you wish. This is just used to transfer the database from the old server to the new one. The actual name of the file doesn't matter.

If your URL is an IP address like 123.123.123.123 that's fine and if it's a directory of an IP such as 123.123.123.123/maxbit that's also fine. Technically speaking, these are just URLs same as any other. CiviCRM doesn't care of the URL has letters or numbers. :)

The directory aspect can cause issues sometimes, but that's any directory, not just one on an IP address. But try a fresh install and see if that works.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

bit_man

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.0.6
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Joomla Migration Errors
January 03, 2012, 11:45:42 am
I tried all this and am still getting the same error ???

If I reinstall joomla and civi, how would I recover and upload the files I've been working on for months?

Thanks,

-Max

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Joomla Migration Errors
January 03, 2012, 11:49:52 am
What files? You should not lose any files. But if you have concern, make a backup of your files first.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

bit_man

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.0.6
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Joomla Migration Errors
January 03, 2012, 11:53:29 am
Everything that I've done in Civi. I've created all kinds of events/memberships etc. If I reinstall, how will I recover that from my temp site?

bit_man

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.0.6
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Joomla Migration Errors
January 03, 2012, 11:54:34 am
I also got a syntax error when trying to do this:

On the old server:
$ mysqldump -u mysql_username -p --ignore-table=joomla_db_name.civicrm_domain \
--ignore-table=joomla_db_name.civicrm_acl_cache \
--ignore-table=joomla_db_name.civicrm_acl_contact_cache --ignore-table=joomla_db_name.civicrm_cache  \
--ignore-table=joomla_db_name.civicrm_group_contact_cache \
joomla_db_name > dump_file_name_of_your_choice.sql

Thanks for the help Hershel.
-Max

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Joomla Migration Errors
January 03, 2012, 11:58:33 am
You install on a test database and then you edit your settings files to connect to your REAL database. You lose nothing that way.

I'm not sure what's wrong with your mysqldump command, but you can skip all of the ignore-table clauses if you want. Or use phpMyAdmin if you have that--it makes exporting a DB very easy.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

bit_man

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.0.6
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Joomla Migration Errors
January 03, 2012, 12:00:55 pm
Okay, I'll give this a try. Thanks again for all of your help Hershel! ;)

bit_man

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.0.6
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Joomla Migration Errors
January 03, 2012, 12:36:11 pm
Okay, it works great on the front end. However on the back end there is a path error that I cannot seem to fix.

If this were my site address: 123.123.123.123/~maxbit

And the admin would be: 123.123.123.123/~maxbit/administrator

However in the I can see the back end of civi, but when I click on a menu item, etc. it takes more to a 404.

For example if i click on administration, I get

http://123.123.123.123/maxbit/administrator/?option=com_civicrm&task=civicrm/admin&reset=1

The ~ is missing. If I add it in there it works fine, but it's not defaulting to it.

Any ideas?

Thanks

-Max

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Joomla Migration Errors

This forum was archived on 2017-11-26.