OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Cant Access Article

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Cant Access Article

Postby abhiram » Tue May 29, 2007 12:00 am

Hi,
When I try to access an article ( ojs enabled site http://www.jtropag.in)
the following errors occurs

Warning: gethostbyaddr() [function.gethostbyaddr] : Address is not a valid IPv4 or IPv6 address
in /home/ ejtropag /public_html /classes/core/Request.inc.php on line 252

Warning : Cannot modify header information - headers already sent by (output started
at /home/ejtropag/public_html/classes/core/Request.inc.php :252)
in /home/ejtropag/public_html/classes/template/ TemplateManager.inc.php on line 187

Can you suggest a possible solution ?

Regards
Abhiram
abhiram
 
Posts: 30
Joined: Thu Aug 03, 2006 7:31 am
Location: India

Postby asmecher » Tue May 29, 2007 9:12 am

Hi Abhiram,

Change line 252 in classes/core/Request.inc.php from:
Code: Select all
$remoteDomain = getHostByAddr(Request::getRemoteAddr());
...to...
Code: Select all
@$remoteDomain = getHostByAddr(Request::getRemoteAddr());
Some users may not be able to use domain-based subscriptions.

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 7710
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 6 guests