PDA

View Full Version : Nuke Evolution - Calendar Block


wowgwjunkie
06-03-2008, 04:40 PM
Hi,

I tried installing the Easy PHP Calendar Block from forum:
http://www.easyphpcalendar.com/forums/showthread.php?t=6835

I installed it and it destorts the site and I see the following error message:

Fatal error: Cannot redeclare class InputFilter in /home/wowsempe/public_html/calendar/functions/class.inputfilter_clean.php on line 22

I disabled the block. My site is www.wow-bhs.net (http://www.wow-bhs.net). Any assistance would be greatly appreciated!!

Thank you!
Kirk

ve9gra
06-03-2008, 09:42 PM
That is caused by something, somewhere in your site, declaring a class called "InputFilter". This causes a conflict with the version that is installed with the calendar.

My short answer is that you will not be able to use the calendar.

My long answer is that you will need to figure out how the InputFilter class, that came with your PHP-Nuke, works and then compare that with the one that comes with the calendar. If they are compatible, then you should be able to empty out the class.inputfilter_clean.php file, or rather remove the part that declares the class...

In all of the times that I've integrated the calendar in PHP-Nuke, I've never encountered this. I've also never seen a theme that had so many validation errors (ie: you have 10 <html> tags, where a valid page is only allowed one).

Brian
06-03-2008, 11:18 PM
You can turn off XSS protection to skip using this function.

If that doesn't work, delete everything in that file on the server.

ve9gra
06-04-2008, 07:41 AM
Good to know what was using that file... this is going on my "to remember" list.

wowgwjunkie
06-04-2008, 08:58 AM
Three Questions :)

10 errors?

How do I turn off XSS

And if that doesn't work, delete what file?

Pardon my ignorance :)

Brian
06-04-2008, 09:47 AM
The file you referenced in your first post, class.inputfilter_clean.php.

XSS protection is turned off in the Setup Manager.

wowgwjunkie
06-04-2008, 10:35 AM
I don't see a way to turn it off in Setup Manager. But I opened the class.inputfilter._clean.php and I see:

Line 27 var $vssAuto
Line 38 $this->xssAuto = $xssAuto

Then between Line 92/93 && ($this->xssAuto))) {
and one other between Line 135/136

Is there something I should comment out or change a value in there?

Really appreciate this, I would like to use this on my site :)

Brian
06-04-2008, 11:05 AM
Log into the Setup Manager and go to the Event Manager page. Find XSS Protection, set it to Off and save the changes.

wowgwjunkie
06-04-2008, 12:10 PM
It's already set to off

Brian
06-04-2008, 02:30 PM
Then open the file and remove all of it's contents and save the blank file back to your server. Please note, XSS protection will not work on your calendar installation.

wowgwjunkie
06-04-2008, 03:00 PM
Done that, I then got another error:

Fatal error: Class 'InputFilter' not found in /home/wowsempe/public_html/calendar/functions/calendar.php on line 59

Took a look at that line and it's Greek :)

Anyway, I give up. I'm going to find something that will work with nukeevo and go from there.

Appreciate the attempt to help.

Thanks!
Kirk