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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Moved Joomla root folder- CRM Error
Pages: [1]

Author Topic: Moved Joomla root folder- CRM Error  (Read 7629 times)

leahb

  • Guest
Moved Joomla root folder- CRM Error
February 25, 2009, 04:20:09 pm
Hi -

I have moved my JOOMLA folder up from a subdirectory to the main root directory.  I have adjusted the civicrm.settings.php file to reflect the changes, however I am still getting the following error when I try to access CiviCRM on the backend:

Quote
Fatal error: Uncaught exception 'Exception' with message 'XML data could not be loaded. Make sure you specified the correct path.' in /home/ncheroes/public_html/administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php:217 Stack trace: #0 /home/ncheroes/public_html/administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php(108): IDS_Filter_Storage->getFilterFromXML() #1 /home/ncheroes/public_html/administrator/components/com_civicrm/civicrm/packages/IDS/Monitor.php(167): IDS_Filter_Storage->__construct(Object(IDS_Init)) #2 /home/ncheroes/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/IDS.php(117): IDS_Monitor->__construct(Array, Object(IDS_Init)) #3 /home/ncheroes/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(74): CRM_Core_IDS->check(Array) #4 /home/ncheroes/public_html/administrator/components/com_civicrm/admin.civicrm.php(45): CRM_Core_Invoke::invoke(Array) #5 /home/ncheroes/public_html/administrator/components/com_civicrm/admin.civic in /home/ncheroes/public_html/administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php on line 217

I get this error when I try to access our donate page from the front end
Quote
Warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/ncheroes/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/ncheroes/public_html/cms/administrator/components/com_civicrm/civicrm:/home/ncheroes/public_html/cms/administrator/components/com_civicrm/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/ncheroes/public_html/components/com_civicrm/civicrm.php on line 19

Anyone know what to do?  Or do I need to totally re-install CiviCRM?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Moved Joomla root folder- CRM Error
February 25, 2009, 05:34:10 pm
Have you tried these steps?

http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location
Protect your investment in CiviCRM by  becoming a Member!

leahb

  • Guest
Re: Moved Joomla root folder- CRM Error
February 26, 2009, 06:36:46 am
yes - but I can't get past step 6 - it gives me the same error as before:

Quote
Fatal error: Uncaught exception 'Exception' with message 'XML data could not be loaded. Make sure you specified the correct path.' in /home/ncheroes/public_html/administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php:217 Stack trace: #0 /home/ncheroes/public_html/administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php(108): IDS_Filter_Storage->getFilterFromXML() #1 /home/ncheroes/public_html/administrator/components/com_civicrm/civicrm/packages/IDS/Monitor.php(167): IDS_Filter_Storage->__construct(Object(IDS_Init)) #2 /home/ncheroes/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/IDS.php(117): IDS_Monitor->__construct(Array, Object(IDS_Init)) #3 /home/ncheroes/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(74): CRM_Core_IDS->check(Array) #4 /home/ncheroes/public_html/administrator/components/com_civicrm/admin.civicrm.php(45): CRM_Core_Invoke::invoke(Array) #5 /home/ncheroes/public_html/administrator/components/com_civicrm/admin.civic in /home/ncheroes/public_html/administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php on line 217

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: Moved Joomla root folder- CRM Error
February 26, 2009, 06:45:49 am

1. Can you try deleting the directory: media/civicrm/upload/ and see if that fixes it

2. if not,  for now, the easiest option would be to comment out line 74 in CRM/Core/Invoke.php get the site working and then uncomment it out

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

leahb

  • Guest
Re: Moved Joomla root folder- CRM Error
February 26, 2009, 07:33:34 am
That worked on the backend!  That is now up and running smooth, but I am still getting the error on the front end:

Quote
Warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/ncheroes/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/ncheroes/public_html/cms/administrator/components/com_civicrm/civicrm:/home/ncheroes/public_html/cms/administrator/components/com_civicrm/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/ncheroes/public_html/components/com_civicrm/civicrm.php on line 19

I have combed through the civicrm.php file, the civicrm_settings.php files, all I can think of and the base urls are all correct - so I cant figure out why I am getting this error.  The bold is the old subdirectory I have removed on all files, but it still shows up in this error.

leahb

  • Guest
Re: Moved Joomla root folder- CRM Error
February 26, 2009, 10:55:59 am
Fixed it!  Apparentley I was unaware that there are 3 civicrm_settings.php files. (one under components, one under administrator, and one in my site root).  I had missed the one in my site root.  Thanks!

greache

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Re: Moved Joomla root folder- CRM Error
May 25, 2010, 11:00:03 pm
This works for me to comment out line 79 in com_civicrm/civicrm/CRM/Core/Invoke.php - but do I need it?

Am I missing something ?? when I uncomment it it breaks again.

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: Moved Joomla root folder- CRM Error
July 12, 2010, 02:05:11 pm
Lobo, could you help me on this, I think I have done everything correctly, but I am also getting this..
Code: [Select]
Fatal error: Uncaught exception 'Exception' with message 'XML data could not be loaded. Make sure you specified the correct path.' in /home/dcrr/public_html/www2/administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php:220 Stack trace: #0 /home/dcrr/public_html/www2/administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php(111): IDS_Filter_Storage->getFilterFromXML() #1 /home/dcrr/public_html/www2/administrator/components/com_civicrm/civicrm/packages/IDS/Monitor.php(189): IDS_Filter_Storage->__construct(Object(IDS_Init)) #2 /home/dcrr/public_html/www2/administrator/components/com_civicrm/civicrm/CRM/Core/IDS.php(142): IDS_Monitor->__construct(Array, Object(IDS_Init)) #3 /home/dcrr/public_html/www2/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(84): CRM_Core_IDS->check(Array) #4 /home/dcrr/public_html/www2/administrator/components/com_civicrm/admin.civicrm.php(72): CRM_Core_Invoke::invoke(Array) #5 /home/dcrr/public_html/www2/administrator/components/com_civicrm/admi in /home/dcrr/public_html/www2/administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php on line 220

I am trying to move a whole joomla installation from one server to another, the two config files seem to be correct, I just can't get it going and the  invoke.php file seems to be a little different in 3.1.5

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Moved Joomla root folder- CRM Error
July 12, 2010, 02:29:46 pm
Have you done this step already?

go to:
/media/civicrm/templates_c/
and delete the contents of that directory. the IDS cache is stored there and needs to be cleaned out and rebuilt to reflect the new folder location of your site.
Protect your investment in CiviCRM by  becoming a Member!

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: Moved Joomla root folder- CRM Error
July 13, 2010, 09:27:45 am
Thanks Dave, that worked perfectly.

B.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Moved Joomla root folder- CRM Error

This forum was archived on 2017-11-26.