Welcome Guest ( Log In | Register )

2 Pages V  1 2 >  
Reply to this topicStart new topic
> AMIPDS just displays the url as a image
jacknetuk
post Jan 6 2008, 09:12 PM
Post #1


Member
**

Group: Members
Posts: 15
Joined: 6-January 08
Member No.: 452



Ive downloaded AMIPDS and put the files on my server and added the lines to my IRC presets like it says in the config

Heres the lines for the preset
CODE
/template:(c:\program files\itunes\plug-ins\amipwebamipweb.conf)
c:\program files\itunes\plug-ins\amipweb\amipweb.out
/exec:(c:\program Files\itunes\plug-ins\amipweb\curl.exe) -K amipweb.out


But all thats outputted by my signature.php is just the url of signature.php nothing else is outputted
Ive chmodded the files so i dont know what else it could be
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jan 6 2008, 09:17 PM
Post #2


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Save the image to disk and open it in the text editor or see the server logs, there is something wrong with server settings.

Try jpeg instead of png, there is one known bug with PNG generation and new PHP versions which will be fixed in the next version.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jacknetuk
post Jan 6 2008, 09:22 PM
Post #3


Member
**

Group: Members
Posts: 15
Joined: 6-January 08
Member No.: 452



QUOTE(Serge @ Jan 6 2008, 09:17 PM) *

Save the image to disk and open it in the text editor or see the server logs, there is something wrong with server settings.

Try jpeg instead of png, there is one known bug with PNG generation and new PHP versions which will be fixed in the next version.


