Page 1 of 1

Enhanced XSPF GenID()

Posted: Thu Nov 10, 2011 5:28 pm
by seensite
Hello,

Using Enhanced XSPF in CMSMS 1.10.1, I can't get rid of this "Fatal error: Call to a member function GenID() on a non-object in /modules/EnhancedXSPF/lib/classes/class.PlaylistManager.php on line 26".

This is the relevant code portion:

Code: Select all

		if (empty($errors))
		{
			$new_id = $this->db->GenID(cms_db_prefix() . 'module_exspf_playlist_seq');
			$query = "
				INSERT INTO " . cms_db_prefix(). "module_exspf_playlist
				(id, name, description)
					VALUES
				(?, ?, ?)
			";
			$result = $this->db->Execute(
				$query, 
				array($new_id, $playlist->Name, $playlist->Description)
			);
			if ($result)
			{
				$ret['new_id'] = $new_id;
			}
		}
Line 26 is this one:

Code: Select all

			$new_id = $this->db->GenID(cms_db_prefix() . 'module_exspf_playlist_seq');
			$query = "
				INSERT INTO " . cms_db_prefix(). "module_exspf_playlist
				(id, name, description)
					VALUES
				(?, ?, ?)
			";
I spent hours trying to fix it using other writtings, no way. I searched the forum thoroughly but... niet solution.

Had anyone an idea? I'm stuck with this! Thanx