iTunes Watcher
Posted: 24 July 2004 02:32 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  836
Joined  04-17-2002

can anyone help me with this?

I’m trying to get iTunes Watcher working on my EE generated weblog page.

At the moment, I’m using the following with PHP turned on for input

<? include (’/path/to/modules/artify.php’);
  $MusicModule = new MusicModule();
  echo ($MusicModule->artify (5)); ?>

which is supposed to call the album art for last 5 songs I’ve played. It does that but it also generates the following error

Fatal error:  Cannot instantiate non-existent class:  musicmodule in /home/*****/public_html/*****/core/core.functions.php(519) : eval()‘d code on line 2

and also, if I change PHP to output, this EE tag group

{exp:weblog:entries limit=“5” backspace=“6” dynamic=“off”}  {title}
{/exp:weblog:entries}

is not parsed and is rendered as text.  (it appears just above the include in the template)

Also, some of the page is otherwise not completely rendered. Its as though it stops outputting once the iTunes Watcher does its work.

Any ideas? I know very little about php programming so sorry if this is a simple thing.

 Signature 

antipodean.org | uptheduff.org

Profile
 
 
Posted: 24 July 2004 03:27 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

It does display the album art but also shows the “cannot instantiate” error?  Odd.  That error would normally indicate that PHP doesn’t know what the “musicmodule” PHP class is; as if the include didn’t work.  If the artwork is displaying then that can’t be the case.

You might try changing that first line to this:

<?php include('/path/to/modules/artify.php');

but I’ll be a bit surprised if that makes a difference.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 25 July 2004 10:56 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  836
Joined  04-17-2002

Yes it is definitely showing the artwork AND the error.

Weird.

 Signature 

antipodean.org | uptheduff.org

Profile
 
 
Posted: 30 July 2004 07:31 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  838
Joined  04-24-2002

How long ago did you download the iTunes Watcher script?  What version is it?  Do you still have it running, because I don’t see it on your site anymore.

I’ve got the iTunes Watcher script up and running on my site too.  I had to go into the scripts and change a few things in order for it to work correctly (which is why I’m asking when you downloaded it).  Since I made my changes, the author also made some changes to get the artwork to display correctly.

I didn’t include

$MusicModule = new MusicModule();
echo (
$MusicModule->artify (5));

since those lines are also repeated in the artify module.

 Signature 

chrisruzin.netTextMate EE BundleTextMate EE Developer Bundle • Pro Network member
“The greatest barrier to success is the fear of failure.” - Sven Goran Eriksson

Profile
 
 
Posted: 30 July 2004 10:58 AM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  836
Joined  04-17-2002

I don’t have it on my current design. I have a second one going behind the scenes
here.

I didn’t include
$MusicModule = new MusicModule();
echo ($MusicModule->artify (5));
since those lines are also repeated in the artify module.

That was the problem. I removed it and it now works. I checked the instructions in the module comments and it definitely does say to do the include the way I show above, so is this an error that i should bring to the developers attention?

Thanks for your help, Chris.

 Signature 

antipodean.org | uptheduff.org

Profile
 
 
Posted: 30 July 2004 11:05 AM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  838
Joined  04-24-2002

Yeah, it wouldn’t hurt to let the developer know about it.  I didn’t tell him before because I figured it was just me, however now we know I’m not alone.

 Signature 

chrisruzin.netTextMate EE BundleTextMate EE Developer Bundle • Pro Network member
“The greatest barrier to success is the fear of failure.” - Sven Goran Eriksson

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65087 Total Logged-in Users: 37
Total Topics: 82226 Total Anonymous Users: 22
Total Replies: 441924 Total Guests: 212
Total Posts: 524150    
Members ( View Memberlist )