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) »
  • include_path error after upgrade to WordPress 3.4.2
Pages: [1]

Author Topic: include_path error after upgrade to WordPress 3.4.2  (Read 706 times)

wingfingerbill

  • I’m new here
  • *
  • Posts: 18
  • Karma: 1
  • CiviCRM version: 4.4.14
  • CMS version: WordPress 4.1.1
  • MySQL version: 5.6.23
  • PHP version: 5.5.23
include_path error after upgrade to WordPress 3.4.2
November 14, 2012, 04:03:35 am
Hi

After upgrading a site from WP 3.4.1 to 3.4.2, I've been getting this error...

Code: [Select]
Warning: require_once(wp-includes/pluggable.php) [function.require-once]: failed to open stream: No such file or directory in [path to plugins folder]/civicrm/civicrm.php on line 333

Fatal error: require_once() [function.require]: Failed opening required 'wp-includes/pluggable.php' (include_path='.:[path to plugins folder]/civicrm/civicrm/:[path to plugins folder]/civicrm/civicrm//packages:.:/usr/local/php53/lib/php') in [path to plugins folder]/civicrm/civicrm.php on line 333

I've found a fix for it (at http://www.geeksengine.com/article/php-include-path.html) by adding the following to my WP theme's functions.php file...

Code: [Select]
$path = [path to wordpress folder]; 
set_include_path(get_include_path() . PATH_SEPARATOR . $path);

However, I'd be happier if I knew why the WP upgrade was causing the problem in the first place - particularly if it's related to a security issue.

The Civi version is 4.1.3 - as we haven't yet been able to upgrade successfully to 4.2.0

The error is triggered by this shortcode in an event post...

Code: [Select]
[civicrm component="event" id="4" mode="live" action="info"]
If anyone has any light to shed on this - much appreciated.

Thanks

Bill

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • include_path error after upgrade to WordPress 3.4.2

This forum was archived on 2017-11-26.