Enhanced XSPF GenID()

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
seensite
Forum Members
Forum Members
Posts: 173
Joined: Sun Feb 10, 2008 7:36 pm

Enhanced XSPF GenID()

Post 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
Post Reply

Return to “Modules/Add-Ons”