Morg help...

Locked
0tolerance
User
Posts: 9
Joined: Wed Aug 15, 2007 3:24 am

Morg help...

Post by 0tolerance » Wed Aug 15, 2007 7:13 pm

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.

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Aug 15, 2007 7:24 pm

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()

0tolerance
User
Posts: 9
Joined: Wed Aug 15, 2007 3:24 am

New errors

Post by 0tolerance » Wed Aug 15, 2007 7:34 pm

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


Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Aug 15, 2007 8:08 pm

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;

0tolerance
User
Posts: 9
Joined: Wed Aug 15, 2007 3:24 am

Another Error

Post by 0tolerance » Wed Aug 15, 2007 9:37 pm

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


Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Aug 15, 2007 10:25 pm

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.

0tolerance
User
Posts: 9
Joined: Wed Aug 15, 2007 3:24 am

Able to run SQL query via MySQL Control Center

Post by 0tolerance » Thu Aug 16, 2007 1:09 am

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

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Thu Aug 16, 2007 2:37 am

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

0tolerance
User
Posts: 9
Joined: Wed Aug 15, 2007 3:24 am

Thank you

Post by 0tolerance » Fri Aug 17, 2007 11:41 pm

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.

Locked