I dont get a option to save it to disk in firefox, i ran the command from the command line with output to the log this is what i got
CODE
== Info: About to connect() to www.jacknet.co.uk:80
== Info: Connected to www.jacknet.co.uk (192.168.1.34) port 80
=> Send header, 228 bytes (0xe4)
0000: GET /songinfo/signature.php?title=123&artist=456&album=789 HTTP/
0040: 1.1
0045: User-Agent: curl/7.10.3 (win32) libcurl/7.10.3
0075: Host: www.jacknet.co.uk
008e: Pragma: no-cache
00a0: Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
00e2:
<= Recv header, 17 bytes (0x11)
0000: HTTP/1.0 200 OK
<= Recv header, 37 bytes (0x25)
0000: Date: Sun, 06 Jan 2008 21:09:39 GMT
<= Recv header, 52 bytes (0x34)
0000: Server: Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.2
<= Recv header, 36 bytes (0x24)
0000: X-Powered-By: PHP/5.2.3-1ubuntu6.2
<= Recv header, 79 bytes (0x4f)
0000: Cache-Control: no-store, no-cache, must-revalidate, post-check=0
0040: , pre-check=0
<= Recv header, 40 bytes (0x28)
0000: Expires: Fri, 12 May 1978 12:33:00 GMT
<= Recv header, 18 bytes (0x12)
0000: Pragma: no-cache
<= Recv header, 20 bytes (0x14)
0000: Content-Length: 33
<= Recv header, 25 bytes (0x19)
0000: Content-Type: image/png
<= Recv header, 44 bytes (0x2c)
0000: X-Cache: MISS from supernova.jacknet.co.uk
<= Recv header, 56 bytes (0x38)
0000: X-Cache-Lookup: MISS from supernova.jacknet.co.uk:3128
<= Recv header, 60 bytes (0x3c)
0000: Via: 1.0 supernova.jacknet.co.uk:3128 (squid/2.6.STABLE14)
<= Recv header, 19 bytes (0x13)
0000: Connection: close
<= Recv data, 33 bytes (0x21)
0000: .PNG
0006: ......IHDR.......7......{.H
== Info: Closing connection #0
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jan 6 2008, 09:27 PM
Post #4


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Use some download manager or download with curl into file. Otherwise look inside server logs.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jacknetuk
post Jan 6 2008, 09:35 PM
Post #5


Member
**

Group: Members
Posts: 15
Joined: 6-January 08
Member No.: 452



QUOTE(Serge @ Jan 6 2008, 09:27 PM) *

Use some download manager or download with curl into file. Otherwise look inside server logs.


Nothing that i can read is in there, by server logs i assume you mean the webserver logs
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jan 6 2008, 09:37 PM
Post #6


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Yes, domain logs, probably error.log. Does it help if you use jpeg generation?

Another things you can try is to change quality setting from 100 to 9 or change the 269 line of the script to:

imagepng($input, $file, ($config['quality'] / 10) - 1);
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jacknetuk
post Jan 6 2008, 09:40 PM
Post #7


Member
**

Group: Members
Posts: 15
Joined: 6-January 08
Member No.: 452



Nope the error.log shows this which i take it is the problem
CODE
gd-png error: setjmp returns error condition
gd-png:  fatal libpng error: zlib error


Any ideas how to fix this?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jan 6 2008, 09:43 PM
Post #8


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



I've already suggested you 3 different fixes for this problem:
1. use jpeg
2. change quality
3. change line in script.

Isn't it enough for you?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jacknetuk
post Jan 6 2008, 09:50 PM
Post #9


Member
**

Group: Members
Posts: 15
Joined: 6-January 08
Member No.: 452



QUOTE(Serge @ Jan 6 2008, 09:43 PM) *

I've already suggested you 3 different fixes for this problem:
1. use jpeg
2. change quality
3. change line in script.

Isn't it enough for you?


Changing the quality has worked but it doesnt seem to have updated the song info for the image, its still set at the defaults ive got the code in the presets irc bit btw
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jan 6 2008, 09:53 PM
Post #10


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Check the instruction again, you forgot to change the pass probably.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jacknetuk
post Jan 6 2008, 09:55 PM
Post #11


Member
**

Group: Members
Posts: 15
Joined: 6-January 08
Member No.: 452



QUOTE(Serge @ Jan 6 2008, 09:53 PM) *

Check the instruction again, you forgot to change the pass probably.


Nope didnt forget to change the pass
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jacknetuk
post Jan 7 2008, 05:24 PM
Post #12


Member
**

Group: Members
Posts: 15
Joined: 6-January 08
Member No.: 452



QUOTE(jacknetuk @ Jan 6 2008, 09:55 PM) *

Nope didnt forget to change the pass


Sorry for the double post but still having this issue ive followed the readme but doesnt seem to update the image how can i check that curl is accessing the server?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jan 7 2008, 05:27 PM
Post #13


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Run curl from the command line with correct parameters and see if it updates the text file (np.txt) on the server. See log for errors. Your sample above shows that you are missing password parameter and instead of storing your song info into file the script starts to display the image.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jacknetuk
post Jan 7 2008, 08:52 PM
Post #14


Member
**

Group: Members
Posts: 15
Joined: 6-January 08
Member No.: 452



Ive ran the command from the command line and i get a load of data like this returned with loud beeps on the pc's internal speaker

Here

I can confirm that the password is correct in both files

Thanks
Jack
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jan 7 2008, 08:57 PM
Post #15


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



No, "action" parameter is not passed or passwords do not match, therefore the script returns binary data.

Send me your amipweb.conf, amipweb.out and signature.php files (my e-mail is in the contacts section of the site).
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jacknetuk
post Jan 7 2008, 09:49 PM
Post #16


Member
**

Group: Members
Posts: 15
Joined: 6-January 08
Member No.: 452



QUOTE(Serge @ Jan 7 2008, 08:57 PM) *

No, "action" parameter is not passed or passwords do not match, therefore the script returns binary data.

Send me your amipweb.conf, amipweb.out and signature.php files (my e-mail is in the contacts section of the site).


I dont seem to have a amipweb.out in my directory where curl is located (C:\amipweb)?

Also heres the code that calls curl and outputs amipweb.out just for you to look at
CODE
/template:(c:\amipweb\amipwebamipweb.conf)
c:\amipweb\amipweb.out
/exec:(c:\amipweb\curl.exe) -K amipweb.out

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jan 7 2008, 09:54 PM
Post #17


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Lost the slash in
/template:(c:\amipweb\amipwebamipweb.conf)
c:\amipweb\amipweb.out ?

Should be

/template:(c:\amipweb\amipweb.conf)
c:\amipweb\amipweb.out
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jacknetuk
post Jan 8 2008, 12:37 PM
Post #18


Member
**

Group: Members
Posts: 15
Joined: 6-January 08
Member No.: 452



QUOTE(Serge @ Jan 7 2008, 09:54 PM) *

Lost the slash in
/template:(c:\amipweb\amipwebamipweb.conf)
c:\amipweb\amipweb.out ?

Should be

/template:(c:\amipweb\amipweb.conf)
c:\amipweb\amipweb.out


Still no amipweb.out generated in that directory
Heres the updated one
CODE

/template:(c:\amipweb\amipweb\amipweb.conf)
c:\amipweb\amipweb.out
/exec:(c:\amipweb\curl.exe) -K amipweb.out


BTW: That above should be located in the IRC Presets like in the readme shouldnt it?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jan 8 2008, 02:11 PM
Post #19


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Yes, but your preset is still not correct, can't you see it? You have an extra amipweb.

My example:
CODE
/template:(c:\amipweb\amipweb.conf)
c:\amipweb\amipweb.out


and yours:

CODE
/template:(c:\amipweb\amipweb\amipweb.conf)
c:\amipweb\amipweb.out


You probably need new eyes.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jacknetuk
post Jan 8 2008, 07:46 PM
Post #20


Member
**

Group: Members
Posts: 15
Joined: 6-January 08
Member No.: 452



QUOTE(Serge @ Jan 8 2008, 02:11 PM) *

Yes, but your preset is still not correct, can't you see it? You have an extra amipweb.

My example:
CODE
/template:(c:\amipweb\amipweb.conf)
c:\amipweb\amipweb.out


and yours:

CODE
/template:(c:\amipweb\amipweb\amipweb.conf)
c:\amipweb\amipweb.out


You probably need new eyes.


Yes i think i do need new eyes i think, or glasses

CODE
/template:(c:\amipweb\amipweb.conf)
c:\amipweb\amipweb.out
/exec:(c:\amipweb\curl.exe) -K amipweb.out


Right so is this correct because its still not generating a amipweb.out file

Below are pics from the AMIP configurator



Attached image(s)
Attached Image Attached Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

2 Pages V  1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: