Hi you all and thanks for such a wonderful module. I'm using it on a couple of sites, I create a text field, a Rules that on node save copies de URL on such a field and then a mobile code formatter on that field to place a QR code of the URL on the most convinient place.
The problem is that when I try to configure it with "phpqrcode" only a "Error" string is painted on the middle of the pages. There are no more clues, and no messages on the watchdog list. I've verified that GS2 is installed, "phpqrcode" also (it appears on the providers list), that there are permissions to write the files, that the server is using PHP 5.3,... I don't know what else I could verify. Any other provider is working but I preview that both sites could achive a high traffic (at least one of them) and I would prefer to be independent of the QR provider.
I was surprised when after setting a site on my computer using last Wamp Server distribution and managing that site to produce QR codes with the "phpqrcode" library, I've set this site and another on ISP servers and there it's not working at all. I'm using Libraries API v.1.
Any idea would be appreciated :-)
Comments
Comment #1
dropletz commentedHi, i have the same problem. your help is really appreciated.
Comment #2
esteven commentedHi, same problem here. Did someone solve this issue?
Thanks
Comment #3
decipheredIssue confirmed, fixed and committed.
Comment #4
jorditr commentedHi Stuart,
I've seen that the downloadble versions are older than your comment, is it possible to use any version of your module with that correction in order to test it?
Comment #5
decipheredJordiTR,
Unless there is something wrong with Drupal.org's packaging system, the 7.x-2.x-dev should be the updated version to test with.
Comment #6
jorditr commentedHi Stuart,
I'm afraid I've had no positive results with the upgrade. I've downloaded it twice, using last active dev today (August 16), used Drupal update (no updates were available) and no way. Using Google as a provider renders a nice QR code and setting phpqrcode just throws an "Error" string on the page, no other messages, no watchdog entries. I don't know what else I could do to add valuable information to this report :-( May you help me to debug the possible origin of this problem?
Comment #7
deanflory commentedI've got the library installed, the module installed, and when changing an existing preset or a new one for Mobile Codes from Google to phpqrcode it gives me this error and shows nothing but the Google settings:
I think there was a similar issue I experienced when trying out the D6.x version.
Only when I select the Google setting of "Output encoding" to "ISO-8859-1" does it change to the phpqrcode options.
Then when I change the "Error correction level", "Size" and "Margin" phpqrcode settings it again says "An illegal choice has been detected. Please contact the site administrator." and the "Error correction level" and "Size" settings dropdowns are highlighted in red.
Then it would only allow the exact combination of "Error correction level" to "L - smallest", and a "Size" of "10".
Hope this helps in some way.
Comment #8
deanflory commentedAfter updating to the August 14 dev version I am now able to view and set the Mobile Codes Settings page:
/admin/config/content/mobile_codes/settings
Comment #9
ptitb commentedI tried the latest dev version but I can't get a QR code with the phpqrcode library.
When I call the phpqrcode library without mobile codes it works perfectly.
But I would like to use this module so I can use the caching mechanism.
I tried debugging some stuff, but can't find the bug.
Could you help us?
Comment #10
decipheredYou're going to have to give me some more information, I can confirm that the latest dev works with PHPQrCode 100% for me, so if I can't see an issue I can't fix an issue.
Comment #12
andrew@oscailte.org commentedI had a similar problem to this and traced the issue to the use of the drupal_http_request() function in mobile_codes.module around line 137. The drupal_http_request function is not called with a relative url, it's called with the full absolute url (https://www.mydrupal.com/page-one) including your 'http' or 'https' scheme.
In my case, the drupal server does not have direct access out to the web and I am using a patch for redirecting drupal web requests through our web proxy servers. I added the local base domain to the list of domains to not send through the proxy in my settings.php file and voila!
After that, it works fine for me.
Just thought reporting my specific issue might help someone else.
Comment #13
deanflory commentedI am still unable to get it to work with current versions of module and library for phpqrcode. I set the settings but the only response on the page is in the form of the text "Error" where the actual QR code image should be.
When I switch it to Google, it works flawlessly.
I have no other information or errors that can can be submitted to help track down the problem. For now I'll just stick with Google.