![]() |
![]() ![]() |
![]() |
jacknetuk |
![]()
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 |
Serge |
![]()
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. |
jacknetuk |
![]()
Post
#3
|
Member ![]() ![]() Group: Members Posts: 15 Joined: 6-January 08 Member No.: 452 ![]() |
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 |
Serge |
![]()
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.
|
jacknetuk |
![]()
Post
#5
|
Member ![]() ![]() Group: Members Posts: 15 Joined: 6-January 08 Member No.: 452 ![]() |
|
Serge |
![]()
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); |
jacknetuk |
![]()
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? |
Serge |
![]()
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? |
jacknetuk |
![]()
Post
#9
|
Member ![]() ![]() Group: Members Posts: 15 Joined: 6-January 08 Member No.: 452 ![]() |
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 |
Serge |
![]()
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.
|
jacknetuk |
![]()
Post
#11
|
Member ![]() ![]() Group: Members Posts: 15 Joined: 6-January 08 Member No.: 452 ![]() |
|
jacknetuk |
![]()
Post
#12
|
Member ![]() ![]() Group: Members Posts: 15 Joined: 6-January 08 Member No.: 452 ![]() |
|
Serge |
![]()
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.
|
jacknetuk |
![]()
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 |
Serge |
![]()
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). |
jacknetuk |
![]()
Post
#16
|
Member ![]() ![]() Group: Members Posts: 15 Joined: 6-January 08 Member No.: 452 ![]() |
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 |
Serge |
![]()
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 |
jacknetuk |
![]()
Post
#18
|
Member ![]() ![]() Group: Members Posts: 15 Joined: 6-January 08 Member No.: 452 ![]() |
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? |
Serge |
![]()
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. |
jacknetuk |
![]()
Post
#20
|
Member ![]() ![]() Group: Members Posts: 15 Joined: 6-January 08 Member No.: 452 ![]() |
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) ![]() ![]() |
![]() ![]() |