47504

PHP require_once(): Failed opening required include_path

Question:

Im using Php 7.1 in windows.

<strong>Error i get:</strong>

<blockquote>

PHP Fatal error: require_once(): Failed opening required 'Suite_dev/service/v4_1/SugarWebServiceImplv4_1.php' (include_path='D:/Ampps/php-7.1/pear') in D:\Ampps\www\Suite_dev\custom\service\v4_1_custom\SugarWebServiceImplv4_1_custom.php on line 4

</blockquote>

<strong>Workaround</strong> i did in php ini file:

; Windows: "\path1;\path2" include_path = "{$path}\php-7.1\pear"

Downloaded and installed php pear and tested pear is working.

Even after pear is installed, i still get above error.

Also tried something like:

include('../../../service/v4_1/SugarWebServiceImplv4_1.php');

Still i get the same error.

Answer1:

includes in Sugar are usually relative paths based on Sugar's main folder.

So should be service/v4_1/SugarWebServiceImplv4_1.php <em>without</em> a leading Suite_dev/

Recommend

  • how can get the FPDF library
  • Fatal error: require(): Failed opening required 'C:\\wamp\\www\\sep24\\e/src/functions.
  • php session and path setting
  • Zend Failed opening Zend/Application.php
  • Laravel 5 how to include autoload.php
  • Where I store the custom exceptions in cakephp 3?
  • Deserialize Dictionary
  • CSV and MS-DOS CSV Formats
  • TextBox AutoCompleteStringCollection Suggest
  • jQuery timepicker 'Object does not support this property or method'
  • Core Data To-Many Relationship Creating Duplicates When Adding Object to Parent Entity
  • Can I use Jquery to automatically find and set the width and height of a variety of images?
  • CKeditor stripping font tags instead of converting to span
  • Is there a way to clone native functions in javascript like window.alert or document.write
  • Programatically open file in visual studio
  • Want to understand iframe breakout code
  • Can't get plist URL in Swift
  • Pass array from parent template to child template
  • using html data-attributes as css-variable (i.e. text-shadow)
  • How do I formally document a C# Attribute in UML?
  • Salesforce Different WSDL files and when to use
  • android.support.v7.widget.Toolbar VectorDrawableCompat IllegalStateException when using support lib
  • Specifying Castle WCF Integration Facility Endpoint Behavior per Endpoint
  • Eloquent update method change created_at timestamp
  • custom UITableViewCell with image for highlighting
  • How do I access an unhandled exception in an MVC Error view?
  • Google Custom Search with transparent background
  • C++ Partial template specialization - design simplification
  • NHibernate Validation Localization with S#arp Architecture
  • FB SDK and cURL: Unknown SSL protocol error in connection to graph.facebook.com:443
  • Is there a amazon webstore API for customers?
  • Bug in WPF DataGrid
  • Redux, normalised entities and lodash merge
  • Upload files with Ajax and Jquery
  • Do I've to free mysql result after storing it?
  • Circular dependency while pushing http interceptor
  • A cron job substitute?
  • json Serialization in asp
  • Angular 2 constructor injection vs direct access
  • how does django model after text[] in postgresql [duplicate]