Undefined subroutine &main::user2uid called

After the recent upcp to 11.54.18, we are facing issues with exim in which the mails are not sending properly and the logs shows the following.

failed to expand condition “${if and{{bool_lax{NULL}}{bool_lax{${perl{enforce_mail_permissions}}}}}}” for enforce_mail_permissions router: Undefined subroutine &main::enforce_mail_permissions called.

Fix : rebuild exim conf and copy exim.conf.pl

/scripts/buildeximconf
cp -rpf /etc/exim.pl.local /etc/exim.pl
Advertisements

PHP Parse error – unexpected T_STRING while using xml in php

I have a script like the following

<?xml version=”1.0″ encoding=”utf-8″?>
<?php
// …
?>

It was not working and showing the error PHP Parse error – unexpected T_STRING

Fix : set php short_open_tag to off in php.ini

Reason : you server have short tags enabled, which will cause PHP to try and parse what comes after <?.

no input file speicified in expressionengine

If you are getting the following error while using the software expressionengine with your domain

no input file speicified

This is because your host requires  forcing query strings

Fix : you can fix this by adding a question mark following index.php in the dafault RewriteRule line used in expression engine like following.

RewriteRule ^(.*)$ /index.php?/$1 [L]

mod_hostinglimits:Error on LVE enter: LVE HANDLER(fcgid-script)

I got the 503  error when loading my domain via browser and I was getting the following error from the log.

mod_hostinglimits:Error on LVE enter: LVE( HANDLER(fcgid-script)

This happens due to customer hitting entry processes limit. Entry processes limit restricts the number of concurrent connections to dynamic (php & cgi) scripts for the customer. Otherwise, one site could use up all Apache slots, and cause all the sites to go down.

Fix: You can increase entry processes limit by running:

lvectl set USER_ID –maxEntryProcs NEW_LIMIT –save

If the same user is hitting CPU limit at the same time at the same time as entry processes limit, raising just entry processes limit will not help.  You should find why the user is using too much resources.

 

 

Can’t locate Captcha/reCAPTCHA.pm in @INC

I got the following error in apache error log.

Can’t locate Captcha/reCAPTCHA.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1

Fix : /scripts/perlinstaller Captcha::reCAPTCHA

EasyApache errors

I got the following error when running easyapache.

make[2]: *** [suexec.lo] Error 1
make[2]: Leaving directory `/home/cpeasyapache/src/httpd-2.4/support’
make[1]: *** [suexec] Error 2
make[1]: *** Waiting for unfinished jobs….

Fix :  You can fix the issue by moving the “/home/cpeasyapache/”. It will get regenerated when running EasyApache.