Author Topic: browser script error when adding a lot of content  (Read 3555 times)

Offline mcalautt

  • User
  • *
  • Posts: 16
    • View Profile
browser script error when adding a lot of content
« on: February 29, 2008, 09:09:28 PM »
when I do "add new content"
and add A LOT of info into it, then click "save and close"
I get this...

"a script on this page is causing internet explorer to run slowly.
if it continues to run, your compluter may become unresponsive"

If I hit continue in firefox, it will just go to a blank page.
IE will return me to the page and the new content will be there but is empty.

Anyone know what this is or how to fix it ?

thanks
mike

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: browser script error when adding a lot of content
« Reply #1 on: March 03, 2008, 01:10:58 PM »
Could you reproduce this error?
What extensions are installed?
Did you see any errors in the logs?

Frank

Offline mcalautt

  • User
  • *
  • Posts: 16
    • View Profile
Re: browser script error when adding a lot of content
« Reply #2 on: March 03, 2008, 02:25:48 PM »
I I change the editor to tinymice it helps but if there is a lot of content I eventually get this in the browser.

"Fatal error: Maximum execution time of 30 seconds exceeded in"
"knowledgeroot/system/extension/libsecure/htmlpurifier/HTMLPurifier/Strategy/FixNesting.php on line 226"

Is there anyway to change the max exe time ?

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: browser script error when adding a lot of content
« Reply #3 on: March 03, 2008, 03:33:11 PM »
Yes you could set the maximum execution time in the php.ini

Other way is to disable the whitelist in the extension libsecure if you want.

But how much content did you post that it takes so long?

Frank

Offline mcalautt

  • User
  • *
  • Posts: 16
    • View Profile
Re: browser script error when adding a lot of content
« Reply #4 on: March 03, 2008, 03:51:49 PM »
ok I can try that..

how would I "disable the whitelist in the extension libsecure if you want"

thanks so much for your help.

mike

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: browser script error when adding a lot of content
« Reply #5 on: March 03, 2008, 03:53:15 PM »
Go to the extension directory
system/extension/libsecure and open the config.php
In that file you could configure that.

Frank

Offline mcalautt

  • User
  • *
  • Posts: 16
    • View Profile
Re: browser script error when adding a lot of content
« Reply #6 on: March 03, 2008, 04:00:43 PM »
excellent..
I will try that and let you know.

thanks again
mike

Offline mcalautt

  • User
  • *
  • Posts: 16
    • View Profile
Re: browser script error when adding a lot of content
« Reply #7 on: March 03, 2008, 04:03:21 PM »
changing whitelist" =>
to 0 seems to have worked.

I will try a few more.

what exactly does that option do ?

thanks
mike

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: browser script error when adding a lot of content
« Reply #8 on: March 03, 2008, 04:12:23 PM »
You have now disabled the whitelist in this extension.

This extension helps to secure knowledgeroot so that XSS or other things will not work.
The extension uses a white and a blacklist. So the whitelist is now disabled in your configuration but the blacklist also works.

Frank

Offline mcalautt

  • User
  • *
  • Posts: 16
    • View Profile
Re: browser script error when adding a lot of content
« Reply #9 on: March 03, 2008, 06:58:51 PM »
ahh
ok
well it seems to be fine now...

thanks again for the help.

this doc application is really nice !!!


Offline mcalautt

  • User
  • *
  • Posts: 16
    • View Profile
Re: browser script error when adding a lot of content
« Reply #10 on: March 05, 2008, 10:36:13 PM »
changing the whitelist entry seems to have stopped the script timeout issue when adding a large amount of content.


I dont get the timeout error anymore.

"Fatal error: Maximum execution time of 30 seconds exceeded in" "knowledgeroot/system/extension/libsecure/htmlpurifier/HTMLPurifier/Strategy/FixNesting.php on line 226"

so changing the whitlist entry in system/extension/libsecure/config.php

diff config.php config.php.3.3.2008
3c3
<       "whitelist" => 0, // enable/disable this filter
---
>       "whitelist" => 1, // enable/disable this filter