failed to open stream: No such file or directory

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
sofajoe

failed to open stream: No such file or directory

Post 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?
Last edited by sofajoe on Mon Apr 17, 2006 5:15 pm, edited 1 time in total.
sofajoe

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

Post 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
Locked

Return to “Modules/Add-Ons”