vForums Support Banner


Visit Base Classics - Gaming Chairs

 

Welcome Guest! Please Login or Register
vForums Support :: vForums :: Support :: API messing up after changing servers. - View Topic
Topic Rating: *****
Printable View
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,008
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
API messing up after changing servers. (22nd Jan 11 at 7:07pm UTC)
Forum URL: http://ihosting.vforums.co.uk
Experienced By: everyone
Browser: All
Operating System: All

Problem:

Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/ihosting/public_html/includes/vforums_api.php on line 117

Warning: fsockopen() [function.fsockopen]: unable to connect to www.support.ihosting.co.cc:80 (php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution) in /home/ihosting/public_html/includes/vforums_api.php on line 117

Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/ihosting/public_html/includes/vforums_api.php on line 117

Warning: fsockopen() [function.fsockopen]: unable to connect to www.support.ihosting.co.cc:80 (php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution) in /home/ihosting/public_html/includes/vforums_api.php on line 117

Warning: Invalid argument supplied for foreach() in /home/ihosting/public_html/index.php on line 59

Fatal error: Cannot use string offset as an array in /home/ihosting/public_html/includes/sidebar.php on line 15


This is all for http://ihosting.co.cc

For some reason when the server I was on went down, my host moved everyone to a new server, and everything is intact, I even uploaded a backup I did before everything went down. http://idirectory.us seems to be working just fine. But for some reason iHosting isn't.
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: API messing up after changing servers. (22nd Jan 11 at 7:30pm UTC)
I'm guessing from the error messages that your host has turned off fsockopen() support.

You need to talk to them - or if you're on a VPS, you can enable it yourself. {Smile}
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,008
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
Re: API messing up after changing servers. (22nd Jan 11 at 7:42pm UTC)
They said everything is fine on their end. fsockopen() is turned on.

Someone hacked into their network on the server I was on, and crashed it. Which in turn they had to move everyone to a new server. http://idirectory.us shows up fine, but with almost the same exact files http://ihosting.co.cc is showing these errors.

edit
Just to point out, for the stats (when not logged in) it shows, but when logged in I get that fatal error.

but the ones that are at the very top of the list 1 and 2. it only shows when logged in.

If that's any help at all.
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: API messing up after changing servers. (22nd Jan 11 at 11:24pm UTC)
I would suggest passing the vforums URL of your forum to the API rather than the custom domain. Their server could be looking locally for that domain rather than resolving it to our server. You should be able to pass the custom domain as the last parameter. eg.

$vforums_api = new vforums_api("ihosting.vforums.co.uk", "API Key Here", "http://www.support.ihosting.co.cc");



Image
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,008
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
Re: API messing up after changing servers. (22nd Jan 11 at 11:30pm UTC)
Ok it works now. I also had to take out "orums_api" as it gave me a fatal error:

Fatal error: Call to a member function login_user() on a non-object in /home/ihosting/public_html/includes/global.php on line 6


Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: API messing up after changing servers. (22nd Jan 11 at 11:32pm UTC)
 
Ok it works now. I also had to take out "orums_api" as it gave me a fatal error:

Fatal error: Call to a member function login_user() on a non-object in /home/ihosting/public_html/includes/global.php on line 6


That was just as an example. I didn't know what you had referenced it as. I tend to use $vforums_api but think some of the examples used $vf. Was a 50/50 gamble on what you were using {Wink}

Anyway, glad to hear it's working now {Smile}

Image
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,008
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
Re: API messing up after changing servers. (22nd Jan 11 at 11:34pm UTC)
Also now the site, and forum is not linking anymore. I can login directly on the site, but on the forum it wont show that I am logged in, shows me as a guest. But it allows me to login with ihosting.vforums.co.uk
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,008
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
Re: API messing up after changing servers. (23rd Jan 11 at 6:39pm UTC)
I log into the site, go to a new page, it logs me out. Why would it be doing this?
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: API messing up after changing servers. (23rd Jan 11 at 9:25pm UTC)
Please give some specific details. By "site" what are you referring to?

Image
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,008
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
Re: API messing up after changing servers. (23rd Jan 11 at 9:53pm UTC)
http://ihosting.co.cc and for the forum it wont log me in, unless I use the .vforums.co.uk extension. Something broke along the line, and I'm not quite sure what happened to why it's all broken. It seems the API doesn't want to work.

I log in on ihosting.co.cc and go to any page, it logs me off. Then I have to re-login again. The forum and site are working, but the login doesn't seem to want to work with either the site, or forum.

I'll PM you my details so you can try it out if you have time to do so.
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,008
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
Re: API messing up after changing servers. (25th Jan 11 at 6:45pm UTC)
Ok, I figured out half the problem, it's Chrome not keeping me logged in when ever I refresh the page, or go to a different page. I tested it in FireFox, and it kept me logged in. But on the forum, it's still not keeping me logged in, under the .co.cc name.


edit:

It works now! I just re-edited the one line:

$vf = new vforums_api("ihosting.vforums.co.uk", "API pass", "http://www.support.ihosting.co.cc");

back to:

$vf = new vforums_api("ihosting.vforums.co.uk", "API pass", ".ihosting.co.cc");

and everything works properly now. {Smile}

Thanks
 Printable View

All times are GMT+0 :: The current time is 9:15am
Page generated in 0.3656 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums