Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Bug #20218 wrong include path: `require_once('Mail/mimePart.php')` within Mail/mime.php
Submitted: 2014-03-15 01:20 UTC
From: danielschulzjackson Assigned:
Status: Bogus Package: Mail_Mime (version 1.8.8)
PHP Version: Tried different versions. 5.3x, 5.4x. OS: Ubuntu 12.04
Roadmaps: 1.8.9    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 35 + 22 = ?

 
 [2014-03-15 01:20 UTC] danielschulzjackson (Daniel Schulz-Jackson)
Description: ------------ CODE WAS PREVIOUSLY: Mail/mime.php on line 75: require_once 'Mail/mimePart.php'; WAS GETTING THE ERROR: [Fri Mar 14 14:07:09 2014] [error] [client 127.0.0.1] PHP Warning: require_once(Mail/mimePart.php): failed to open stream: No such file or directory in /var/www/bring-a-trailer/wp- content/plugins/batmail/Mail/mime.php on line 75 [Fri Mar 14 14:07:09 2014] [error] [client 127.0.0.1] PHP Fatal error: require_once(): Failed opening required 'Mail/mimePart.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/bring-a- trailer/wp-content/plugins/batmail/Mail/mime.php on line 75 FIXED THE ERROR BY CHANGING TO: require_once 'mimePart.php'; EXPLANATION: This file (Mail/mime.php) is already in the Mail folder. mimePart.php is also in THIS folder. so I'm removing the leading Mail/. Yup, that fixed it on my local site. I wonder why that wasn't causing a fatal error in the live site. Perhaps if there's no 'Mail" folder in ./ then newer php versions will pull some voodoo and look for a 'Mail' folder in ../ ? I'm updating my php to test this. It was still broken in an php 5.4x installation. When I upgrated to php 5.5x, my localhost webserver stopped working, so now I have bigger fish to fry than making this bug report. :-) Let me know if you have any questions. Thanks, Test script: --------------- require_once('Mail/mimePart.php')

Comments

 [2014-03-15 01:22 UTC] danielschulzjackson (Daniel Schulz-Jackson)
-PHP Version: Irrelevant +PHP Version: Tried different versions. 5.3x, 5.4x.
 [2014-03-22 13:33 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Bogus
http://au2.php.net/set_include_path