Page 1 of 1

Morg help...

Posted: Wed Aug 15, 2007 7:13 pm
by 0tolerance
Not sure if you support morg here or not. If not, could you please point me to a place where I can get some support. When I try to put my music directory in morg, it turns the ":" into a "|" and then throws a fatal error saying that "E|/Music" doesn't exist. Any help that can be given with this issue will be greatly appreciated.

Posted: Wed Aug 15, 2007 7:24 pm
by Allan Hansen
Seems I forgot to test MORG under Windows.

morg_gui.php, line 1350:

// convert user specified directory to unix style
$root = str_replace('\\\\', '/', str_replace(':', '|', $root)); // using \\\\ caused by addslashes()

change to:

// convert user specified directory to unix style
$root = str_replace('\\\\', '/', $root); // using \\\\ caused by addslashes()

New errors

Posted: Wed Aug 15, 2007 7:34 pm
by 0tolerance
I changed the code in morg_gui.php as instructed in your previous post and now I get the following errors

Code: Select all


Warning: Division by zero in C:\Apache2.2\htdocs\morg\morg\morg_gui.php on line 271

Warning: Division by zero in C:\Apache2.2\htdocs\morg\morg\morg_gui.php on line 293

Warning: Cannot modify header information - headers already sent by (output started at C:\Apache2.2\htdocs\morg\morg\morg_gui.php:271) in C:\Apache2.2\htdocs\morg\morg\application.php on line 85


Posted: Wed Aug 15, 2007 8:08 pm
by Allan Hansen
apparently you have set number of columns in toc to zero (possible caused by a bug).

You can fix with this sql:

update morg_config set toc_columns=4;

Another Error

Posted: Wed Aug 15, 2007 9:37 pm
by 0tolerance
I ran the SQL query as suggested in your previous post and this is the error that phpMyAdmin threw

Code: Select all


Warning: Cannot modify header information - headers already sent by (output started at C:\Apache2.2\htdocs\phpMyAdmin\libraries\header_meta_style.inc.php:27) in C:\Apache2.2\htdocs\phpMyAdmin\libraries\common.lib.php on line 1154


Posted: Wed Aug 15, 2007 10:25 pm
by Allan Hansen
I am affraid I cannot help you with phpMyAdmin bugs. You could try an older version though... maybe one that has been tested under Windows.

Able to run SQL query via MySQL Control Center

Posted: Thu Aug 16, 2007 1:09 am
by 0tolerance
I installed MySQL Control Center and was able to run the update query you suggested earlier, but I still get the same 3 errors.

Code: Select all


Warning: Division by zero in C:\Apache2.2\htdocs\morg\morg\morg_gui.php on line 271

Warning: Division by zero in C:\Apache2.2\htdocs\morg\morg\morg_gui.php on line 293

Warning: Cannot modify header information - headers already sent by (output started at C:\Apache2.2\htdocs\morg\morg\morg_gui.php:271) in C:\Apache2.2\htdocs\morg\morg\application.php on line 85


I even tried changing the number of columns in Morg's config itself, and that didn't help either.
http://www.otolerance.net/morg/index.php

Posted: Thu Aug 16, 2007 2:37 am
by Allan Hansen
I am affraid I don't know how to help you.

Those two lines that gives division by zero:

$lines = sizeof($xml) / $this->toc_columns;

and

$column_width = floor(100/$this->toc_columns) . '%';

It can only be that toc_columns == 0.

Maybe there is something wrong with your php?

You could try the following:

line 269: insert

$this->toc_columns = 4;

but it will likely give you another error

Thank you

Posted: Fri Aug 17, 2007 11:41 pm
by 0tolerance
I just decided to modify demo.mysql.php to achieve what I am looking for. I noticed an issue there too, but I will post that in a new thread.