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
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 30
Joined: Thu Aug 03, 2006 7:31 am
Location: India

Cant Access Article

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

When I try to access an article ( ojs enabled site
the following errors occurs

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

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

Can you suggest a possible solution ?


Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

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

Hi Abhiram,

Change line 252 in classes/core/ from:

Code: Select all

$remoteDomain = getHostByAddr(Request::getRemoteAddr());

Code: Select all

@$remoteDomain = getHostByAddr(Request::getRemoteAddr());
Some users may not be able to use domain-based subscriptions.

Alec Smecher
Public Knowledge Project Team
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada

Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests