OK. I'm trying to do a little troubleshooting in the code. I don't program anymore, but I can still find my way around. I see that for it to send "reset=true" in bfa_ata_add_admin.php that $_REQUEST['action'] must equal "reset". I dropped a print_r($_REQUEST) at the top of the page and tried to change the background color. Here's what I got:
Array ( [page] => functions.php [bfa_ata_body_style] => font-family: tahoma, arial, sans-serif; font-size: 0.8em; color: #000000; background: #CCCCCC; [bfa_ata_link_color] => 666666 [bfa_ata_link_hover_color] => CC0000 [bfa_ata_link_default_decoration] => none [bfa_ata_link_hover_decoration] => underline [bfa_ata_link_weight] => bold [save] =>
[action] => reset [category] => body-font-links )
Clearly this isn't right. Now, when I went to look at the HTML source code I found the problem. I don't know why it's happening, but I'm fairly certain this is it. Below is a snippet from the source code of themes.php?page=functions.php where the save and reset buttons are. Note the closing </form> tags:
Code:
<p class="submit">
<input class="save-tab" name="save" type="submit" value="">
<input type="hidden" name="action" value="save">
<input type="hidden" name="category" value="seo">
<span style="font-weight: bold; font-size: 22px; color: #018301">Save settings of current page</span>
</p><br>
<form method="post">
<p class="submit">
<input class="reset-tab" name="reset" type="submit" value="">
<input type="hidden" name="action" value="reset">
<input type="hidden" name="category" value="seo">
<span style="font-weight: bold; font-size: 13px; color: #ab0000">Reset settings of current page</span>
</p>
</form>
</div></form></div>
Now I have NO IDEA why it is generating it that way. Since in bfa_ata_admin.php (line 675) it echos:
PHP Code:
if ( $value['category'] != "start-here" AND $value['lastoption'] == "yes" ) {
echo '<div id="submit-container" class="bfa-container" style="background: none; border: none;">
<p class="submit">
<input class="save-tab" name="save" type="submit" value="" />
<input type="hidden" name="action" value="save" />
<input type="hidden" name="category" value="' . $value['category'] . '" />
<span style="font-weight: bold; font-size: 22px; color: #018301">Save settings of current page</span>
</p><br />
</form>
<form method="post">
<p class="submit">
<input class="reset-tab" name="reset" type="submit" value="" />
<input type="hidden" name="action" value="reset" />
<input type="hidden" name="category" value="' . $value['category'] . '" />
<span style="font-weight: bold; font-size: 13px; color: #ab0000">Reset settings of current page</span>
</p>
</form>
</div>';
}
I didn't take time to analyze the conditions under which this is being written, but it's the only place in the theme that is writing these buttons.
So, can anyone help me determine why it would be screwing up writing the closing form tags? Again, I have uploaded the very latest version of the code (3.4.4) and this problem persists. It's as simple as a closing form tag. Any help would be appreciated.
I have no idea if it's related, but one other detail that struck me. All of the HTML tags are losing their closing slashes. Is there something "cleaning up" the code? Is that some PHP setting? If so, could that be the problem?
Bob