We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

OW_URL_HOMEe500.php | Forum

Sepp Huber
Sepp Huber Jul 31 '14
Hi,


I changed the file <myserver>/oxwall/ow_includes/config.php and then back to the original config.php file. Since then my oxwall system does not work anymore. Calls to <myserver>/oxwall end at <myserver>/oxwall/OW_URL_HOMEe500.php


Any idea how to fix that ?

Vitaliy
Vitaliy Jul 31 '14
I just read to replace my standard ow.php with the base one and it now throws a 500 server error.
Sepp Huber
Sepp Huber Aug 1 '14
It is an endless loop. OW_URL_HOMEe500.php calls itself again and again.
Sepp Huber
Sepp Huber Aug 1 '14
Debug mode:


Message:SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not knownFile:/var/www/virtual/g2g/html/oxwall/ow_core/database.phpLine:214Trace:#0 /var/www/virtual/g2g/html/oxwall/ow_core/database.php(244): OW_Database->__construct(Array) #1 /var/www/virtual/g2g/html/oxwall/ow_core/ow.php(230): OW_Database::getInstance(Array) #2 /var/www/virtual/g2g/html/oxwall/ow_core/base_dao.php(47): OW::getDbo() #3 /var/www/virtual/g2g/html/oxwall/ow_system_plugins/base/bol/config_dao.php(66): OW_BaseDao->__construct() #4 /var/www/virtual/g2g/html/oxwall/ow_system_plugins/base/bol/config_dao.php(55): BOL_ConfigDao->__construct() #5 /var/www/virtual/g2g/html/oxwall/ow_system_plugins/base/bol/config_service.php(63): BOL_ConfigDao::getInstance() #6 /var/www/virtual/g2g/html/oxwall/ow_system_plugins/base/bol/config_service.php(52): BOL_ConfigService->__construct() #7 /var/www/virtual/g2g/html/oxwall/ow_core/config.php(48): BOL_ConfigService::getInstance() #8 /var/www/virtual/g2g/html/oxwall/ow_core/config.php(68): OW_Config->__construct() #9 /var/www/virtual/g2g/html/oxwall/ow_core/ow.php(167): OW_Config::getInstance() #10 /var/www/virtual/g2g/html/oxwall/ow_core/ow.php(100): OW::getConfig() #11 /var/www/virtual/g2g/html/oxwall/ow_core/ow.php(145): OW::detectContext() #12 /var/www/virtual/g2g/html/oxwall/index.php(36): OW::getApplication() #13 {main}Type:InvalidArgumentException

Alia Team
Alia Aug 4 '14
Sepp, by "original" config.php you mean the one that is inside the package you can download here http://www.oxwall.org/download ?  - incorrect way.

OR

You have saved your own config.php before making changes and then restored that saved file?  - correct way.

Overall check your config.php file, it should be in following format:

<?php

define('OW_URL_HOME', 'http://yoursitename.com/');

define('OW_DB_HOST', 'localhost');

define('OW_DB_PORT', null);
define('OW_DB_USER', 'your_datbase_user');
define('OW_DB_PASSWORD', 'your_database_password');
define('OW_DB_NAME', 'your_database_name');

define('OW_DB_PREFIX', 'ow_');

define('OW_DIR_USERFILES', OW_DIR_ROOT.'ow_userfiles'.DS);
define('OW_DIR_STATIC', OW_DIR_ROOT.'ow_static'.DS);
define('OW_URL_STATIC', OW_URL_HOME.'ow_static/');
define('OW_URL_USERFILES', OW_URL_HOME.'ow_userfiles/');
define('OW_DIR_PLUGINFILES', OW_DIR_ROOT.'ow_pluginfiles/');

define('OW_PASSWORD_SALT', '5saltgoeshere');

define('OW_DIR_CORE', OW_DIR_ROOT.'ow_core'.DS);
define('OW_DIR_INC', OW_DIR_ROOT.'ow_includes'.DS);
define('OW_DIR_LIB', OW_DIR_ROOT.'ow_libraries'.DS);
define('OW_DIR_UTIL', OW_DIR_ROOT.'ow_utilities'.DS);
define('OW_DIR_PLUGIN', OW_DIR_ROOT.'ow_plugins'.DS);
define('OW_DIR_THEME', OW_DIR_ROOT.'ow_themes'.DS);
define('OW_DIR_SYSTEM_PLUGIN', OW_DIR_ROOT.'ow_system_plugins'.DS);
define('OW_DIR_SMARTY', OW_DIR_ROOT.'ow_smarty'.DS);

define('OW_USE_CLOUDFILES', false);

if ( defined('OW_CRON') )
{
    define('OW_DEBUG_MODE', false);
    define('OW_DEV_MODE', false);
    define('OW_PROFILER_ENABLE', false);
}
else
{
    /**
    * Make changes in this block if you want to enable DEV mode and DEBUG mode
    */

    define('OW_DEBUG_MODE', false);
    define('OW_DEV_MODE', false);
    define('OW_PROFILER_ENABLE', false);
}