forum.webdiplomacy.net

webDip dev coordination forum / public access todo list
It is currently Mon Dec 11, 2017 1:51 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: error
PostPosted: Thu Jul 07, 2011 10:13 pm 
Offline

Joined: Thu Jul 07, 2011 10:11 pm
Posts: 3
Hello,

Hou can i fix this error?

Error triggered: fsockopen() [function.fsockopen]: unable to connect to http://www.infrfo.com/games/webdiplomacy/:25 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?).

This was probably caused by a software bug. If these occur often try enabling error-logging via config.php, and report errors to the official devs for help



Thanks!


Top
 Profile  
 
 Post subject: Re: error
PostPosted: Fri Jul 08, 2011 11:18 am 
Offline
Site Admin

Joined: Sat Jun 28, 2008 6:24 am
Posts: 892
Post your config file (with usernames / passwords blanked out of course)


Top
 Profile  
 
 Post subject: Re: error
PostPosted: Fri Jul 08, 2011 10:19 pm 
Offline

Joined: Thu Jul 07, 2011 10:11 pm
Posts: 3
<?php
/*
Copyright (C) 2004-2009 Kestas J. Kuliukas

This file is part of webDiplomacy.

webDiplomacy is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

webDiplomacy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with webDiplomacy. If not, see <http://www.gnu.org/licenses/>.
*/

defined('IN_CODE') or die('This script can not be run by itself.');

