Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 04:20 pm EDT

Geeklog Forums

Easyfile 404 Error


Status: offline

abrosam

Forum User
Newbie
Registered: 03/22/05
Posts: 3
I have a new geeklog installation with easyfile 0.7.6 installed. It is working very nicely except for one part -- When I try to click on download from the main page (from the easyfile block), I get a 404 error.

Here's a little information on my setup.
geeklog is in /geeklog/
webroot is in /www/
geeklog html is in /www/geeklog/
geeklog url is http://domainname/geeklog/
easyfile html is in /www/geeklog/easyfile/
easyfile url is http://domainname/geeklog/easyfile/

THE PROBLEM: the link from the easyfile block on the front page tries find file.php at http://domainname/easyfile/file.php instead of http://domainname/geeklog/easyfile/file.php

The interesting part is that if I click on the download link from the main menu, it links to the correct page, and everything works fine (from http://domainname/geeklog/easyfile/index.php links to file.php in the correct folder), but the links from the easyfile block on the main page do NOT work -- it insists that the easyfile directory must be in the root directory of my web directory. I'm new to geeklog and have searched through the code, but can't find where to fix this... I'm hoping someone can help me.
 Quote

Status: offline

Kelvin

Forum User
Chatty
Registered: 10/08/02
Posts: 50
Quote by abrosam:THE PROBLEM: the link from the easyfile block on the front page tries find file.php at http://domainname/easyfile/file.php instead of http://domainname/geeklog/easyfile/file.php


Oops. My bad. To fix this you need to modify easyfile/file.class.php. The method htmlLink (~row 310) is missing a global $_CONF... add that to the top of that function; like so:
Text Formatted Code
    function htmlLink($tooltip = 'date') {
        global $_CONF;
 
 Quote

Status: offline

abrosam

Forum User
Newbie
Registered: 03/22/05
Posts: 3
Quote by Kelvin:Oops. My bad. To fix this you need to modify easyfile/file.class.php. The method htmlLink (~row 310) is missing a global $_CONF... add that to the top of that function; like so:
Text Formatted Code
    function htmlLink($tooltip = 'date') {
        global $_CONF;

 

That worked perfectly. Thanks.
 Quote

All times are EDT. The time is now 04:20 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