Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Next Gen/MySQLman Possible Bug

Quote Reply
Next Gen/MySQLman Possible Bug
In the MySQLman distribution that comes with Next Generation, I was having many problems but then I noticed something...

If the config file it says this:

# The PATH to the template directory.
template_dir => $script_path . "/templates",

# The PATH to the directory with help pages.
help_dir => $script_path . "/help",



The forward slash infront of the directory name "templates" and "help" assumes that those directories are sub-directories of the root directory whereas they are in fact sub-directories of the mySQLman directory.

Therefore I changed it to...

# The PATH to the template directory.
template_dir => $script_path . "templates",

# The PATH to the directory with help pages.
help_dir => $script_path . "help",


This lets the script understand that the directories are subdirectories of the current folder and not the root.

...and now everything works...people may want to try this if they are having trouble.


Paul Wilson.
(Dont blame me if I'm wrong!)
Quote Reply
Re: Next Gen/MySQLman Possible Bug In reply to
I'm not sure I'm understanding what you mean.

'script_path' . '/directory'

is a concatenation of the base path, plus the additional path.

I'm not sure why it works when you remove the '/', unless the
'script_path' is null, in which case it's defaulting to '.'

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ


Quote Reply
Re: Next Gen/MySQLman Possible Bug In reply to
Oh....maybe it is just my servers configuration then but I thought it was the same for everyone.

If you add a leading slash on a URL on my server, it assumes that the directory is a sub-directory of the root, so if for example your structure was like this...

/root/links/admin/images/image1.gif

...and you linked to an image using the following URL...

/images/image1.gif you would get the little red X indicating that the image cant be found.

I would have to write images/image1.gif for it to work and not /images/images.gif
This tells the server that the images directory is a sub-directory of admin and not the root.

I have experienced this on other peoples servers too so it isnt just mine.

I hope that made sense....im not good with words so it was probably a little confusing!
Anyway...the change worked for me as it made MySQLAdmin work.

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Next Gen/MySQLman Possible Bug In reply to
Hi,

In Reply To:
I'm not sure why it works when you remove the '/', unless the
'script_path' is null, in which case it's defaulting to '.'
There is a bug in the reg expression, so it wasn't defaulting to '.' and was actually undefined. =) I've fixed this up.

Cheers,

Alex

--
Gossamer Threads Inc.