Bug 3833 - Clean install crashes with undefined value in Import.pm
: Clean install crashes with undefined value in Import.pm
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Database
: unspecified
: PC Debian Linux
: P2 critical (vote)
: ---
Assigned To: Chris Owens
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-07-28 04:58 UTC by Justin Fletcher
Modified: 2008-09-15 14:39 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Fletcher 2006-07-28 04:58:31 UTC
I attempted a clean installation, in a new user account of the SlimServer svn trunk in order to try out the svn version without affecting the regular version I run.

The slimserver command was run and output was as follows :

---
slim2@buttercup:~$ ./slimserver.pl --httpport 9001 --cliport 9002
060728 12:38:53  InnoDB: Started; log sequence number 0 131971
060728 12:38:53 [Note] /resource/slim2/Bin/i386-linux/mysqld: ready for connections.
Version: '5.0.21-standard'  socket: '/resource/slim2/Cache/slimserver-mysql.sock'  port: 9092  MySQL Community Edition - Standard (GPL)
2006-07-28 12:39:04.0458 Your data source needs to be configured. Please open your web browser,
2006-07-28 12:39:04.0472 go to the following URL, and click on the "Server Settings" link.

2006-07-28 12:39:04.0481 The URL to access SlimServer is now:

        http://buttercup:9001/
Can't call method "value" on an undefined value at /resource/slim2/Slim/Music/Import.pm line 296.
060728 12:39:13 [Note] /resource/slim2/Bin/i386-linux/mysqld: Normal shutdown

060728 12:39:13  InnoDB: Starting shutdown...
060728 12:39:15  InnoDB: Shutdown completed; log sequence number 0 131981
060728 12:39:15 [Note] /resource/slim2/Bin/i386-linux/mysqld: Shutdown complete

---

I made a tiny modification to the Import.pm file at the line indicated to check that the value was not undefined before obtaining $value. This appears to have fixed the problem.
Comment 1 KDF 2006-07-28 08:54:20 UTC
i believe this was just fixed by Dan at change 8717
Comment 2 KDF 2006-07-28 08:55:32 UTC
or..maybe not. coffee first :)
Comment 3 Dan Sully 2006-07-28 09:39:20 UTC
Fixed - change 8718