0
Hello. I just purchased and installed the Pro version.
I am unable to get the discogs search working from the admin panel. I have my API key entered and saved properly. And my server is gzip enabled. I tested using the link you had posted in another thread see below...My site is gzipped
...but whenever I click on the search discogs button, nothing happens, no errors, nothing bad in firebug (i see an XHR post [q=u2%20unforgettable%20fire&option=com_muscol&controller=albums&task=search_discogs] to index2.php when the button is clicked, but that's it. No response data is returned.) and no results are displayed.
Please advise
Thanks!
I am unable to get the discogs search working from the admin panel. I have my API key entered and saved properly. And my server is gzip enabled. I tested using the link you had posted in another thread see below...My site is gzipped
...but whenever I click on the search discogs button, nothing happens, no errors, nothing bad in firebug (i see an XHR post [q=u2%20unforgettable%20fire&option=com_muscol&controller=albums&task=search_discogs] to index2.php when the button is clicked, but that's it. No response data is returned.) and no results are displayed.
Please advise
Thanks!
Responses (56)
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0Glad yours is working....
However I still can't gget mine to work or Germi to answer my posts
http://www.joomlamusicsolutions.com/en/forum/music-collection-extensions/discogs-3.html#5461
What gives? -
Accepted Answer
-
Accepted Answer
0i've tried several tests with accessing discogs data using my own code: and it's working fine. I'm using curl with gzip encoding. I always get a good response.
I tried pasting my code here but the forum software is stripping it out of the post. Sorry.
I've also successfully tried: all the test from the php site to make sure that gzinflate and deflate are working and they are. -
Accepted Answer
0seems to be getting a little further. Now instead of an error message I'm getting this returned from the search:
��X��K��X�r�F}�;�h���V�=�e;v6'��E,�c�U�R�F}��X�J,���v3 ]V:��s��n�d)�#g2�g-�2��YKLB��_B19}t��k���A�.�]óHSb���_�)�x��m�����} �n�jo�+�u��kh��u���ݫ�����e[��1l�C� LaW�����*�7\\�k��3�x����E��E��*��nS�8Γ�*�T����9ynOn�b� -
Accepted Answer
0Mine works fine outside of JMS as well.
Check out http://www.roundrockradio.com/discogs-test.html
Click to search link comes up which is hard coded by me to search for Metallica, my API Access key is also hard coded into the link.
Clicking to Search brings up the result, Viola!
This is the same server I have JMS installed on.
Bottom line, the problem is with JMS, and not my server.
Still no love from germi though. -
Accepted Answer
-
Accepted Answer
0RockRoundRadio: do I have access to your admin area? give it to me please.
in any case, let me tell you that the search is a bit trickier than just clicking on a link. why?
time for some http lesson:
on your code (hardcoded api discogs href), when you click on it, its YOUR BROWSER who is making a request to discogs. YOUR BROWSER (on your physical machine), NOT YOUR SERVER (somewhere else)
your browser DOES accept GZIP encoding. on the HTTP request sent from your browser to discogs, your browser tells discogs that he accepts gzip data. discogs returns gzip data, your browser supports it, and therefore all looks fine.
accecing the discogs API "from behind" it quite different: you write something on the filed and click search. your search is sent to YOUR SERVER, and is your server who PERFORMS THE REQUEST to discogs. so in this case, its your server that is sending the http request to discogs, not your browser
BIG DIFFERENCE
and the problem comes here: your SERVER does not accept gzip data
your little discogs-test.html works. of course. because its your browser who performs the request.
ALL BROWSERS support gzip
but not all servers
do I make my point? -
Accepted Answer
0My issue is now resolved. After setting my ZLIB.output_compression setting to 'ON', then restarting Apache, the discogs search started working.
I found that by having your Joomla gzip compression setting 'enabled' is enough to fool the WhatsMyIP site into thinking this feature should work, but it's not enough.
For those who have not yet got this working. If your apache server is 1.3.x you need to make sure you have mod_gzip installed properly, and if you're running apache 2.x install and enable mod_deflate.
Cheers! And thank you GERMI for great support! -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0How about reading well the thread?
the solved issue was on a customer that clicked and obtained nothing, and again, IT MEANS THAT YOUR SERVER DOES NOT ACCEPT GZIP encoding
you dont get nothing beacuse you don have the error reporting enabled
demonstration: open /administrator/components/com_muscol/controllers/albums.php and on line 48 approx (afeter search_discogs() function is declared) add this:
error_reporting(E_ALL);
this will enable error reporting.
then try the discogs function again. you'll see the error returned, probably a "Warning: gzinflate() etc" saying that the data is not correct. well, the data is not correct because what Discogs returned is actually "Client does not support gzip data" (or something similar)
you can see this adding
echo $return;
on line 63 approx of the same file
well, all that means what I said before. you think that your server allows gzip, but trust me, it does not. check your apache config. -
Accepted Answer
0Germi - You keeping going back to our servers don't support it, yet you sent us to a site to test it. The site reported back that it was enabled. We then informed you of that and you're going back to "it doesn't really support it if though it says it does"
Do you see how that can be confusing?
I think most of us just want it working.
If the server doesn't support it, then fine.
If it does, what's the solution to the problem? -
Accepted Answer
0well, the site to test is seems to be only a guidance, not a definitive "yes" or "no"
I know it can be confusing, I appologise for that. I'm the first (believe me) who wants to solve this ASAP, although I know its not really a MC problem itself.
I still believe the server does not support it. send me FTP access and joomla admin access and I'll try to prove it to you by making some debugging (or solve it, if I can! of course! )
believe me, this is my number 1 priority
I want to get this thing working more than you do -
Accepted Answer
0@Rock Round Radio: I didnt received any mail... :S
@carlucci and everybody readin this: I tested your site, and it turns out that your problem was not about gziped data or anything like this... it was just that you hadent entered a Discogs API key, even it says clearly "You have not defined a Discogs API Key. If you do not have one, get one here"
this was my face when I saw that the "problem" was this: :blink: :dry: :huh: :blink: inch: inch: inch: :angry: :angry: -
Accepted Answer
0@Rock Round Radio: I didnt received any mail... :S
@carlucci and everybody readin this: I tested your site, and it turns out that your problem was not about gziped data or anything like this... it was just that you hadent entered a Discogs API key, even it says clearly "You have not defined a Discogs API Key. If you do not have one, get one here"
this was my face when I saw that the "problem" was this: :blink: :dry: :huh: :blink: inch: inch: inch: :angry: :angry: -
Accepted Answer
-
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »