Mike
Joomla Newbie
Karma: +0/-0
Offline
Posts: 6
|
Hello, I am getting the following fatal error message when i try to post to a topic:
Fatal error: sendmail(): Failed opening required '/administrator/components/com_smf/config.smf.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/diytacti/public_html/forums/Sources/Subs-Post.php on line 511 My post does show up on the board but this message appears right after i click submit.
This does not happen if i unpatch the SMF Files but as soon as i patch them again I get the error. Any Ideas on how i can fix this.
I just upgraded Joomla, SMF and Joomla-SMF today.
My Setup:
Joomla 1.0.8 SMF 1.1 RC2 Joomla-SMF 1.1 |
|
|
|
|
|
|
Logged
|
|
|
|
|
-Wolverine
|
the required file is actually $mosConfig_absolute_path./administrator/components/com_smf/config.smf.php which $mosConfig_absolute_path would equate to the absolute path to your Joomla install, ie. /home/yourhome/public_html/. For some reason it isn't taking the global $mosConfig_absolute_path. Did none of this happen to you all on teh RC1 or RC2 versions? I think I have an idea how to fix it.
|
|
|
|
|
Logged
|
|
|
|
|
-Wolverine
|
I've tested on my environments and I am not receiving this error. So i assume it is a difference in webhost configurations. What you can do is the following 1) open the file /home/your-site/public_html/smf/Sources/Subs-Post.php note that /home/your-site is an example, please fill in the correct path2) on line 510 change the following lines from global $mosConfig_absolute_path; require_once($mosConfig_absolute_path."/administrator/components/com_smf/config.smf.php");
with this: require_once("/home/your-site/public_html/administrator/components/com_smf/config.smf.php");
Note: change /home/your-site/public_html to match your siteThis essentially hard codes the link instead of using a global which appears to be a problem on your webhost.
|
|
|
|
|
Logged
|
|
|
|
|
-Wolverine
|
That should not resolve the problem, actually, that should give you an error. If it doesn't then I have not a clue how php is configured for your site. But if it works then great.....
After further evaluation this may be caused by the double quotes. Try simply changing the double quotes to sinlge quotes on line 511 and leave the period in the middle.
|
|
|
|
|
Logged
|
|
|
|
Steve Winecki
Joomla Newbie
Karma: +0/-0
Offline
Posts: 1
|
I was having the same exact problem and had been searching everywhere for a solution. The code change (the change to line 510, not the double quotes) fixed the problem. Thank you Wolverine!
|
|
|
|
|
Logged
|
|
|
|
unliving sava
Joomla Pro

Karma: +5/-3
Offline
Posts: 73
|
other fatal error when trying to send newsletter: Fatal error: sendmail(): Failed opening required '/administrator/components/com_smf/config.smf.php' (include_path='.:/php/includes:/usr/share/php') in /Sources/Subs-Post.php on line 511
i've changed it to single quotes but it doesn't fix it
|
|
|
|
|
Logged
|
|
|
|
|
-Wolverine
|
other fatal error when trying to send newsletter: Fatal error: sendmail(): Failed opening required '/administrator/components/com_smf/config.smf.php' (include_path='.:/php/includes:/usr/share/php') in /Sources/Subs-Post.php on line 511
i've changed it to single quotes but it doesn't fix it
please post the URL of the page that you are sending the newsletter from
|
|
|
|
|
Logged
|
|
|
|
unliving sava
Joomla Pro

Karma: +5/-3
Offline
Posts: 73
|
/index.php?option=com_smf&Itemid=140&action=news;sa=mailingcompose /component/option,com_smf/Itemid,140/action,news/sa,mailingcompose
|
|
|
|
|
Logged
|
|
|
|
|
-Wolverine
|
there is an event to register on in SMF to setup the environment for sending emails such as registration and newsletters. I just became aware of this and plan to implement it in JSMF 1.2. For now if the newsletter is failing I will defer those questions until JSMF 1.2 is released. Thanks for the help guys.
|
|
|
|
|
Logged
|
|
|
|
Marco
Joomla Newbie
Karma: +0/-3
Offline
Posts: 32
|
Hi, I have SMF 1.1 RC2 and JSMF 1.1 final.
i've found many of these errors in the Log's error section of SMF:
*** Fatal error: sendmail(): Failed opening required '/administrator/components/com_smf/config.smf.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thegunne/public_html/forum/Sources/Subs-Post.php on line 511 ***
as suggested i changed in the file forum/Sources/Subs-Post.php the line "/administrator/components/com_smf/config.smf.php" and i added the full path: /home/thegunne/public_html/cms/administrator/components/com_smf/config.smf.php
where **/home/thegunne/public_html/cms/** is my cms's path.
the error seems to have been resolved
PS sorry for my english....
|
|
|
|
« Last Edit: April 02, 2006, 11:32:24 AM by Marco »
|
Logged
|
Joomla 1.0.12 - SMF 1.1.1 - JSMF 2.0.1 - CB none - PHP 4.4.4 - MySQL 4.0.27.
|
|
|
madmat
Joomla Newbie
Karma: +2/-2
Offline
Posts: 12
|
Good Job Wolverine!!  the instruction is correct!!! 
|
|
|
|
|
Logged
|
|
|
|
teovmy
Joomla Newbie
Karma: +0/-0
Offline
Posts: 14
|
Problem solved here> Great job.
|
|
|
|
|
Logged
|
|
|
|
Ethan Erkiletian
Joomla Newbie
Karma: +0/-0
Offline
Posts: 4
|
Thanks for the fix wolverine. I was goin' nuts trying to figure out what was wrong!
Cheers
|
|
|
|
|
Logged
|
|
|
|
tomaja
Joomla Newbie
Karma: +0/-0
Offline
Posts: 5
|
True temp. solution for this problem is to add fuction to settings.php for path variables and then to call it in subs-post.php: code to be added in settings.php: function joomlaconf($promenljiva) { require ("../configuration.php"); return $$promenljiva; } and then in subs-post.php replace global $mosConfig_absolute_path; with $mosConfig_absolute_path = joomlaconf('mosConfig_absolute_path'); For the final solution of this problem best is to set up a class with Joomla settings This fix was written by popeye at www.linuxo.net
|
|
|
|
« Last Edit: June 13, 2006, 04:04:54 PM by tomaja »
|
Logged
|
|
|
|
muslimways
Joomla Newbie
Karma: +0/-0
Offline
Posts: 3
|
Thanks! finally it works! 
|
|
|
|
|
Logged
|
|
|
|
|