Page 1 of 1

failed to open stream: No such file or directory

Posted: Sun Apr 16, 2006 5:47 pm
by sofajoe
i have tried to install the module CMSMailer, but get an error message No such file or directory - but i checked that the file (phpmailer/class.phpmailer.php) it refersĀ  to is there in the right place. I couldn't see anyone else posting this error and wonder what i am doing wrong?

here is my error message:

Code: Select all

Warning: main(phpmailer/class.phpmailer.php): failed to open stream: No such file or directory in /usr/local/home/httpd/vhtdocs/51degreesnorth.net/lasainteunion/modules/CMSMailer/CMSMailer.module.php on line 28

Fatal error: main(): Failed opening required 'phpmailer/class.phpmailer.php' (include_path='') in /usr/local/home/httpd/vhtdocs/51degreesnorth.net/lasainteunion/modules/CMSMailer/CMSMailer.module.php on line 28
any ideas?

Re: failed to open stream: No such file or directory

Posted: Thu Apr 20, 2006 11:49 am
by sofajoe
I have sussed it at last - I knew if I bang my head against the wall long enough the answer sinks in.

the answer was that I had to put:
ini_set("include_path", "phpmailer/class.phpmailer.php");
above
require_once('phpmailer/class.phpmailer.php' );

In the CMSMailer.module.php file

and it allows the module to be installed