Fatal error when "Use JSON filter rules"

You have feature Requests, or some Bugs found within the port of PHPIDS WPIDS? Tell them here.

Fatal error when "Use JSON filter rules"

Postby ivan on Sat Nov 24, 2007 12:12 am

Hi....

I'm using the latest version of wpids on my wp 2.3.1 ..it working find when the "Use JSON filter rules (may increase performance a little bit)" is unchecked, but when it unchecked, i got error on my blog (not in the dashboard/wp admin) look like this:

Code: Select all
Fatal error: Uncaught exception 'Exception' with message 'JSON data could not be loaded. Make sure you specified the correct path.' in /home/dodolan/public_html/wp-content/plugins/wp-ids/IDS/Filter/Storage.php:279 Stack trace: #0 /home/dodolan/public_html/wp-content/plugins/wp-ids/IDS/Filter/Storage.php(98): IDS_Filter_Storage->getFilterFromJson() #1 /home/dodolan/public_html/wp-content/plugins/wp-ids/IDS/Monitor.php(109): IDS_Filter_Storage->__construct(Object(IDS_Init)) #2 /home/dodolan/public_html/wp-content/plugins/wp-ids/wp-ids.php(369): IDS_Monitor->__construct(Array, Object(IDS_Init)) #3 /home/dodolan/public_html/wp-includes/plugin.php(164): wpids_init('') #4 /home/dodolan/public_html/wp-settings.php(299): do_action('wpids_init', Array) #5 /home/dodolan/public_html/wp-config.php(43): require_once('/home/dodolan/...') #6 /home/dodolan/public_html/wp-blog-header.php(16): require_once('/home/dodolan/...') #7 /home/dodolan/public_html/index.php(4): require('/home/dodolan/...') #8 {main} thrown in /home/dodolan/public_html/wp-content/plugins/wp-ids/IDS/Filter/Storage.php on line 279
ivan
 

Re: Fatal error when "Use JSON filter rules"

Postby ivan on Sat Nov 24, 2007 12:17 am

sorry, wrong typing on post above, so i meant, it working find when the "Use JSON filter rules (may increase performance a little bit)" is unchecked, but when it checked, i got that error. I also using the latest Filter rules (*.xm).
ivan
 

Re: Fatal error when "Use JSON filter rules"

Postby Philnate on Wed Dec 26, 2007 7:58 pm

It's fixed, some typo made it's way into the Sourcecode. You can get the latest version of the wp-ids.php file here:
http://wpids.googlecode.com/svn/trunk/wp-ids.php
Simply overwrite it and the error should be gone.
Philnate
Site Admin
 
Posts: 78
Joined: Sun Jun 12, 2005 7:54 pm

Re: Fatal error when "Use JSON filter rules"

Postby Samuel on Sat Mar 15, 2008 4:57 pm

I have a similar problem but with version 0.2...

After read this post, I look in the wpids.php 0.2 file and found that the path problem is in 0.2 too (maybe Phillip upgraded the code from a not fixed 0.1.2 file ;))

I post here the solution for anyone who needs it :)

So for fixing this only is needed to put a '/' in the correct place, at line 366

where you find:

Code: Select all
IDS/default_filter.json


it must be:

Code: Select all
/IDS/default_filter.json


And after that you can set the JSON filter rules on without any problem :D
Samuel
 

Re: Fatal error when "Use JSON filter rules"

Postby Philnate on Wed Jun 10, 2009 3:43 pm

Hi Samuel,
Because of some Versioning differences within older Versions, is the Version .2 currently not newer than .1.2, it's the other way. But thanks for Bringing that to my Attention, the upcoming bigger Release will be mostly be named .3 to avoid confusions.
Did you download the old version, some weeks ago or just within recent days? If the second one is the case, could you please tell me the URI to it?

Thanks
Last bumped by Anonymous on Wed Jun 10, 2009 3:43 pm.
Philnate
Site Admin
 
Posts: 78
Joined: Sun Jun 12, 2005 7:54 pm


Return to WPIDS

Who is online

Users browsing this forum: No registered users and 1 guest

cron