-
- 16 Posts
Upon save, this results in "Save Successful!" (Good!):
<div class="loginForm">
<div class="loginMessage">[[+errors]] </div>
<div class="loginLogin">
<form class="loginLoginForm" action="[[~[[*id]]]]" method="post">
<fieldset class="loginLoginFieldset">
<legend class="loginLegend">[[+actionMsg]] </legend>
<label class="loginUsernameLabel">[[%login.username]]
</label>
</fieldset>
</form>
</div>
</div>
Upon save, this results in... nothing! (Bad!)
<div class="loginForm">
<div class="loginMessage">[[+errors]] </div>
<div class="loginLogin">
<form class="loginLoginForm" action="[[~[[*id]]]]" method="post">
<fieldset class="loginLoginFieldset">
<legend class="loginLegend">[[+actionMsg]] </legend>
<label class="loginUsernameLabel">[[%login.username]]
<input class="loginUsername" type="text" name="username" />
</label>
</fieldset>
</form>
</div>
</div>
(All the ’s are to get around another apparent bug in the parser).
Tested in Firefox and Opera, latest versions, same result.
ModX is 2.0.7 Traditional.
Server OS: Linux, build date Jan 4 2011 , x86_64
PHP: 5.2.15
Smarty Version: 3.3.0
PHPMailer Version: 3.0.4
MagpieRSS Version: 2.0.4
Database type: MySQL 5.0.91 community
Client OS is Windows 7.
There is nothing, zip, zero, nada in the error log pertinent to these failed saves.
I have spent a whole day scouring the web, and trying to get a changelist between 2.0.7 and 2.0.8 to evaluate an upgrade.
I’m a little frustrated at the moment, and would appreciate any help.
ANY HELP MUCH APPRECIATED. I’m a PHP programmer just getting into MODx. I see its potential, but right now it’s useless to me. I’m hoping someone can help with this, and improve these initial impressions.
Thanks!
-
- 16 Posts
Additional follow-up:
This, "Success! Save successful!"
<div class="loginForm">
<div class="loginMessage">[[+errors]] </div>
<div class="loginLogin">
<form class="loginLoginForm" action="[[~[[*id]]]]" method="post">
<fieldset class="loginLoginFieldset">
<legend class="loginLegend">[[+actionMsg]] </legend>
<label class="loginUsernameLabel">[[%login.username]]
<bogustag_input class="loginUsername" type="text" name="username" />
</label>
</fieldset>
</form>
</div>
</div>
while this, no save successful!
<div class="loginForm">
<div class="loginMessage">[[+errors]] </div>
<div class="loginLogin">
<form class="loginLoginForm" action="[[~[[*id]]]]" method="post">
<fieldset class="loginLoginFieldset">
<legend class="loginLegend">[[+actionMsg]] </legend>
<label class="loginUsernameLabel">[[%login.username]]
<input_bogustag class="loginUsername" type="text" name="username" />
</label>
</fieldset>
</form>
</div>
</div>
There’s something with the "input" token that is throwing the parser off. This contradicts my early research which indicates that "any HTML is acceptable in a chunk."
Again, any help would be much, much appreciated!
-
- 4,149 Posts
Check to make sure you have mod_security and safe_mode turned off for PHP.
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com
-
- 16 Posts
PHP safe mode is off in php.ini, so that’s not it.
I’m not sure that we have any control over mod_security - that’s an Apache setting if I’m not mistaken. We’re hosted by a third-party hosting service.
Has anyone else reported anything like this, Shaun? I’ve not seen anything remotely similar, and neither has my associate who is also investigating.
Also, any idea why back-to-back tags - e.g. <p>Hi mom!</p><p>How are you this morning?</b> - would also result in a non-save of a chunk? That’s what all the ’s in the examples above circumvent - we’d love to get rid of them.
I’m suspecting our configuration is at fault.
-
- 24,544 Posts
-
- 16 Posts
Bob,
That’s kind of where we’re at too. We just upgraded from 2.0.7 to 2.0.8. Same problem.
BTW your guides are the most accessible, readable, and logical MODx resource that I’ve found on the web.
"A thousand thank yous" seems trite for all you have done in this area.
Hats off to you.
-
- 24,544 Posts
Thanks for the kinds words.