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) »
  • WP 3.8.1, Civi 4.4, install leads to fatal error - require_once ClassLoader.php
Pages: [1]

Author Topic: WP 3.8.1, Civi 4.4, install leads to fatal error - require_once ClassLoader.php  (Read 1724 times)

Hason7

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: 3.8
  • MySQL version: 5.1.69
  • PHP version: 5.3.6
WP 3.8.1, Civi 4.4, install leads to fatal error - require_once ClassLoader.php
February 01, 2014, 07:50:24 pm
I've been working with CiviCRM for a few weeks now.  I've been able to get it installed and setup on my ubuntu server running apache.

However now we are trying to get a production site setup.  I've installed a fresh copy of WordPress 3.8, and uploaded CiviCRM 4.4 into the uploads folder.

As soon as I click activate, I get the following error:

Code: [Select]
Warning: require_once(CRM/Core/ClassLoader.php) [function.require-once]: failed to open stream: No such file or directory in /home/mysite/public_html/wp-content/plugins/civicrm/civicrm.php on line 312

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/ClassLoader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/wp-content/plugins/civicrm/civicrm.php on line 312

Since this is a fatal error, it takes down the front and back of the WordPress site.

All of my research seems to point to people having this issues when they transfer a CiviCRM site, however I can't even get to the install script to specify a database.  I've ensured that my /plugins/files folder is empty and write-able by the web server.

So there's my story.  I've got a ticket into the host to see if they can identify any server issues that would lead to this problem, however if anyone here has suggestions on how to get Civi installed, I would dearly appreciate it!

Thanks!

Jason D

--edit: I should also mention I have disabled all other plugins, and turned off pretty permalinks.
« Last Edit: February 01, 2014, 07:53:54 pm by Hason7 »

Hason7

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: 3.8
  • MySQL version: 5.1.69
  • PHP version: 5.3.6
Re: WP 3.8.1, Civi 4.4, install leads to fatal error - require_once ClassLoader.php
February 02, 2014, 11:51:41 am
Apparently, Civi 4.3.1 installs without error.  I guess something changed between 4.3.1 and 4.3.7.

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Re: WP 3.8.1, Civi 4.4, install leads to fatal error - require_once ClassLoader.php
February 05, 2014, 02:17:52 pm
Who's you web host?  Do they meet the requirements for CiviCRM?

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: WP 3.8.1, Civi 4.4, install leads to fatal error - require_once ClassLoader.php
February 09, 2014, 08:44:52 am
Check your wp-content/plugings/civicrm/civicrm.settings.php file and scroll down to the bottom of the file.

Are there two lines referencing "ClassLoader"?  If not, add them manually as described on this page.

Quote
In addition, the following lines need to be added to the very end of the civicrm.settings.php file. The upgrade script will warn you if these lines are not present, and if your file is writable by the web server, the upgrade script will add these lines for you. The simplest thing therefore, is to make sure it's writeable before you upgrade.
Code: [Select]
require_once 'CRM/Core/ClassLoader.php';
CRM_Core_ClassLoader::singleton()->register();

If that is not the problem, the please scan civicrm.settings.php file and make sure that ALL paths to ALL folders are correct in this NEW environment.  Paths may have changed after you move CiviCRM to a new environment, and you must alter this file accordingly.
« Last Edit: February 09, 2014, 08:47:39 am by CiviTeacher.com »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

amtshows

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Wordpress
  • MySQL version: 5
  • PHP version: 5.3
Re: WP 3.8.1, Civi 4.4, install leads to fatal error - require_once ClassLoader.php
April 25, 2014, 10:00:05 am
I'm installing CiviCRM 4.4.5 today on Wordpress 3.9.  This is my first experience with CiviCRM.

It appears that the path indicated in the warning and fatal error message I received after activating the plugin is incorrect. (showing civicrm/civicrm//CRM/Core...)

I found this thread but my instance of CiviCRM has a civicrm.config.php but I do not see the civicrm.settings.php (I assume it has been renamed???)

At the bottom of my civicrm.config.php, I see the necessary TWO references to the ClassLoader so that appears to be correct.

Can someone help me?  Be gentle... I know just enough to be dangerous... (I'm a newbie)

amtshows

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Wordpress
  • MySQL version: 5
  • PHP version: 5.3
Re: WP 3.8.1, Civi 4.4, install leads to fatal error - require_once ClassLoader.php
April 25, 2014, 10:42:30 am
I made some modifications to the /install/index.php and solved my problem (at least for now; although I'm not sure if I created more problems by doing this).

On line 67-71 - each global reference had ONE extra 'civicrm' . DIRECTORY_SEPARATOR included.

I removed one of those references from each line and the installer page in my Wordpress Installer loaded properly.

***UPDATE*** - Install was Successful (according to Wordpress) - BUT - the Configuration Checklist does not appear after install.  Something is still out of place.
« Last Edit: April 25, 2014, 11:27:41 am by amtshows »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • WP 3.8.1, Civi 4.4, install leads to fatal error - require_once ClassLoader.php

This forum was archived on 2017-11-26.