View Full Version : Not able to access the readme file
Hello, I just installed JA Submit and I am trying to access the readme file on the backend. However, I am getting the following errors:
Warning: require(http://www.starradio.org.lr/administrator/components/com_ja_submit/readme.html) [function.require]: failed to open stream: Connection refused in /sites1/starradio.org.lr/htdocs/administrator/components/com_ja_submit/admin.ja_submit.php on line 522
Can someone kindly advice me on how I can correct this problem?
Thank you
edwardspek
01-03-2007, 03:18 PM
Yes, I'm getting the same error message when I try to access the ReadMe!!!:((
Someone please advise!
Sephice
02-07-2007, 09:24 PM
same problem here
davidjay
02-16-2007, 08:03 PM
Me as well.
BrianFinnie
02-23-2007, 05:52 PM
Seems a few people have this problem with noone posting any answers. I don't have a fix but I can suggest a work-around or two. Shame this component has so little support.
If you just want to view the readme file, it's the same as the one in your zip package, so just open it at your PC and view it there. Or use the full site path to the readme file in your browser address bar.
If you want to be able to view it in the site back end and stop the error message you can edit the admin.ja_submit.php file causing the error and at the very end replace the variable $mosConfig_live_site with the absolute file reference instead:
Replace
function readme()
{
global $mosConfig_live_site;
require($mosConfig_live_site.'/administrator/components/com_ja_submit/readme.html');
}
with (in your example, copying the absolute path from the error message)
function readme()
{
require("/sites1/starradio.org.lr/htdocs/administrator/components/com_ja_submit/readme.html");
}
Note the double quotes. Single quotes may be OK - I'm not a php expert. Others should replace the path with their own server absolute path.
Hope this helps someone. If I get to a real fix I'll come back. It looks like something to do with the way Joomla picks up the site globals (but it still fails when RG_Emulation is turned back on). Other components do this job with different code but, as I said, I'm no php expert to appply any of those other coding techniques to this. Anyway, life's too short and it's time to move on.
juzwant2play
02-07-2008, 08:01 PM
Replace:
function readme()
{
global $mosConfig_live_site;
require($mosConfig_live_site.'/administrator/components/com_ja_submit/readme.html');
}
It should say:
function readme()
{
global $mosConfig_absolute_path;
require($mosConfig_absolute_path.'/administrator/components/com_ja_submit/readme.html');
}
Thanks Brian, I could not have done it without you!
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.