Extension talk:Secure HTML/LQT Archive 1

Discuss Extension:Secure HTML here:

'invalid hash' error
I always get Error: invalid hash --195.248.32.227 14:49, 16 August 2007 (UTC)
 * Why not consider another similar Extension:SecureHTML extension? Jean-Lou Dupont 14:53, 16 August 2007 (UTC)


 * Don't forget to edit your LocalSettings.php to include your primary and secondary key strings, otherwise you'll keep getting that error -- 01:47, 8 October 2007
 * I always get Error: invalid hash also, and I put in a primary and secondary key string in localsetting.php
 * Any suggestions?
 * Where does:


 * Go in localsettings, or does it matter?
 * user:jldupont, I won't use Extension:SecureHTML because:
 * I am running 1.7
 * Installing two programs to make one program work seems like to much of a hassle. Why not combine both programs? Odessaukrain 08:04, 30 March 2008 (UTC)
 * i also get the Error: invalid hash, i wonder if i've found the solution: in my case i've got confused with the fields key name and key, so i've put the key name in both. once i've copied the key string in the key field everything worked perfectly - i love this ingenious extension. i'm quite embarrassed to admit such a silly mistake, but i guess it could happens to others, so laugh with me! ^____^ --Eumeme 01:40, 19 April 2008 (UTC)


 * I initially got "invalid hash" error too, later I recognized that I had a syntax error in my html code that I want to secure. After I correct that, everything works perfect. Thanks to the author!--24.6.151.20 01:11, 21 June 2008 (UTC)

Works great
This works great. Thank you so much whoever did it. -- 80.58.205.45 - 20:07, 23 August 2007

a href issue
Secure html works really good. One issue, when i try to add some thing that has a <a href in it, when in the secure html special page it works fine. when i paste it into a wikitext elsewhere, the spam filter causes it to break. any ideas? tathagat.banerjee@interintel.org

Preview not rendered
If you have a working shtml template (locked to sysops) and edit it, the preview is not working. Annoying if you try out things or adjust layout though, you always have to save to see the change. --16:03, 7 February 2009 (UTC)

not really that secure
Unless i'm missing something this extension is not really secure. The user knows both the key and the input and thus can generate their own hash quite easily. Really the server should have a secret key only it knows about. Bawolff 01:34, 23 April 2010 (UTC) nevermind i misread the code. Bawolff 02:13, 23 April 2010 (UTC)

Fatal error message
When I tried to access "Special:SecureHTMLInput" I get the following error message.

"Fatal error: Cannot redeclare wfsecurehtmlextension in /home/wiki/public_html/w/includes/specials/SpecialSecureHTMLInput.php on line 45". --Aramsahai 01:06, 8 May 2010 (UTC)

I also get an error and have crossed checked everything.

"Fatal error: Call to a member function addMessages on a non-object in /home/content/42/4737242/html/wiki/extensions/SecureHTML/SecureHTML.php on line 52"

PHP Error in SecureHTML.php
Notice: Undefined index: keyname in C:\xampp\htdocs\mediawiki\extensions\SecureHTML.php on line 59

This shows up after I have embedded some HTML (a Facebook Like Box) using an iframe. I am currently running WM-1.16 on a xampp server for development purposes, and I understand about turning off the error messages in PHP. Any suggestions about how to permanently remove it?

Jim Vance 04:44, 26 October 2010 (UTC)

not working with more than 1 key?!
for me this extension was not working with more than one key in the array...

this is an "error" in the source of SecureHTML.php

$keyname = ($argv['keyname'] ? $argv['keyname'] : $keykeys[0]);

should be replaced with

$keyname = ($argv['hash'] ? $argv['hash'] : $keykeys[0]);

the other version doesnt make sense for me. --88.73.61.86 03:06, 22 May 2011 (UTC)

problem in function calling
Dear,

I want to display table from database using secure html in my article page. so what i did, design small html form consist name and email address and on submission it will chek regular expression or its exist or not in my table. but here what happen after submission it creating new page new of function file.

that is all limitation or i cant do like this.

 email name

chek.php

contains code for cheking this..

is it possible to run like this in my article page.

help me?

Restrict Special Page?
Hi, I want to restrict the special page made for this to only administrators of the wiki, can someone tell me how I do this?

Thanks.

--LittleRena 11:06, 28 October 2011 (UTC)