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 »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • error after moving wordpress site from /new/ folder to root folder
Pages: [1]

Author Topic: error after moving wordpress site from /new/ folder to root folder  (Read 3798 times)

netfusion

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: latest one
  • CMS version: wordpress
  • MySQL version: 5.1
  • PHP version: 5.3
error after moving wordpress site from /new/ folder to root folder
September 19, 2012, 02:09:36 pm
Hi There,
Civic crm was working ok until I moved the wordpress site from
http://www.hawaiispace.com/new/  to  http://www.hawaiispace.com/

I edited the civicrm.settings.php file and removed the /new/ path from the lines of code that I could see.
Pls advise if ive missed something, when I login to wordpress and click Civic Crm I get this message:

Warning: require_once(CRM/Core/ClassLoader.php) [function.require-once]: failed to open stream: No such file or directory in /home/hawaiisp/public_html/hawaiispace.com/wp-content/plugins/civicrm/civicrm.settings.php on line 282

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/ClassLoader.php' (include_path='.:/home/hawaiisp/public_html/wp-content/plugins/civicrm/civicrm/:/home/hawaiisp/public_html/wp-content/plugins/civicrm/civicrm//packages:.:/usr/local/php53/lib:/usr/lib/php:/usr/local/lib/php') in /home/hawaiisp/public_html/hawaiispace.com/wp-content/plugins/civicrm/civicrm.settings.php on line 282

thanks, Jon
« Last Edit: September 20, 2012, 03:09:49 pm by netfusion »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: error after moving wordpress site from /new/ folder to root folder
September 20, 2012, 01:25:22 pm
Hard to say what the problem is. One way to debug would be to rename your civicrm.settings.php and then reinstall CiviCRM into a temporary database. Then edit civicrm.settings.php to point to your real CiviCRM DB. Then you are assured that civicrm.settings.php is correct.
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.

netfusion

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: latest one
  • CMS version: wordpress
  • MySQL version: 5.1
  • PHP version: 5.3
Re: error after moving wordpress site from /new/ folder to root folder
September 20, 2012, 04:16:48 pm
Hi, I renamed the civicrm.settings.php file and started fresh, a new Mysql database, then installed via wordpress, but when I go to configure I get this message:

Fatal error: Uncaught exception 'Exception' with message 'XML data could not be loaded. Make sure you specified the correct path.' in /home/hawaiisp/public_html/hawaiispace.com/wp-content/plugins/civicrm/civicrm/packages/IDS/Filter/Storage.php:220 Stack trace: #0 /home/hawaiisp/public_html/hawaiispace.com/wp-content/plugins/civicrm/civicrm/packages/IDS/Filter/Storage.php(111): IDS_Filter_Storage->getFilterFromXML() #1 /home/hawaiisp/public_html/hawaiispace.com/wp-content/plugins/civicrm/civicrm/packages/IDS/Monitor.php(189): IDS_Filter_Storage->__construct(Object(IDS_Init)) #2 /home/hawaiisp/public_html/hawaiispace.com/wp-content/plugins/civicrm/civicrm/CRM/Core/IDS.php(140): IDS_Monitor->__construct(Array, Object(IDS_Init)) #3 /home/hawaiisp/public_html/hawaiispace.com/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(76): CRM_Core_IDS->check(Array) #4 /home/hawaiisp/public_html/hawaiispace.com/wp-content/plugins/civicrm/civicrm.php(271): CRM_Core_Invoke::invoke(Array) #5 [internal function]: civicrm_wp_invoke('') # in /home/hawaiisp/public_html/hawaiispace.com/wp-content/plugins/civicrm/civicrm/packages/IDS/Filter/Storage.php on line 220

not sure what to do as this was a fresh install. I had removed the plugin and re uploaded it..
pls advise, thanks, Jon

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: error after moving wordpress site from /new/ folder to root folder
September 21, 2012, 01:51:01 am
Removing Config.IDS.ini file from log directory should solve IDS error.

Also check http://wiki.civicrm.org/confluence/display/CRMDOC42/Moving+an+Existing+Installation+to+a+New+Server+or+Location for any other errors you might encounter.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

netfusion

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: latest one
  • CMS version: wordpress
  • MySQL version: 5.1
  • PHP version: 5.3
Re: error after moving wordpress site from /new/ folder to root folder
September 21, 2012, 12:42:50 pm
Thanks Deepak, I checked this folder but didnt see it:
/public_html/hawaiispace.com/wp-content/plugins/civicrm/civicrm/CRM/Logging
pls advise, maybe im looking at the wrong log folder? thanks, Jon

netfusion

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: latest one
  • CMS version: wordpress
  • MySQL version: 5.1
  • PHP version: 5.3
Re: error after moving wordpress site from /new/ folder to root folder
September 21, 2012, 12:44:51 pm
Hi Deepak, its ok, I found it, thanks a lot!! :D

JimmyScott

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Wordpress 3.8.1
  • MySQL version: 5
  • PHP version: 5.4.3
Re: error after moving wordpress site from /new/ folder to root folder
January 29, 2014, 03:20:20 pm
Incase anyone else comes across this looking for an answer...

Within civicrm.settings.php:

$civicrm_root = __DIR__ . '/civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', __DIR__ . '/../files/civicrm/templates_c/' );

Basically remove the absolute path and use __DIR__ to replace it. This worked for me when I moved from a live linux based server to my local development on windows as /var/ etc is obviously not the path I was using locally. Not sure why it isn't automatically done this way.

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: error after moving wordpress site from /new/ folder to root folder
January 30, 2014, 10:26:53 am

thats a really nice idea, a bit surprised that no one thought about that till now.

we'll need to tweak those paths for the different CMS'es which the installer can do.

Wanna file an issue for this, so it can be addressed in 4.5. Would be great if you can also submit a patch for the 3 CMS's (Drupal, Joomla, WP)

thanx for the brilliant suggestion :)

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) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • error after moving wordpress site from /new/ folder to root folder

This forum was archived on 2017-11-26.