Sc_url_library not working

Good morning,

Production and Dev environment use php 7.0 and built using scriptcase 9.4.031

error is: Fatal error : require_once(): Failed opening required ‘…/_lib/libraries/sys/PHPmailer5/PHPmailer/class.phpmailer.php’ (include_path=’.:/opt/cpanel/ea-php70/root/usr/share/pear’)

The phpmailer library I setup works fine in dev but when put live it cannot find the files needed. I have been forced to go into an app that uses this library and manually add a reference to it as well as copy these filed to the application directory

here is an example

//added manually
require_once DIR .’/class.phpmailer.php’;
require_once DIR .’/class.smtp.php’;
//end manual add

require_once sc_url_library(‘sys’, ‘PHPmailer5’, ‘PHPmailer/class.phpmailer.php’);

require_once sc_url_library(‘sys’, ‘PHPmailer5’, ‘PHPmailer/class.smtp.php’);

any idea what i may be doing wrong here or what I am missing?

I did try setting those two files class.phpmailer and class.smtp to full rights (777) but same result.

The files are indeed there I just don’t know why they are not working with SC_URL_LIBRARY



please note that the forum is trimming off the underscores before and after the DIR