Author Topic: PHP Error for Mail functions  (Read 4740 times)

kennyo

  • Newbie
  • *
  • Posts: 1
    • View Profile
PHP Error for Mail functions
« on: July 07, 2009, 11:13:15 pm »
Error on Email for 1.5b2


Fatal error: require_once() [function.require]: Failed opening required ‘/web/htdocs/library/swift/lib/Swift/Connection/../Stream/Processor.php’ (include_path=’/web/htdocs/library/PEAR:/web/htdocs/library/zend:/web/htdocs:/web/htdocs/application’) in /web/htdocs/library/swift/lib/Swift/Connection/NativeMail.php on line 40

I turned on DEBUG but nothing shows up in cache/log.php

I check the file for existence of  ‘/web/htdocs/library/swift/lib/Swift/Connection/../Stream/Processor.php' and it's there.

Without debug turned on, you would see Error 500:  Internal Server Error message.


I also changed the permission under htdocs to 777 for all files but still does not help.

Regards,
Kenny


lightgod

  • Newbie
  • *
  • Posts: 1
    • View Profile
PHP Error for Mail functions [OpenGoo 1.5final]
« Reply #1 on: August 03, 2009, 04:17:58 am »
Hi!

I have a box with:
Code: [Select]
phoenixchat ~ # php -v
PHP 5.2.10-pl0-gentoo (cli) (built: Aug  3 2009 08:07:46)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with Xdebug v2.0.2, Copyright (c) 2002-2007, by Derick Rethans
phoenixchat ~ # apache2 -v
Server version: Apache/2.2.11 (Unix)
Server built:   Jul 14 2009 15:27:50
phoenixchat ~ # mysqld -V
mysqld  Ver 5.0.70-log for pc-linux-gnu on i686 (Gentoo Linux mysql-5.0.70-r1)
phoenixchat ~ #

If call any Mail Function I get this error message (DUMPed with xDebug):
Code: [Select]
( ! ) Fatal error: require_once() [function.require]:
Failed opening required
'/webroot/wsys-engine.hu/project.wsys-engine.hu/library/swift/lib/Swift/Connection/../Stream/Processor.php'
(include_path='/webroot/wsys-engine.hu/project.wsys-engine.hu/library/PEAR:
/webroot/wsys-engine.hu/project.wsys-engine.hu/library/zend:
/webroot/wsys-engine.hu/project.wsys-engine.hu:/webroot/wsys-engine.hu/project.wsys-engine.hu/application')
in /webroot/wsys-engine.hu/project.wsys-engine.hu/library/swift/lib/Swift/Connection/NativeMail.php on line 40
Call Stack
# Time Memory Function Location
1 0.0002 59940 {main}( ) ../index.php:0
2 0.0011 112364 require( '/webroot/wsys-engine.hu/project.wsys-engine.hu/init.php' ) ../index.php:9
3 0.2112 4685492 Env::executeAction( ) ../init.php:149
4 0.2746 6495284 PageController->execute( ) ../Env.class.php:133
5 0.2746 6495336 Controller->execute( ) ../PageController.class.php:62
6 0.2751 6498724 AdministrationController->tool_test_email( ) ../Controller.class.php:76
7 0.2883 6884732 Notifier::sendEmail( ) ../AdministrationController.class.php:417
8 0.2883 6885224 Env::useLibrary( ) ../Notifier.class.php:485
9 0.2886 6888844 include_once( '/webroot/wsys-engine.hu/project.wsys-engine.hu/library/swift/swift.php' ) ../Env.class.php:45
10 0.2978 7274216 require( '/webroot/wsys-engine.hu/project.wsys-engine.hu/library/swift/lib/Swift/Connection/NativeMail.php' ) ../swift.php:6
Dump $_SERVER
Dump $_GET
Dump $_POST
Dump $_COOKIE
Dump $_FILES
Dump $_ENV
Dump $_SESSION
Dump $_REQUEST

I think to see the source... I'm a WebDeveloper [PHP]... And.. Now I see an error what i don't understand.
Failed opening required
Code: [Select]
phoenixchat ~ # ls -la /webroot/wsys-engine.hu/project.wsys-engine.hu/library/swift/lib/Swift/Connection/../Stream/Processor.php
-rw-r--r-- 1 apache apache 2578 aug  3 09.01 /webroot/wsys-engine.hu/project.wsys-engine.hu/library/swift/lib/Swift/Connection/../Stream/Processor.php
phoenixchat ~ #
Ok. Permissions ok. I try open the file with vim and the method was successful.
Then... What is the problem?

Ok... I think: It's a BUG this will be repair... I get an older version 1.4 but the problem... Yes... Failed opening required ... I get 1.3.1 and the problem: Failed opening required

I used it a long time ago...

Please help me. I belive that was a good report...

Thanks: lightgod
« Last Edit: August 03, 2009, 04:20:07 am by lightgod »

tjdykb

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: PHP Error for Mail functions
« Reply #2 on: September 03, 2009, 08:28:46 am »
Same error here, I am using 1.5.3

tjdykb

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: PHP Error for Mail functions
« Reply #3 on: September 03, 2009, 10:26:42 am »
It possibly php bug related error,
I was using php 5.2.10, may be related to http://bugs.php.net/bug.php?id=48837 and http://bugs.php.net/bug.php?id=48603 and some other bug report.

I end up recompile the server php and right now using

Code: [Select]
php -v
PHP 5.2.11RC3-dev (cli) (built: Sep  3 2009 20:25:32)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with XCache v1.2.2, Copyright (c) 2005-2007, by mOo

The error disappeared.