I have an identical problem. Same error messages.
I tried all configs, and it seems the only config that causes the issue is SEF on (in J!) and Forum Wrapped. With SEF turned off un/wrapped is fine, and SEF on/unwrapped is ok.
I have no mods installed and the install is on a clean J! (1.0.11) and SMF install (1.1 RC3 & 1.1.6 Bridge)
Do you have a URL?
PM sent with details.
In smf.php, find this:
$mainframe->addCustomHeadTag( '<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'. $settings['theme_url']. '";
var smf_images_url = "'. $settings['images_url']. '";
var smf_scripturl = "'. un_htmlspecialchars(mambo_smf_url($scripturl)) . '";
var smf_session_id = "'. $context['session_id'] . '";
// ]]></script>' );
Change it to this:
$mainframe->addCustomHeadTag( '<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'. $settings['theme_url']. '";
var smf_images_url = "'. $settings['images_url']. '";');
if ($mosConfig_sef=='1')
$mainframe->addCustomHeadTag( ob_mambofix('var smf_scripturl ="'. $scripturl . '";'));
else
$mainframe->addCustomHeadTag( 'var smf_scripturl = "'. un_htmlspecialchars(mambo_smf_url($scripturl)) . '";');
$mainframe->addCustomHeadTag( ' var smf_session_id = "'. $context['session_id'] . '";
// ]]></script>' );
want to try again? changed code now.
works a treat! :D
Thanks alot. Anything else to add, any reason not to leave this on a live site??
No, that's the fix.
Many thanks, very much appreciated.
I noticed that you split this topic....does this mean that this fix won't work for me? Is this a J! only fix?
Thanks,
I split this because despite the statement:
QuoteI have an identical problem.
The actual problem is nothing at all like yours.
Orstio,
I figured that might be it.
I responded to your PM...
Thanks,
Hello, i used this code to solving my Problem with Joomla SEF and SMF 1.1 Final.
But: Now the smileys won't work anymore and still Errors showing in Internet Explorer.
Please Help, the only thing i want is a full functionally Forum with the Joomla SEF like it was in 1.1RC3 - why after the upgrade to 1.1 Final, joomla SEF and the bridge/Forum won't work anymore?
Push....
Orstio my Master, please reply to my post....
I Just want to know, why after the upgrade to 1.1 Final this "combination" won't work correct anymore.... :'( :'( :'(
URL?
http://www.it-info.org
But i should say that i undo that changes, so my Members could use the BBC again....
QuoteBut i should say that i undo that changes, so my Members could use the BBC again....
I can't help fix what is not broken.
Quote from: Orstio on December 17, 2006, 11:03:37 AM
QuoteBut i should say that i undo that changes, so my Members could use the BBC again....
I can't help fix what is not broken.
Well, the preview function is broken....
If i apply that code showed here in that topic, the preview function works - but the bbc won't do.
And the solution for the preview is already here. If you apply that, then I will take a look at your other problem, and suggest the solution for your other problem.
Ok, so i re-apply the code in my smf.php
Please wait e few minutes..... i'll post when i'm finish...
Thank you!
Ok finished......
In your default theme, this should be on line 76:
sendXMLDocument(smf_scripturl + "?action=post2" + (current_board ? ";board=" + current_board : "") + (make_poll ? ";poll" : "") + ";preview;xml", x.join("&"), onDocSent);
Change it to this:
sendXMLDocument(smf_scripturl + "?action=post2" + (current_board ? "/board," + current_board : "") + (make_poll ? "/poll,poll" : "") + "/preview,preview/xml,xml", x.join("&"), onDocSent);
Quote from: Orstio on December 17, 2006, 11:28:13 AM
In your default theme, this should be on line 76:
Which file? ;D
Sorry, Post.template.php.
Also, when you edited smf.php, you found and changed too many lines. You should have changed:
$mainframe->addCustomHeadTag( '<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'. $settings['theme_url']. '";
var smf_images_url = "'. $settings['images_url']. '";
var smf_scripturl = "'. un_htmlspecialchars(mambo_smf_url($scripturl)) . '";
var smf_session_id = "'. $context['session_id'] . '";
// ]]></script>' );
Not:
$mainframe->addCustomHeadTag( '<script language="JavaScript" type="text/javascript" src="'. $settings['default_theme_url']. '/script.js?rc3"></script>' );
$mainframe->addCustomHeadTag( '<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'. $settings['theme_url']. '";
var smf_images_url = "'. $settings['images_url']. '";
var smf_scripturl = "'. un_htmlspecialchars(mambo_smf_url($scripturl)) . '";
var smf_session_id = "'. $context['session_id'] . '";
// ]]></script>' );
so the line $mainframe->addCustomHeadTag( '<script language="JavaScript" type="text/javascript" src="'. $settings['default_theme_url']. '/script.js?rc3"></script>' );
is missing, right?
Correct.
Ok, i add the missing line, changed my Post.template.php as you say and...
EVERYTHING WORKS!!!!!!!!!!! :D :D :D :D :D :D
THANK YOU VERY MUCH FOR YOUR TIME AND YOUR KNOWLEDGE!!!
;) ;)
8) 8) 8)