Home arrow Forum Bug, SMF Discussbot: Fatal Error when “SMF topic title prefix” Parameter Changed
  Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 06:57:59 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Addon Discussion
| |-+  Joomla Mambots
| | |-+  Bug, SMF Discussbot: Fatal Error when “SMF topic title prefix” Parameter Changed
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Bug, SMF Discussbot: Fatal Error when “SMF topic title prefix” Parameter Changed  (Read 3788 times)
John Berns
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Bug, SMF Discussbot: Fatal Error when “SMF topic title prefix” Parameter Changed
« on: June 15, 2007, 04:11:31 AM »

Every time I change the “SMF topic title prefix” parameter, I get the error

Fatal error: Call to undefined function () in /home/site/public_html/forum/Sources/Subs.php on line 3526

and nothing else on the page.

When I reload the page, I get the text of the first article on the home page (viewing the source, there are no headers—only the HTM for the first article) the following SMF Discussbot code:

Code:
<div class="dsc_bar"><a class="link_pos" href="http://tdt.local.net/component/option,com_smf/Itemid,46/topic,17.msg17/#msg17"><img style="border:0px;" src="/mambots/content/mos_smf_discussbot.gif" alt="Discuss Topic" /> Discuss this article in the forum (1) </a></div> </td>
</tr>
</table>

<span class="article_seperator">&nbsp;</span>

</div><div><br />
<b>Fatal error</b>:  Call to undefined function () in <b>/home/tourthai/public_html/forum/Sources/Subs.php</b> on line <b>3526</b><br />

And the same error:

Fatal error: Call to undefined function () in /home/site/public_html/forum/Sources/Subs.php on line 3526

Another reload and everything is OK—and stays that way.

The line of code referenced in the error is in the text2words function and is as follows:

Code:
$words = un_htmlspecialchars($func['strtolower']($words));

Environment:

Joomla 1.0.12, SMF 1.1.2, Joomla-SMF Bridge 2.0.2, SMF Discussbot 2.0.3.

"Discuss all content" and "Automatically Create" parameters set to yes.
« Last Edit: June 15, 2007, 04:38:41 AM by John Berns » Logged
John Berns
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: Bug, SMF Discussbot: Fatal Error when “SMF topic title prefix” Parameter Cha
« Reply #1 on: June 16, 2007, 12:13:15 AM »

I noticed that the error happens once for each article on the main page...  eg. if you have four articles on the main page, you have to refresh four times before the error goes away.
Logged
John Berns
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: Bug, SMF Discussbot: Fatal Error when “SMF topic title prefix” Parameter Cha
« Reply #2 on: August 02, 2007, 04:26:14 AM »

FIXED!

It's actually a bug in SMF 1.1.2.

To fix, in the directory where you installed SMF, in the Sources directory, the Subs.php file, change the line:

Code:
$words = un_htmlspecialchars($func['strtolower']($words));

to

Code:
$words = un_htmlspecialchars($func['strtolower'],($words));


Notice there is supposed to be a comma between the parameters $func['strtolower'] and ($words) that is missing in the v1.1.2 SMF code.

The line number was 3522 in the original SMF 1.1.2 distribution and 3526 in after the Joomla-SMF Forum patch was applied.
« Last Edit: August 02, 2007, 04:32:43 AM by John Berns » Logged
Pages: [1] 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 German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
About Advertise Register Login