jdorn / php-reports

A PHP framework for displaying reports from any data source, including SQL and MongoDB
http://jdorn.github.com/php-reports
GNU Lesser General Public License v3.0
478 stars 235 forks source link

I don't know WHY #189

Open valluminarias opened 9 years ago

valluminarias commented 9 years ago

When I change the folder name from php-reports to reports, there is an error in loading reports, but it is ok on the index or report list. It returns a 404 error 'Object not Found'; I DON'T KNOW WHY

valepu commented 9 years ago

I think you are having the same issue of these two:

https://github.com/jdorn/php-reports/issues/191

https://github.com/jdorn/php-reports/issues/188

ripperkhan commented 9 years ago

Please review #191 its possible if your using apache that mode rewrite is not enabled and your directory directive is not configured for it. If your using IIS unfortunately I have not gotten this framework to work on it correctly due to the way url rewrite works in IIS. No one has seemed to figure out which rules will work with it.

PhobosK commented 5 years ago

The issue is a bit old, but anyway just some notes on all those 404 errors one might get, so it is documented here on Github...

When one decides to change the names of the _sampledashboards and the _samplereports folders one should:

  1. Change the respective reportDir and dashboardDir in the config/config.php?
  2. Never rename the Dashboards or Reports folders mentioned above to dashboards or report, because Flight uses this in its routes, but when physical folders have that name too, Apache kicks first with its rewrite rules and the DirectoryIndex index.php, so giving the above errors....

Maybe this should go somewhere in the install instructions?