There was a problem loading the comments.

Blank page caused by PEAR Missing file

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

If customer get blank page on php script which caused by pear missing file, see error_log

 

You will get

 

[09-Apr-2014 13:29:56 UTC] PHP Warning:  require_once(Mail.php): failed to open stream: No such file or directory in /home/bazichic/public_html/_inc/appLayer.php on line 6
[09-Apr-2014 13:29:56 UTC] PHP Fatal error:  require_once(): Failed opening required 'Mail.php' (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/bazichic/public_html/_inc/appLayer.php on line 6

/opt/alt/php54/usr/share/php >> This one means customer is using PHP 5.4 in PHP Selector

So now you want to install the pear MAIL to the selector folder

Run below (becareful of the php54, it can be php52 depending on php version)

/opt/alt/php54/usr/bin/pear install Mail

After that, update cagefs skeleton directory

cagefsctl --force-update

 

done.

 

Another common libary is Mail/mime.php

Then run

/opt/alt/php54/usr/bin/pear install Mail_mail

You can check the packages from http://pear.php.net/index.php


Share via
Did you find this article useful?  

Related Articles

© ServerFreak Technologies Sdn Bhd