/**
* The configuration object. This is the only file that will require_once modification by
* end users.
*
* @package Base
*/
class Config
{
/**
* This is the MySQL socket. It could be a network socket or a UNIX socket.
*
* eg '127.0.0.1:3306'
* or 'localhost'
* or 'mysql.myhost.com'
* or '/tmp/mysql.sock'
*
* @var string
*/
public static $database_socket='localhost';

/**
* The user who will perform all database actions. You should
* tweak the user's permissions so they can only do the bare
* minimum they need to be able to do to update the webDiplomacy
* tables. Read the administrator documentation for more info.
*
* @var string
*/
public static $database_username='willem24_remkot';

/**
* The password of the above user
*
* @var string
*/
public static $database_password='XXX';

/**
* The database name
*
* @var string
*/
public static $database_name='willem24_webdiplomacy';

/**
* This is used to salt hashes for passwords, if it gets out it's not the end of the world.
*
* *This should be long ( ~30 charecters), random, contain lots of weird charecters, etc*
* If this isn't changed or is predictable it is a serious security risk!
*
* @var string
*/
public static $salt='';

/**
* This is used for session keys and the captcha code, and can be changed from time
* to time without too much difficulty, but it's even more important that it isn't known!
*
* @var string
*/
public static $secret='X';

/**
* This is used to authenticate the cron process which will run the gamemaster script.
* If anyone can run the gamemaster script there may be problems (despite the locking),
* and it can increase load. Whatever this string is it means gamemaster needs to be run
* either by an admin, or by gamemaster.php?secret=[thissecret]
*
* @var string
*/
public static $gameMasterSecret='XXXX';

/**
* This is used to authenticate the cron process which will run the gamemaster script.
* If anyone can run the gamemaster script there may be problems (despite the locking),
* and it can increase load. Whatever this string is it means gamemaster needs to be run
* either by an admin, or by gamemaster.php?secret=[thissecret]
*
* @var string
*/
public static $jsonSecret='';

/**
* The administrators e-mail; if a user experiences a problem they will be invited to contact this
* e-mail address. It's unlikely bots will experience the sort of problem resulting in your e-mail
* being displayed, but if your e-mail provider doesn't filter spam well you may want to be careful.
*
* @var string
*/
public static $adminEMail='admin@infrfo.com';

/**
* An array of variants available on the server (for future releases, not yet enabled)
* @var array
*/
public static $variants=array(1=>'Classic', 2=>'World', 9=>'AncMed');//3=>'FleetRome', 4=>'CustomStart', 5=>'BuildAnywhere');

/**
* Messages to display when different flags are set via the admin control panel.
*
* If ServerOffline is set it will be displayed and the script will not start.
*
* @var array
*/
public static $serverMessages=array(
'Notice'=>'Default server-wide notice message.',
'Panic'=>'Game processing has been paused and user registration has been disabled while a problem is resolved.',
'Maintenance'=>"Server is in maintenance mode; only admins can fully interact with the server.",
'ServerOffline'=>''
);

/**
* An array of answers, indexed by the question, which are added to the FAQ page on this installation, adding it
* to the list of generic webDiplomacy FAQs.
*
* If false no server-specific FAQ section will be displayed.
*
* @var array
*/
public static $faq=array('Have any extra questions been added?'=>'No, not yet.');

/**
* The directory in which error logs are stored. If this returns false errors will not be logged.
* *Must not be accessible to the web server, as sensitive info is stored in this folder.*
*
* @return string
*/
public static function errorlogDirectory()
{
return false;
return '../errorlogs';
}

/**
* Should every piece of every order entered be logged as it comes in? This helps solve
* problems when people think they submitted correct orders but may not have, but it
* can use up lots of disk space and waste resources every time orders are submitted.
*
* Every complaint about incorrect orders have been found via the order logs to be
* correctly received, so it's probably not worth enabling this unless you get many
* complaints.
*
* If this is set to false orders will not be logged, if it returns a writable directory
* orders will be logged there.
* *Must not be accessible to the web server, as sensitive info is stored in this folder.*
*
* @return string
*/
public static function orderlogDirectory()
{
return false;
return '../orderlogs';
}

/**
* Where to log points before/after logs to, which log the points before/after games have ended.
* If false points are not logged.
*
* @var string
*/
public static $pointsLogFile=false;//'../pointslog.txt';

/**
* An array of e-mail settings, to validate e-mails etc.
*
* @var array
*/
public static $mailerConfig = array(
"From"=> "admin@infrfo.com",
/* The e-mail which mail is sent from. This should be a valid e-mail,
or it may trip spam filters. */
"FromName"=> "http://www.infrfo.com/games/webdiplomacy/",
/* The name being mailed from. */
"UseMail"=>false,
/* Use the php mail() function. Either UseMail, UseSendmail or UseSMTP has to be TRUE,
if you're using e-mail. */
"UseSendmail"=>false,
/* Use the sendmail binary, if this is false the variable below is ignored */
"SendmailSettings"=> array(
"Location"=>"/usr/sbin/sendmail"
/* Location of the sendmail binary */
),
"UseSMTP"=> true,
/* Use SMTP, if this is FALSE the variable below is ignored. */
"SMTPSettings"=> array(
"Host"=>"http://www.infrfo.com/games/webdiplomacy/",
"Port"=>"25",
"SMTPAuth"=>false,
/* If this is FALSE the two variables below are ignored */
"Username"=>"",
"Password"=>"XXXX"
),
"UseDebug" => false // If this is set to true mail will be output to the browser instead of sent, useful for debugging
);

/**
* Something to add after everything else has been printed off (except '</body></html>'), useful for
* things like Google Analytics, or web-rings
*/
public static function customFooter()
{
return '';
return 'Default custom server message / google analytics code.';
}


// ---
// --- From here on down the default settings will probably be fine.
// ---

/**
* Enables full error and profiler output even when not viewing as admin. (This
* is set to true if viewing as admin)
* @var boolean
*/
public static $debug=false;

/**
* The default locale for guest users.
*
* @var string
*/
public static $locale = 'English';

/**
* Array of available locales
*
* @var string[]
*/
public static $availablelocales = array(
'English' => 'English'
);

/**
* Different names given to the same locales, to allow automatic
* recognition of which locale to use.
*
* @var string[][]
*/
public static $localealiases = array(
'English' => array('eng',
'en_us',
'en_US',
'English',
'en_US.ISO8859-1',
'en_US.ISO8859-15',
'en_US.US-ASCII',
'en_US.UTF-8')
);

/**
* The number of minutes that gamemaster.php will detect that it hasn't been run for before it will
* mark itself in downtime mode.
*/
public static $downtimeTriggerMinutes=30;


// ---
// --- The following settings are typically for Facebook webmasters only
// ---

/**
* The URL which static data, such as images, are stored at (usually only for Facebook or advanced users)
*
* eg http://static.webdiplomacy.net/
*
* @var string
*/
public static $facebookStaticURL='';

/**
* The URL of the front end of the server (usually only for Facebook or advanced users)
*
* eg http://webdiplomacy.net/
*
* @var string
*/
public static $facebookServerURL='';

/**
* The Facebook API key. If you're not on Facebook this will be ignored
*
* @var string
*/
public static $facebookAPIKey='';

/**
* The Facebook secret. If you're not on Facebook this will be ignored
*
* @var string
*/
public static $facebookSecret='';

/**
* The path to the Facebook API script (facebook.php)
*
* eg ../../facebook-client/
*
* @var string
*/
public static $facebookAPIPath='';

/**
* The user ID of the Facebook user to send game notification messages from.
*
* This is provided to $facebook->set_user(user_id,secret)
*
* @var int
*/
public static $facebookNotificationFromUserID='';

/**
* The authentication secret of the above Facebook user
*
* @var string
*/
public static $facebookNotificationFromUserSecret='';

/**
* The Facebook debug value
*
* @var bool
*/
public static $facebookDebug=false;
}

?>


Top
 Profile  
 
 Post subject: Re: error
PostPosted: Sat Jul 09, 2011 10:38 am 
Offline
Site Admin

Joined: Sat Jun 28, 2008 6:24 am
Posts: 892
Yup your SMTP mail server settings are wrong. You've got a website address in there for some reason, contact your ISP support for your actual SMTP server details


Top
 Profile  
 
 Post subject: Re: error
PostPosted: Sun Jul 10, 2011 1:21 pm 
Offline

Joined: Thu Jul 07, 2011 10:11 pm
Posts: 3
Yes, that was the problem!

Thanks m8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group