Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem filtering Reports by Categories #1191

Closed
simplyraul opened this issue Aug 14, 2013 · 10 comments
Closed

Problem filtering Reports by Categories #1191

simplyraul opened this issue Aug 14, 2013 · 10 comments
Labels

Comments

@simplyraul
Copy link

Hi,

I would just like to get an answer to this problem.

These came from inspecting our site using Firefox Web Developer tools. I am clicking on two different categories to filter the reports displaying on the map. For some reason, the map does not update.

http://ph.iom.int/responsemap/json/cluster?s=1375286400&e=1377964799&z=5&c=12
http://ph.iom.int/responsemap/json/cluster?s=1375286400&e=1377964799&z=5&c=20

Both produce the same result.

I understand that since c is set to a different number it should produce a different result, right?

Anyway, here is our setup:

Ushahidi Version: 2.7
Webserver: Windows 2008 Standard running IIS7

Would really appreciate your help.

Thanks.

Raul Maano

@rjmackay
Copy link
Contributor

It looks to me like this might be an issue with your IIS config or
Web.config
The url rewrites need to pass the currect URL to index.php?kohana_uri AND
append the other query params to the end.
It looks like its just passing the URL but not appending the extra query
params.

Can you attach your web.config?

@simplyraul
Copy link
Author

Yes, you were right... I had to do some tweaking with the web.config file based on the modifications that were suggested for the .htaccess rewrite rules.

This now works. Awesome!

Thanks!

@rjmackay
Copy link
Contributor

Great. Can you copy your working web.config in here? Then I can make sure its documented properly for other people in future!

@simplyraul
Copy link
Author

Sure!

Here's the web.config file that worked.

web config

@rjmackay
Copy link
Contributor

Wrapped in triple ` to code highlight

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Imported Rule 1" stopProcessing="true">
                    <match url="^(application|modules|system)/" ignoreCase="false" />
                    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
                </rule>
                <rule name="Imported Rule 2" stopProcessing="true">
                    <match url="^(.+)$" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="index.php?kohana_uri={R:1}" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

@rjmackay
Copy link
Contributor

@simplyraul if you could compare and review this #1190 pull request that'd be great too!
I don't really have enough background in IIS so the more eyes on the suggested config the better!

@simplyraul
Copy link
Author

can't seem to post codes properly. how'd you do it ? :-)

@rjmackay
Copy link
Contributor

Like this:
```Code goes here ```

Theres a link just above the comment box to 'github flavoured markdown' that should open help docs on the formatting :)

@simplyraul
Copy link
Author

cool! thanks!

@ditorelo
Copy link
Contributor

Ping @aoduor - can we get this puppy closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants