Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 09:33 pm EST
Geeklog Forums
Error trying to access stats in gus
Status: offline
scobb77
Forum User
Newbie
Registered: 12/15/07
Posts: 14
Ok, I believe I know what to fix, just can't find where to fix the problem.
When I click on the GUS or Today link in User Functions, everything is ok. But when I try to click on any of the stats that are being shown in Visitor Statistics by Month so that I can "drill down" into the stats, I get the "OOPS, Page not found" error.
The problem is that the URL is incorrect ( is looking for /gus/pages.php?month=12&year=2007 but needs to look for /gus/public_html/pages.php?month=12&year=2007) but I can not find where to fix that error on those items. I have gone through functions.inc many times and fixed all the bad spots but these "drill down" features. Is there another place to be looking? Or am I just missing a spot in the functions.inc file?
When I click on the GUS or Today link in User Functions, everything is ok. But when I try to click on any of the stats that are being shown in Visitor Statistics by Month so that I can "drill down" into the stats, I get the "OOPS, Page not found" error.
The problem is that the URL is incorrect ( is looking for /gus/pages.php?month=12&year=2007 but needs to look for /gus/public_html/pages.php?month=12&year=2007) but I can not find where to fix that error on those items. I have gone through functions.inc many times and fixed all the bad spots but these "drill down" features. Is there another place to be looking? Or am I just missing a spot in the functions.inc file?
10
10
Quote
Status: offline
scarecrow
Forum User
Junior
Registered: 10/24/07
Posts: 33
See if this doesn't fix it....
The file to edit is /public_html/gus/include/util.php.
The function in that file is GUS_template_get_page_data
About 5 lines into that function find this line:
Change that line to be:
And I think you'll be good to go.
The file to edit is /public_html/gus/include/util.php.
The function in that file is GUS_template_get_page_data
About 5 lines into that function find this line:
Text Formatted Code
$host = $_GUS_VARS['parsed_site_url']['scheme'] . '://' . $_GUS_VARS['parsed_site_url']['host'];Change that line to be:
Text Formatted Code
$host = $_GUS_VARS['parsed_site_url']['scheme'] . '://' . $_GUS_VARS['parsed_site_url']['host'] . $_GUS_VARS['parsed_site_url']['path'];And I think you'll be good to go.
14
12
Quote
Status: offline
scarecrow
Forum User
Junior
Registered: 10/24/07
Posts: 33
Quote by: scobb77
Thanks for the help but it didn't work.
Darn... guess I'll have to discount my support bill to you.
In my case I was getting the 404-not_found if I tried to look at a page or pages a user had visited. Originally for example, the url would be http://myhost.com/index.php (which doesn't exist). By making the change above the corect url... http://myhost.com/blog/index.php ...was returned.
Are you sure you have GUS installed correctly? I noticed that you have /gus/public_html. My site is basically the opposite... public_html/gus or:
/public_html
----------------> gus
------------------------> include
------------------------> images
------------------------> css
I'm not sure, but gus being outside the public_html directory might be confusing things somewhere. Just a thought.
12
13
Quote
Status: offline
scobb77
Forum User
Newbie
Registered: 12/15/07
Posts: 14
Hi Scarecrow,
Sorry to take so long to reply but been out of town. What I have is -
/worstchristmaslights/ (don't have a public_html or www)
----------------> gus
------------------------>public_html
-------------------------------------------> include
-------------------------------------------> images
-------------------------------------------> css
Sorry to take so long to reply but been out of town. What I have is -
/worstchristmaslights/ (don't have a public_html or www)
----------------> gus
------------------------>public_html
-------------------------------------------> include
-------------------------------------------> images
-------------------------------------------> css
9
9
Quote
Status: offline
scarecrow
Forum User
Junior
Registered: 10/24/07
Posts: 33
Quote by: scobb77
/worstchristmaslights/ (don't have a public_html or www)
----------------> gus
------------------------>public_html
-------------------------------------------> include
-------------------------------------------> images
-------------------------------------------> css
Unless you have a need to have the public_html directory under gus, moving the include, images, and css directories and their default contents to be directly under /gus should fix it I believe.
ie:
gus
-------> include
-------> images
-------> css
If you really, really have to have the public_html directory under /gus for some reason, then it'll take a little hacking to get GUS to look there.
12
7
Quote
All times are EST. The time is now 09:33 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content