Create Entry not displaying properly

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
balltongu
Posts: 20
Joined: Fri Aug 20, 2004 5:21 am

Create Entry not displaying properly

Post by balltongu »

Hi all again,

I am having a bit of an issue when creating entries. I can enter in a theme, and do all sorts of formatting, but when I either preview it or save it, all I get is the theme, nothing else. I've verified that the SQL tables are being udated for everything but content. I've also tried with the following browsers: IE, Mozilla, Konqueror and Lynx. IE and Mozilla (the two that support the HTMLArea editor) do the above, while Konqueror and Lynx acutally publish the content (obviously without any formatting as HTMLArea doesn't work with those two).

So, I fire up Mozilla 0.9.3 and view the JS console, and I get a number of things, but the most important seems to be when pressing the Preview or Save buttons:

Error: this.doc has no properties
Source File: http://localhost/phpmyfaq/admin/editor/htmlarea.js
Line: 1782

Here is what is around line 1782:

HTMLArea.prototype.getHTML = function() {
switch (this._editMode) {fullPage)
case "wysiwyg" :_doc.body.innerHTML = html;
if (!this.config.fullPage) {
return HTMLArea.getHTML(this.doc.body, false, this);
} else this._doc.body.innerHTML = html;
break; return this.doctype + "\n" + HTMLArea.getHTML(this._doc.documentElement, true, this);
case "textmode" : return this._textArea.value; break;
default : alert("Mode <" + mode + "> not defined!");
}
return false;
};

This is using the most current version of phpMyFAQ with and without the update. My best guess is that htmlarea.js isn't passing the variable correctly and MySQL and therefore the content isn't appearing. Any thoughts?

Iann
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I will test it! Thanks for your detailled bug report!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I cannot verfiy this problem, it works for me with IE6 and Mozilla Firefox 0.9.3. I cannot reproduce your JavaScript errors in the JavaScript console with firefox.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
balltongu
Posts: 20
Joined: Fri Aug 20, 2004 5:21 am

Post by balltongu »

Does someone have a working install of 1.4.1 online so I can see what it looks like to add content properly?
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

please e-amil me, you can test it on my test machine.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply