Yii Framework Forum: Possible Bug On Linux - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Possible Bug On Linux

#1 User is offline   iamsyt 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 03-January 12

Posted 08 June 2014 - 03:54 AM

I tried to deploy bbii module on linux environment, and get the following error when entering into the forum:

2014/06/08 16:10:34 [error] [php] include(DOMDocument.php): failed to open stream: No such file or directory (/var/www/html/exercise/yii/yii-1.1.14/framework/yiilite.php:244)
Stack trace:
#0 unknown(0): spl_autoload_call()
#1 /var/www/html/exercise/yii/yii-1.1.14/framework/vendors/htmlpurifier/HTMLPurifier.standalone.php(6322): class_exists()
#2 /var/www/html/exercise/yii/yii-1.1.14/framework/vendors/htmlpurifier/HTMLPurifier.standalone.php(142): create()
#3 /var/www/html/exercise/yii/yii-1.1.14/framework/web/widgets/CHtmlPurifier.php(84): HTMLPurifier->purify()
#4 unknown(0): CHtmlPurifier->purify()
#5 /var/www/html/exercise/yii/yii-1.1.14/framework/validators/CFilterValidator.php(47): call_user_func_array()
#6 /var/www/html/exercise/yii/yii-1.1.14/framework/yiilite.php(9987): CFilterValidator->validateAttribute()
#7 /var/www/html/exercise/yii/yii-1.1.14/framework/yiilite.php(6971): CFilterValidator->validate()
#8 /var/www/html/exercise/yii/yii-1.1.14/framework/yiilite.php(7534): BbiiMember->validate()
#9 /var/www/html/exercise/protected/modules/bbii/BbiiModule.php(101): BbiiMember->save()

As a workaround, i just comment out the following line in BbiiMember.php:
//array('signature','filter','filter'=>array($obj=new CHtmlPurifier(), 'purify')),

this issue doesn't happen on windows environment at least.

thanks

this is a great forum module any way!!
0

#2 User is offline   nineinchnick 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 622
  • Joined: 12-September 11
  • Location:Bialystok, Poland

Posted 08 June 2014 - 04:47 AM

Your PHP installation is missing the DOM extension, that should be enabled by default. What is your distribution?
Don't be a dick.
0

#3 User is offline   Ronald van Belzen 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 157
  • Joined: 04-July 13
  • Location:The Netherlands

Posted 09 June 2014 - 03:48 AM

Disabling the HtmlPurifier is unwise, it introduces all kinds of vulnerabilities.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users