I tried both the component and the module, but both cannot work. Component just says "loading ..." and the module has a "500 internal server error". Please help ... Thank you so much!
Hi there. Being trying to get the module to work as well. Everything seems OK and configured, yet when I perform a conversion the results page gives a 500 internal server error as above with singaporefinancialmarkets.
Tried fiddling with the permissions, no luck so far.
Any suggestions ?
Would love to get it up - it's exactly what I need. Thanks for providing it.
Hi Singapore and Antfarm,
Sounds to me like you're experiencing some sort of 'path/tofile/' issue.
Are you familiar with coding/programming at all? If so, you could try the following (it's quite simple):
Open the ajax.js file in notepad or a plain text editor. The file is in the front end - component/com_currencyconverter - directory. You might want to save a back-up copy of the original file first.
Find the text that shows:
var url="/components/com_currencyconverter/convert.php?from=" + str + "&to=" + strto + "&val=" + val + "&res1=" + res1 + "&res2=" + res2;
(the above should all be on one line)
Replace it with:
var url="http://www.yoursiteaddress.com/components/com_currencyconverter/convert.php?from=" + str + "&to=" + strto + "&val=" + val + "&res1=" + res1 + "&res2=" + res2;
** Replace the 'http://www.yoursiteaddress.com' with your website address.
Your website address MUST be the exact same address as shown in your Joomla! configuration.php file. Note that http://www.domain.com and http://domain.com are DIFFERENT HOSTS/DOMAINS for the purpose of the "Same Origin Policy"
This is not a bug or an issue with our code !! It is a security feature of all web browsers.
Singapore, as you have provided your website address, yours should look like:
var url="http://www.singaporefinancialmarkets.com/components/com_currencyconverter/convert.php?from=" + str + "&to=" + strto + "&val=" + val + "&res1=" + res1 + "&res2=" + res2;
Antfarm, if your site is on a subdomain or in a sub-directory, you must include the subdomain part of the url - i.e. http://www.test.antfarm.com -or- http://www.antfarm.com/subdirectory (you might not need the www part!) - you can get the proper url by going to your main site page.
(again, make sure the above is all on one line - i.e. no line breaks)
Save the file, then upload it to your website server in the front end components/com_currencyconverter directory - just overwrite the existing ajax.php file.
Test and (hopefully) enjoy.
Please let us know how you make out!
Cheers!
D-Mack
Thanks a lot for your reply. Tried your suggestion but it does not work. Tried many combinations of URL (with/without www, /index.php/,etc etc). Uninstalled the component, installed 1.0.2 component, but still can't. Also tried modifying its code as well. Tried the module also, same issues. Really want this to work coz i think it is a great function ...
Thanks - for your detailed reply. I think that would be it. I'm developing on a test server with a temporary URL. When I change the DNS to the correct domain - I'll see what happens.
Just one thing though - your example above seems to refer to the component version of the converter - I'm using the module. I looked at ajax.js from the includes folder - I couldn't see any path to alter...?
Hi D-Mack.
Just tried with the correct domain in place. Sadly still got the problem. I've not tried the component, just the module. Can you suggest anything to amend in the module files.
Error is;
-------------------
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@travelchoice.com.au and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.