Hi All, I'm new to PHP & I'm trying to send mail using PHPMailer & I get the following error: **************************************************************************** Warning: require_once( ) [function.require-once]: failed to open stream: Permission denied in C:\xampp\htdocs\mediawiki\includes\UserMailer.php on line 119
Fatal error: require_once() [function.require]: Failed opening required ' ' (include_path='C:\xampp\htdocs\mediawiki;C:\xampp\htdocs\mediawiki\includes;C:\xampp\htdocs\mediawiki\languages;C: mpp\php\PHPMailer_v5.1\class.phpmailer.php;C: mpp\php\PHPMailer_v5.1\class.smtp.php;.;C:\xampp\php\PHPMailer_v5.1\class.phpmailer.php;C:\xampp\php\PHPMailer_v5.1\class.smtp.php') in C:\xampp\htdocs\mediawiki\includes\UserMailer.php on line 119
**************************************************************************** line 119 in UserMailer.php is: require_once(' '); & my include_path in the php.ini file is: ".;C:\xampp\php\PHPMailer_v5.1\class.phpmailer.php;C:\xampp\php\PHPMailer_v5.1\class.smtp.php" When I leave the default require_once ('mail.php'), my error becomes: **************************************************************************** Fatal error: Class 'Mail' not found in C:\xampp\htdocs\mediawiki\includes\UserMailer.php on line 154
**************************************************************************** What parameter should I pass to the require_once() method? Thanks in advance. Kamo
On Tue, May 17, 2011 at 11:35 AM, KAMOHELO MOFOKENG kamohelo2003@yahoo.comwrote:
I'm new to PHP & I'm trying to send mail using PHPMailer & I get the following error:
line 119 in UserMailer.php is: require_once(' ');
Don't do that. :) Leave the line as it is and do not attempt to change it.
When I leave the default require_once ('mail.php'), my error becomes:
Do you mean require_once('Mail.php') ? Case can be significant.
Fatal error: Class 'Mail' not found in C:\xampp\htdocs\mediawiki\includes\UserMailer.php on line 154
Confirm that you do in fact have the PEAR::Mail library installed in your PHP include_path, and that there isn't some _other_ "Mail.php" or "mail.php" sitting around within your include_path that's being included instead.
-- brion
Thanks Brion for the speedy response,
Do you mean require_once('Mail.php') ? Case can be significant.
Yes, I'm referencing Mail.php (& not mail.php)
Confirm that you do in fact have the PEAR::Mail library installed in your PHP include_path, and that there isn't some _other_ "Mail.php" or "mail.php" sitting around within your include_path that's being included instead.
My current include_path is: include_path = ".;C:\xampp\php\PHPMailer_v5.1\class.phpmailer.php;C:\xampp\php\PHPMailer_v5.1\class.smtp.php" Do you mean that I should change it to: include_path = ".;C:\xampp\php\PEAR;C:\xampp\php\PHPMailer_v5.1\class.phpmailer.php;C:\xampp\php\PHPMailer_v5.1\class.smtp.php" Thanks
--- On Tue, 5/17/11, Brion Vibber brion@pobox.com wrote:
From: Brion Vibber brion@pobox.com Subject: Re: [Mediawiki-l] Fatal error To: "MediaWiki announcements and site admin list" mediawiki-l@lists.wikimedia.org Date: Tuesday, May 17, 2011, 12:55 PM
On Tue, May 17, 2011 at 11:35 AM, KAMOHELO MOFOKENG kamohelo2003@yahoo.comwrote:
I'm new to PHP & I'm trying to send mail using PHPMailer & I get the following error:
line 119 in UserMailer.php is: require_once(' ');
Don't do that. :) Leave the line as it is and do not attempt to change it.
When I leave the default require_once ('mail.php'), my error becomes:
Do you mean require_once('Mail.php') ? Case can be significant.
Fatal error: Class 'Mail' not found in C:\xampp\htdocs\mediawiki\includes\UserMailer.php on line 154
Confirm that you do in fact have the PEAR::Mail library installed in your PHP include_path, and that there isn't some _other_ "Mail.php" or "mail.php" sitting around within your include_path that's being included instead.
-- brion _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Tue, May 17, 2011 at 12:15 PM, KAMOHELO MOFOKENG kamohelo2003@yahoo.comwrote:
My current include_path is: include_path = ".;C:\xampp\php\PHPMailer_v5.1\class.phpmailer.php;C:\xampp\php\PHPMailer_v5.1\class.smtp.php"
The include_path lists *directories*, which are searched in turn for files. You appear to have put *files* in, which is wrong and will never work.
You should always check the documentation if you're unfamiliar with configuring PHP:
http://de.php.net/manual/en/ini.core.php#ini.include-path
You probably want something like:
include_path=".;C:\xampp\php"
and PEAR::Mail should be installed via the PEAR installer, so it goes in that common include directory in C:\xampp\php.
PEAR also has online documentation including some nice howto guides for installation:
-- brion
Thanks Brion, I'll consult the documentation. I'll let you know if I have any other issues or if I succeed.
Much appreciated.
--- On Tue, 5/17/11, Brion Vibber brion@pobox.com wrote:
From: Brion Vibber brion@pobox.com Subject: Re: [Mediawiki-l] Fatal error To: "MediaWiki announcements and site admin list" mediawiki-l@lists.wikimedia.org Date: Tuesday, May 17, 2011, 1:31 PM
On Tue, May 17, 2011 at 12:15 PM, KAMOHELO MOFOKENG kamohelo2003@yahoo.comwrote:
My current include_path is: include_path = ".;C:\xampp\php\PHPMailer_v5.1\class.phpmailer.php;C:\xampp\php\PHPMailer_v5.1\class.smtp.php"
The include_path lists *directories*, which are searched in turn for files. You appear to have put *files* in, which is wrong and will never work.
You should always check the documentation if you're unfamiliar with configuring PHP:
http://de.php.net/manual/en/ini.core.php#ini.include-path
You probably want something like:
include_path=".;C:\xampp\php"
and PEAR::Mail should be installed via the PEAR installer, so it goes in that common include directory in C:\xampp\php.
PEAR also has online documentation including some nice howto guides for installation:
-- brion _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi All, Just an update on this issue. I'm finally have success but with a twist. ********************************************************************************** Login successful
From MomafWiki
Jump to: navigation, search A confirmation code was sent to your e-mail address. This code is not required to log in, but you will need to provide it before enabling any e-mail-based features in the wiki. Welcome, Kamza! Your account has been created. Do not forget to change your MomafWiki preferences. Return to Main Page. **********************************************************************************
Although the message says "a confirmation code is sent to your e-mail address", I don't get any e-mails. Any suggestions?
--- On Tue, 5/17/11, Brion Vibber brion@pobox.com wrote:
From: Brion Vibber brion@pobox.com Subject: Re: [Mediawiki-l] Fatal error To: "MediaWiki announcements and site admin list" mediawiki-l@lists.wikimedia.org Date: Tuesday, May 17, 2011, 1:31 PM
On Tue, May 17, 2011 at 12:15 PM, KAMOHELO MOFOKENG kamohelo2003@yahoo.comwrote:
My current include_path is: include_path = ".;C:\xampp\php\PHPMailer_v5.1\class.phpmailer.php;C:\xampp\php\PHPMailer_v5.1\class.smtp.php"
The include_path lists *directories*, which are searched in turn for files. You appear to have put *files* in, which is wrong and will never work.
You should always check the documentation if you're unfamiliar with configuring PHP:
http://de.php.net/manual/en/ini.core.php#ini.include-path
You probably want something like:
include_path=".;C:\xampp\php"
and PEAR::Mail should be installed via the PEAR installer, so it goes in that common include directory in C:\xampp\php.
PEAR also has online documentation including some nice howto guides for installation:
-- brion _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
KAMOHELO MOFOKENG wrote:
Hi All,
Just an update on this issue.
I'm finally have success but with a twist.
Although the message says "a confirmation code is sent to your e-mail address", I don't get any e-mails.
Any suggestions?
Maybe you didn't configure the mail parameters correctly? http://www.mediawiki.org/wiki/Manual:$wgSMTP
It could also be that the host is rejecting your emails / tagging them as spam, or simply dropping them.
mediawiki-l@lists.wikimedia.org