Home arrow Forum Fatal Error Message
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 07:50:09 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.1.x (Moderators: -Wolverine, kai920)
| | | |-+  Fatal Error Message
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Fatal Error Message  (Read 6325 times)
Mike
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Fatal Error Message
« on: March 24, 2006, 12:39:47 PM »

Hello, I am getting the following fatal error message when i try to post to a topic:

Quote
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
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Fatal Error Message
« Reply #1 on: March 24, 2006, 03:32:10 PM »

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

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Fatal Error Message
« Reply #2 on: March 24, 2006, 04:33:16 PM »

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 path
2) on line 510 change the following lines from
Code:
global $mosConfig_absolute_path;
require_once($mosConfig_absolute_path."/administrator/components/com_smf/config.smf.php");

with this:
Code:
require_once("/home/your-site/public_html/administrator/components/com_smf/config.smf.php");

Note: change /home/your-site/public_html to match your site

This essentially hard codes the link instead of using a global which appears to be a problem on your webhost.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Fatal Error Message
« Reply #3 on: March 25, 2006, 09:27:28 AM »

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

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Steve Winecki
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
Re: Fatal Error Message
« Reply #4 on: March 26, 2006, 11:13:59 AM »

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 Offline

Posts: 73


View Profile
Re: Fatal Error Message
« Reply #5 on: March 26, 2006, 01:44:35 PM »

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
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Fatal Error Message
« Reply #6 on: March 26, 2006, 03:21:49 PM »

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

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
unliving sava
Joomla Pro
**

Karma: +5/-3
Offline Offline

Posts: 73


View Profile
Re: Fatal Error Message
« Reply #7 on: March 27, 2006, 12:07:18 AM »

/index.php?option=com_smf&Itemid=140&action=news;sa=mailingcompose
/component/option,com_smf/Itemid,140/action,news/sa,mailingcompose
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Fatal Error Message
« Reply #8 on: April 01, 2006, 07:42:38 PM »

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

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Marco
Joomla Newbie
*

Karma: +0/-3
Offline Offline

Posts: 32


View Profile
Re: Fatal Error Message
« Reply #9 on: April 02, 2006, 11:11:27 AM »

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 Offline

Posts: 12



View Profile WWW
Re: Fatal Error Message
« Reply #10 on: April 10, 2006, 07:14:42 AM »

Good Job Wolverine!!  Wink

the instruction is correct!!!  Cool
Logged

teovmy
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 14


View Profile
Re: Fatal Error Message
« Reply #11 on: May 26, 2006, 06:57:38 AM »

Problem solved here> Great job.
Logged
Ethan Erkiletian
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: Fatal Error Message
« Reply #12 on: June 01, 2006, 11:07:43 PM »

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 Offline

Posts: 5


View Profile
Re: Fatal Error Message
« Reply #13 on: June 13, 2006, 03:55:46 PM »

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:
Code:
function joomlaconf($promenljiva) {
require ("../configuration.php");
return $$promenljiva;
}

and then in subs-post.php replace
Code:
global $mosConfig_absolute_path;
with
Code:
$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 Offline

Posts: 3


View Profile
Re: Fatal Error Message
« Reply #14 on: June 22, 2006, 04:56:08 AM »

Thanks! finally it works!  Roll Eyes
Logged
Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login