Mail configuration in Bugzilla - perl

I've installed bugzilla in my local machine (Windows 7) and its working good. But when I try to create a new account it says:
Traceback:
at Bugzilla/Mailer.pm line 179.
Bugzilla::Mailer::MessageToMTA(...) called at Bugzilla/Token.pm line 89
Bugzilla::Token::issue_new_user_account_token(...) called at Bugzilla/User.pm line 2423
Bugzilla::User::check_and_send_account_creation_confirmation(...) called at C:/bugzilla/createaccount.cgi line 39
I followed the documentation provided in bugzilla. But unable to resolve this issue. Can anyone help this?

Related

Protocol error when using Net:SSH:Perl module

I have a script that uses Net::SSH:Perl module. It is able to ssh to RHEL6.9 hosts but not RHEL7.4 hosts. I get the following error:
Protocol error: expected packet type 91, got 80 at /Net/SSH/Perl/Packet.pm line 221
How do I remedy this?
A simple search for the error message gives this post from 2016 and this bug report from 2016 which both indicate that the issue was fixed in version 2.01 of the module, released in 10/2016. Thus, you are probably using an older version and need to upgrade.

Moodle 2.6 mailer not working properly

I'm having trouble with moodle mailer , problem is that moodle is not sending mail after registration to student and when somebody click forgotten password mail doesnt come to user also.
Error logs are empty
I tried to change to send via smtp servers but is not working
My moodle version is 2.6.1 and i cannot upgrade to higher version.
Can somebody please help me with this trouble ?
This is error log:
Error code: filenotfound
* line 463 of /lib/setuplib.php: moodle_exception thrown
* line 1948 of /lib/filelib.php: call to print_error()
* line 1201 of /lib/outputlib.php: call to send_file_not_found()
* line 94 of /theme/essential/lib.php: call to theme_config->setting_file_serve()
* line 4628 of /lib/filelib.php: call to theme_essential_pluginfile()
* line 37 of /pluginfile.php: call to file_pluginfile()
Edit your config.php and enter this
$CFG->debugsmtp = true;
Or go to site admin -> development -> debugging -> and check 'Debug email sending'
It will show verbose messages when sending email so might show what's wrong.
Alternatively, use an editor with xdebug enabled (I use Netbeans IDE) - then add a breakpoint at the start of the function email_to_user() in /lib/moodlelib.php - Then step through until it fails.
Problem Solved
I had to set port in lib/moodlelib.php to 465 (My provider want me to use 587)

Fatal error: Class 'PEAR' not found in /home/user1/public_html/go-pear.php on line 697

When trying to install PEAR by running go-pear.php (from the root of a cPanel GoDaddy hosted account), I get the following error:
Starting installation ... Loading zlib: ok
Bootstrapping Installer...................
Bootstrapping PEAR5.php............(remote) ok
Bootstrapping PEAR.php............(remote) ok
Bootstrapping Archive/Tar.php............(remote) ok
Bootstrapping Console/Getopt.php............(remote) ok
Fatal error: Class 'PEAR' not found in /home/alessio1/public_html/go-pear.php on line 697
line 697 is the following: PEAR::setErrorHandling(PEAR_ERROR_DIE,
"\n%s\n");
The file go-pear.php was taken directly from http://pear.php.net/go-pear without any modification.
What am I doing wrong?
I had the same error, and managed to solve it replacing the links stored in $bootstrap_files to :
$bootstrap_files = array(
'PEAR5.php' => 'https://raw.githubusercontent.com/pear/pear-core/master/PEAR5.php',
'PEAR.php' => 'https://raw.githubusercontent.com/pear/pear-core/master/PEAR.php',
'Archive/Tar.php' => 'https://raw.githubusercontent.com/pear/Archive_Tar/master/Archive/Tar.php',
'Console/Getopt.php' => 'https://raw.githubusercontent.com/pear/Console_Getopt/master/Console/Getopt.php',
);
I also had this error and found that KevinD's fix didn't work for me, but was able to figure something out based on it. To solve the problem I replaced the line
'Console/Getopt.php' => 'https://raw.github.com/pear/Console_Getopt/trunk/Console/Getopt.php',
with
'Console/Getopt.php' => 'https://raw.githubusercontent.com/pear/Console_Getopt/trunk/Console/Getopt.php',
The install completed nearly instantly for me after this change.
Use the .phar file: http://pear.php.net/go-pear.phar
It should work better.
Pay attenction: Sometimes the problem is caused because of the blocking of fsocket() php function.
Server-to-server communication is sometimes used to commit abuses for example internet attacks.
Many free hosting companies block fsocket() function by default, and sometimes you have to authenticate yourself (providing information about you) to use this function.

remote debug from windows to unix ClassNotFoundException

I'm trying to configure eclipse running on windows to remote debug a java application i have running on a unix box. The remote debugger connects but the Launcher fails with the following stack trace:
Thread [main] (Suspended (exception ClassNotFoundException))
URLClassLoader$1.run() line: 200 [local variables unavailable]
AccessController.doPrivileged(PrivilegedExceptionAction<T>, AccessControlContext) line: not available [native method]
Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 188
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 306
Launcher$AppClassLoader.loadClass(String, boolean) line: 268
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 251
Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: 319
I have the project src referenced in the Source tab of the debug config, the default dir contains the jars a I need and I checked 'Search for duplicate source files on the path' incase that made any difference... it didn't.
when stepping through I noticed the AppClassLoader has a URLClasspath member called ucp which has the a path ArrayList containing items from the unix classpath (ie unix paths like: /home/example.jar ) - I'm wondering if these are trying to be resolved on windows (the debug session I'm running in eclipse) which is causing the error ??
I've been searching the web for answers all day without luck - has anyone dealt with this before or got and suggestion how to resolve ?
thanks in advance...

Zend_Form doesn't load on deployment

Can't figure this one out. It worked in my local environment. Everything is at the right place but the server still can't find it:
**Warning: include_once(Zend/Form/Element/TextArea.php) [function.include-once]: failed to open stream: No such file or directory in /is/htdocs/xxxx/www/mensenenjij/library/Zend/Loader.php on line 146
Warning: include_once() [function.include]: Failed opening 'Zend/Form/Element/TextArea.php' for inclusion (include_path='/is/htdocs/xxxx/www/mensenenjij/application/../library:/is/htdocs/xxxx/www/mensenenjij/library:.:/usr/share/pear/php5') in /is/htdocs/xxxx/www/mensenenjij/library/Zend/Loader.php on line 146
Fatal error: Class 'Zend_Form_Element_TextArea' not found in /is/htdocs/xxxx/www/mensenenjij/library/Mensenenjij/Form/Contact.php on line 52**
Thanks
I'm assuming by the class it's trying to load, you're using Windows on your local env, and a Linux distro on your deployment server?
If you are, Linux is case sensitive. Try using Zend_Form_Element_Textarea instead.