Banshee
the secure PHP framework

Forum

Slimstat

René
28 november 2010, 15:01


Banshee version: 2.5
PHP version: 5.3
Webserver: Hiawatha V7.4

Hugo,

I got an error page when I try to start Slimstat from the cms menu. As a workaround. I created a menu link

Text: Slimstat
Link: /slimstat/index.php

I can view the slimstat pages now but this workaround defeats the purpose of the Banshee UrlToolkit. I guess.

Cheers
Hugo Leisink
28 november 2010, 17:35
Can you show me the Hiawatha configuration for your Banshee website?
René
28 november 2010, 17:46
What part do want to see?
Hugo Leisink
28 november 2010, 17:47
The VirtualHost block of your Banshee-based website.
René
28 november 2010, 17:49
VirtualHost {
Hostname = 192.168.1.156
WebsiteRoot = /usr/local/www/banshee/public
StartFile = homepage.php
AccessLogfile = /var/log/banshee-access.log
ErrorLogfile = /var/log/banshee-error.log
TimeForCGI = 5
UseFastCGI = PHP5
ExecuteCGI = yes
UseToolkit = banshee
#EnablePathInfo = yes
}

Hugo Leisink
28 november 2010, 17:51
Change "StartFile = homepage.php" to "StartFile = index.php". There is no homepage.php present in the public directory of Banshee. However, there is a index.php present there, just like there is in public/slimstat. This will fix your problem.
René
28 november 2010, 18:38
Same error.
Hugo Leisink
28 november 2010, 18:49
Restarted Hiawatha?
René
28 november 2010, 18:55
Yes. Same error.
However if I edit views/includes/layout_cms.xslt at line 47 this also solves it. But this is a replacement of what I did earlier.
Hugo Leisink
28 november 2010, 19:08
I forgot this one. Add "Match ^/slimstat Return" to your UrlToolkit rule for Banshee. The complete rule is:
UrlToolkit {
ToolkitID = banshee
RequestURI isfile Return
Match ^/(css|files|images|js|slimstat)($|/) Return
Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
Match .*\?(.*) Rewrite /index.php?$1
Match .* Rewrite /index.php
}
René
28 november 2010, 19:23
Yep! We have a winner here
Hugo Leisink
28 november 2010, 19:24
I updated the UrlToolkit rule. It's better now.
René
28 november 2010, 19:33
Thanks for the support, Hugo
Ahcor Werdna
15 august 2011, 20:28
I have run into another problem. Slimstat isn't showing me any info about my site. I did follow the (HOWTO). To make it more clear, the drop down boxes have no info on or in them. Any solutions? Also, my Slimstat only works from CMS. If i add it to my menu it give me page not found, please contact "admin*"
Hugo Leisink
15 august 2011, 20:49
I need a little more information than only "it doesn't work".

Make sure that the link in your menu as a trailing slash. The link /slimstat will give you a 404 error. The correct link is /slimstat/. That is because slimstat is a separate program in the slimstat directory and not a Banshee page.
Message preview

The following BB-codes are available in a message:

  • [b]Bold text[/b]
  • [center]Center text or imagen[/center]
  • [color=color name or #RGB code]Colored text[/color]
  • [i]Italic text[/i]
  • [img]Link to image[/img]
  • [right]Align text or image right[/right]
  • [s]Strike-through text[/s]
  • [size=pixelsize]Big or small text[/size]
  • [u]Underlined text[/u]
  • [url]Link to website[/url]
  • [url=link to website]Link text[/url]