1
stpamx
SOS --- gethostbyname failed
  • 2003/10/22 11:05

  • stpamx

  • Just popping in

  • Posts: 19

  • Since: 2003/9/14


I am working with XOOPS for about a month.
I have installed XOOPS 2.0.3 twice as I am doing two different projects(not themes).
The last 2 days I am getting the error

WARNING: php_network_getaddresse: gethostbyname failed in C:/easyphp/www/aaa/html/admin,php on line 119

followd by other errors.

This happens mainly when I try to sign in (re-direct).
Actully, it redirects it my the other project.

So, I believe that there is some kind of cookie, that keeps data im memory. I clear cache, templates-c, end even I deleted the project, re-installed XOOPS anf retried. At login time it redirects me to the old project. Apparently it brings me back to an old theme of another project.

Any one knows why?

2
Anonymous
Re: SOS --- gethostbyname failed
  • 2003/10/22 11:13

  • Anonymous

  • Posts: 0

  • Since:


This happends when you are Offline?

In line 119 the admin.php will get the News fromhttps://xoops.org/backend.php

The paths are ok in the mainfile.php ?

3
stpamx
Re: SOS --- gethostbyname failed
  • 2003/10/22 12:01

  • stpamx

  • Just popping in

  • Posts: 19

  • Since: 2003/9/14


Yes. It os offline as I am working locally.

In admin.php
Http://www.xoops.org/backend.php is on line 98 it is XOOPS 2,0,3

all the paths in mainfile,php are correct and are indicating the current project.

apparently after the gethostbyname failed arror the next error is
WARNING:fopen("https://xoops.org/backend,php", "r" - no such file or directory in c:/easyphp/www/aaa/html/admin.php on line 119.

on line 119 in admin,php is where the $rssfile is checked i,e
https://xoops.org/backend,php
any help will be appreciated.

4
Anonymous
Re: SOS --- gethostbyname failed
  • 2003/10/22 12:15

  • Anonymous

  • Posts: 0

  • Since:


To get PHP's gethostbyname to work, you need resolv.conf (and possibly hosts) in /var/www/etc (assuming default install dirs).


5
stpamx
Re: SOS --- gethostbyname failed
  • 2003/10/22 14:39

  • stpamx

  • Just popping in

  • Posts: 19

  • Since: 2003/9/14


I really don't know how to do all these.
However I back up my previous project and after i delete it.
I did the same for the second project, and then I installed XOOPS from the beginning. Now I have only one project.

When I tested it and tried to login, the login was succesfull but tried to redirect me to the old project,and I got a page unavailable on the browser.

This indicates to me thar somewhere the system(apachi,or xoops) keeps the path of the old project and that is what I am trying to find.

6
Anonymous
Re: SOS --- gethostbyname failed
  • 2003/10/23 0:40

  • Anonymous

  • Posts: 0

  • Since:


The problem is not XOOPS or Apache is the resolv.conf find it on your system must look like this

### BEGIN INFO
#
# Modified_by:  pppd
# Backup:       /etc/resolv.conf.saved.by.pppd.ppp0
# Process:      pppd
# Process_id:   2744
# Script:       /etc/ppp/ip-up
# Saveto:       
# Info:         This is a temporary resolv.conf created by service pppd.
#               The previous file has been saved and will be restored later.
#
#               If you don't like your resolv.conf to be changed, you
#               can set MODIFY_{RESOLV,NAMED}_CONF_DYNAMICALLY=no. This
#               variables are placed in /etc/sysconfig/network/config.
#
#               You can also configure service pppd not to modify it.
#
#               If you do not want the pppd to change your nameserver
#               settings set MODIFYDNS=no in the config file for
#               this provider in /etc/sysconfig/network/providers/
#               and ensure that the option usepeerdns is not set
#               in /etc/ppp/options.
#
### END INFO
domain local
nameserver 213.148.129.10
nameserver 213.148.130.10


This will help to finish your problem

Greetz Predator

7
stpamx
Re: SOS --- gethostbyname failed
  • 2003/10/24 7:29

  • stpamx

  • Just popping in

  • Posts: 19

  • Since: 2003/9/14


Thanks I tried it and works.

Thanks a lot

Login

Who's Online

192 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 192


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits