News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Quick-Reply tries to start new topic

Started by WittyUsername, February 03, 2016, 08:13:55 PM

Previous topic - Next topic

WittyUsername

Using 2.0.11

This one is very odd. Very very odd.

So, when I make a reply using quick-reply, It tries to lead me to a "start a new topic" page. Sometimes, I get this error:
QuoteThe following error or errors occurred while posting this message:
Your session timed out while posting. Please try to re-submit your message.
No subject was filled in.
The message body was left empty.

Here is the theme I'm using:
custom.simplemachines.org/themes/index.php?lemma=2728

Here is the list of mods I have installed:
1.    Add Favicon.ico Support    1.101    [ Uninstall ]
2.    Default_Membergroup    2.0    [ Uninstall ]
3.    Add Social Media Icons To Profiles    1.2.0    [ Uninstall ]
4.    SMF Articles    3.0.2a    [ Uninstall ]
5.    Drafts       [ Uninstall ]
6.    InfoBox    0.3    [ Uninstall ]
7.    The Rules    1.31    [ Uninstall ]
8.    Image Floating to Left or Right BBCode    1.19    [ Uninstall ]
9.    nCode Image Resizer    1.4    [ Uninstall ]
10.    PM Informer    4.0.1    [ Uninstall ]
11.    Ultimate Menu    1.0    [ Uninstall ]
12.    SimpleColorizer    1.1    [ Uninstall ]
13.    Like Posts    2.0.5    [ Uninstall ]
14.    Expanding & Collapsing Spoiler Tag    2.4    [ Uninstall ]
15.    Simple Audio Video Embedder    3.5.1    [ Uninstall ]
16.    PM to New Members    1.2    [ Uninstall ]
17.    WYSIWYG Quick Reply    2.3    [ Uninstall ]
18.    SimplePortal    2.3.6    [ Uninstall ]
19.    Internal Links Use Same Window    1.2    [ Uninstall ]


Interestingly, I tried turning off the WYSIWYG in quick reply, and it acts like it doesn't even really exist. Nothing happens.

I tried to go to the most obvious thing that may be interfering. I tried to uninstall quick reply WYSIWYG and it gave me errors:

Find in Display.template.php


// Start of WYSIWYG Quick Reply

// Only show bbcode bar if BBCodes are enabled, AND if its a quick reply mode with bbcode bar
if ($context['show_bbc'] && (in_array($options['wysiwyg_quick_reply'], array(0, 1, 4, 5))))
echo '<div id="bbcBox_message"></div>';

// Only show smilies if smiliesare enabled AND if its a quick reply mode with smilies
if (!empty($context['smileys']['postform']) && (in_array($options['wysiwyg_quick_reply'], array(0, 2, 4, 6))))
echo ' <div id="smileyBox_message"></div>';

// Show the quick reply (WYSIWYG vs NON-WYSIWYG dealt with already decided in source file)
echo  template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message'), '';

// End of WYSIWYG Quick Reply

echo '
<div id="qr_buttons">
<input type="submit" name="post" value="', $txt['post'], '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="', $context['tabindex']++, '" class="button_submit" />
<input type="submit" name="preview" value="', $txt['preview'], '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="', $context['tabindex']++, '" class="button_submit" />';
if ($context['show_spellchecking'])
echo '
<input type="button" value="', $txt['spell_check'], '" onclick="spellCheck(\'postmodify\', \'message\');" tabindex="', $context['tabindex']++, '" class="button_submit" />';
echo '
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />
</div>
</form>


Replace in Display.template.php
echo '
<div class="quickReplyContent">
<textarea cols="600" rows="7" name="message" tabindex="', $context['tabindex']++, '"></textarea>
</div>
<div class="righttext padding">
<input type="submit" name="post" value="', $txt['post'], '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="', $context['tabindex']++, '" class="button_submit" />
<input type="submit" name="preview" value="', $txt['preview'], '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="', $context['tabindex']++, '" class="button_submit" />';

if ($context['show_spellchecking'])
echo '
<input type="button" value="', $txt['spell_check'], '" onclick="spellCheck(\'postmodify\', \'message\');" tabindex="', $context['tabindex']++, '" class="button_submit" />';

echo '
</div>
</form>


And it couldn't find this in
?>

although, its replace was empty.

The theme has the exact same error as above. I'm THINKING this is a bug with that.

Additional info:

I did a few edits to these files, at least for the theme, I left the default alone. But I was editing things that were not anywhere near the replies.

I seem to be the only getting this, so is it possible this is a local problem? I asked one of the members and he reported no problems and my community hasn't said anything about this, at all. If it IS a local problem, I have no idea what would cause such a strange behavior.

This is also happening in the PMs, for some reason.

Regular reply works.

This happens in Curve, as well.

This happened in various browsers.

If there's anything else you need to know, just let me know. Thank

Advertisement: