I upgraded to 6.1.6 and went to delete the sql folder but accidently deleted the inc folder now site says script not installed? any chance to fix this? im using filezilla where do deleted files go? Thanks |
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
anyway i can fix it ive uploaded a fresh inc folder but problem still there |
You'll need to edit the header.inc.php file My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
|
use crimson editor or notepad++ or some other text editor to edit
these lines 50-54 and 80-86 approx, will need your details filled in the hashed areas;
$site['email'] = "youremail@yourwebsite.com"; $site['email_notify'] = "youremail@yourwebsite.com"; $site['bugReportMail'] = "youremail@hotmail.com";
$dir['root'] = "/home/yoursite/public_html/";
and
$db['host'] = '##########t'; $db['sock'] = ''; $db['port'] = ''; $db['user'] = '###############'; $db['passwd'] = '#############'; $db['db'] = '############';
host is usuallly "localhost" |
where is the file i need to edit, thanks for your help
|
|
header.in.php in the inc folder? i dont have one, sorry if im being thick |
if you don't have any members yet then just compress the inc folder only and upload it, as well as the install folder if its not there as well :-)
You will not have to set all the permissions anymore. But you should drop your database before as well, or make a backup and load it later on.
Even with members on the site it should work this way.
Like always, don't forget to back up.
Cheer
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
i have loads of members. im confused? |
ok,
simply Exract this file from your 6.1.6 zip and upload this file to the inc folder of your server and like YouDitn'ddidit said already:
------------
use crimson editor or notepad++ or some other text editor to edit
these lines 50-54 and 80-86 approx, will need your details filled in the hashed areas;
$site['email'] = "youremail@yourwebsite.com"; $site['email_notify'] = "youremail@yourwebsite.com"; $site['bugReportMail'] = "youremail@hotmail.com";
$dir['root'] = "/home/yoursite/public_html/";
and
$db['host'] = '##########t'; $db['sock'] = ''; $db['port'] = ''; $db['user'] = '###############'; $db['passwd'] = '#############'; $db['db'] = '############';
host is usuallly "localhost"
------------------------------
Cheer
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
what file do i need to edit thats what i dont understand |
it shoult be /dolphin_root/inc/header.inc.php Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
thats why im confused, as i dont seem to have a header.inc file in the inc folder |
Did you check in the original files you downloaded? Is it in that inc folder? |
no thats the folder the inc folder i uploaded from when i first uploaded dolphin but it doesnt seem to be in the inc folder, so just downloaded 6.1.6 and there aint one in there either |
That file is made in the proces of installation, so its always advise to make a backup from this file after install is completed.
Cheer Kids first |
could you copy what should be in the file so i can upload it? |
isnt the header.inc file created on install? so if ash as just plonked a new inc folder on there without the instal to create it, it wont be there will it? or am i being silly LOL. Wouldnt this better to do a fresh instal and then restore a database back up to restore all site content. Thats if you did a site backup (hope so) |
how do i go about doing a fresh install without loosing all my member and info etc, if i put the install folder on there the install setup comes up will that work |
Not sure if this will work ash, but might be worth a try. This is the header.inc.php file just copy and paste it into an editor like PSPAD or notepad will do, and name the file header.inc.php and place it on your server in the inc folder. You have to fill in your own details though, (ive put it in plain english where you need to put your own details in. Still not sure if it will work, but might be worth a try.copy everything from the <? to ?> and make sure there is no white spaces at the end
<?
/*************************************************************************** * Dolphin Smart Community Builder * ----------------- * begin : Mon Mar 23 2006 * copyright : (C) 2006 BoonEx Group * website : http://www.boonex.com/ * This file is part of Dolphin - Smart Community Builder * * Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License. * http://creativecommons.org/licenses/by/3.0/ * * Dolphin 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 Creative Commons Attribution 3.0 License for more details. * You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin, * see license.txt file; if not, write to marketing@boonex.com ***************************************************************************/
$site['ver'] = '6.1'; $site['build'] = '6'; $site['title'] = 'site title here'; $site['url'] = "http://www.yoursite.whatever/"; $admin_dir = "admin"; $site['url_admin'] = "{$site['url']}$admin_dir/"; $site['url_aff'] = "{$site['url']}aff/"; $site['profileImage'] = "{$site['url']}media/images/profile/"; $site['profileBackground'] = "{$site['url']}media/images/profile_bg/"; $site['profileSound'] = "{$site['url']}media/sound/"; $site['profileVideo'] = "{$site['url']}media/video/"; $site['sharingImages'] = "{$site['url']}media/images/sharingImages/";
$site['mediaImages'] = "{$site['url']}media/images/"; $site['gallery'] = "{$site['url']}media/images/gallery/"; $site['flags'] = "{$site['url']}media/images/flags/"; $site['blogImage'] = "{$site['url']}media/images/blog/"; $site['sdatingImage'] = "{$site['url']}media/images/sdating/"; $site['smiles'] = "{$site['url']}media/images/smiles/"; $site['banners'] = "{$site['url']}media/images/banners/"; $site['imagesPromo'] = "{$site['url']}media/images/promo/"; $site['tmp'] = "{$site['url']}tmp/"; $site['preCheckout'] = "{$site['url']}checkout/pre_checkout.php"; $site['plugins'] = "{$site['url']}plugins/"; $site['base'] = "{$site['url']}templates/base/";
$site['email'] = "site email here"; $site['email_notify'] = "site email here"; $site['bugReportMail'] = "site email here";
$dir['root'] = "/home/siterootnamehere/public_html/"; $dir['inc'] = "{$dir['root']}inc/"; $dir['profileImage'] = "{$dir['root']}media/images/profile/"; $dir['profileBackground'] = "{$dir['root']}media/images/profile_bg/"; $dir['profileSound'] = "{$dir['root']}media/sound/"; $dir['profileVideo'] = "{$dir['root']}media/video/"; $dir['sharingImages'] = "{$dir['root']}media/images/sharingImages/";
$dir['mediaImages'] = "{$dir['root']}media/images/"; $dir['gallery'] = "{$dir['root']}media/images/gallery/"; $dir['flags'] = "{$dir['root']}media/images/flags/"; $dir['blogImage'] = "{$dir['root']}media/images/blog/"; $dir['sdatingImage'] = "{$dir['root']}media/images/sdating/"; $dir['smiles'] = "{$dir['root']}media/images/smiles/"; $dir['banners'] = "{$dir['root']}media/images/banners/"; $dir['imagesPromo'] = "{$dir['root']}media/images/promo/"; $dir['tmp'] = "{$dir['root']}tmp/"; $dir['cache'] = "{$dir['root']}cache/"; $dir['plugins'] = "{$dir['root']}plugins/"; $dir['base'] = "{$dir['root']}templates/base/"; $dir['classes'] = "{$dir['inc']}classes/";
$video_ext = 'avi'; $MOGRIFY = "/usr/local/bin/mogrify"; $CONVERT = "/usr/local/bin/convert"; $COMPOSITE = "/usr/local/bin/composite"; $PHPBIN = "/usr/local/bin/php";
$db['host'] = 'localhost'; $db['sock'] = ''; $db['port'] = ''; $db['user'] = 'database_userhere'; $db['passwd'] = 'yourpasswordherefordatabase'; $db['db'] = 'databasenamehere';
define('BX_DIRECTORY_PATH_INC', $dir['inc']); define('BX_DIRECTORY_PATH_ROOT', $dir['root']); define('BX_DIRECTORY_PATH_BASE', $dir['base']); define('BX_DIRECTORY_PATH_CACHE', $dir['cache']); define('BX_DIRECTORY_PATH_CLASSES', $dir['classes']); define('BX_DIRECTORY_PATH_PLUGINS', $dir['plugins']);
define('DATABASE_HOST', $db['host']); define('DATABASE_SOCK', $db['sock']); define('DATABASE_PORT', $db['port']); define('DATABASE_USER', $db['user']); define('DATABASE_PASS', $db['passwd']); define('DATABASE_NAME', $db['db']);
//check safe_mode if( (int)ini_get( 'safe_mode' ) ) { echo '<b>Warning.</b> Dolphin cannot work in safe mode'; exit; }
//check mbstring if( !extension_loaded( 'mbstring' ) ) { echo '<b>Warning!</b> Dolphin cannot work without <b>mbstring</b> extension. Please go to the <a href="http://www.boonex.com/trac/dolphin/wiki/GenDolTShooter">Dolphin Troubleshooter</a> and solve the problem.'; exit; }
//check correct hostname $aUrl = parse_url( $site['url'] ); if( isset($_SERVER['HTTP_HOST']) and $_SERVER['HTTP_HOST'] != $aUrl['host'] and $_SERVER['HTTP_HOST'] != $aUrl['host'] . ':80' ) { header( "Location:http://{$aUrl['host']}{$_SERVER['REQUEST_URI']}" ); exit; }
// check if install folder exists if ( file_exists( $dir['root'] . 'install' ) ) { $ret = <<<EOJ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <head> <title>Dolphin Smart Community Builder Installed</title> <link href="install/general.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <div id="main"> <div id="header"> <img src="install/images/boonex_logo.gif" alt="" /></div> <div id="content"> <div class="installed_pic"> <img alt="Dolphin Installed" src="install/images/dolphin_installed.jpg" /> </div>
<div class="installed_text"> Please, remove INSTALL directory from your server and reload this page to activate your community site. </div> </body> </html> EOJ; echo $ret; exit(); }
// set error reporting level error_reporting(E_ALL & ~E_NOTICE); set_magic_quotes_runtime(0); ini_set('magic_quotes_sybase', 0);
// set default encoding for multibyte functions mb_internal_encoding('UTF-8');
//--- Ray Integration ---// require_once($dir['root'] . "ray/modules/global/inc/header.inc.php"); require_once($dir['root'] . "ray/modules/global/inc/content.inc.php"); //--- Ray Integration ---// ?>
|
are the highlighted ones which need doing anymore?
<?
/*************************************************************************** * Dolphin Smart Community Builder * ----------------- * begin : Mon Mar 23 2006 * copyright : (C) 2006 BoonEx Group * website : http://www.boonex.com/ * This file is part of Dolphin - Smart Community Builder * * Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License. * http://creativecommons.org/licenses/by/3.0/ * * Dolphin 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 Creative Commons Attribution 3.0 License for more details. * You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin, * see license.txt file; if not, write to marketing@boonex.com ***************************************************************************/
$site['ver'] = '6.1'; $site['build'] = '6'; $site['title'] = 'site title here'; $site['url'] = "http://www.yoursite.whatever/"; $admin_dir = "admin"; $site['url_admin'] = "{$site['url']}$admin_dir/"; $site['url_aff'] = "{$site['url']}aff/"; $site['profileImage'] = "{$site['url']}media/images/profile/"; $site['profileBackground'] = "{$site['url']}media/images/profile_bg/"; $site['profileSound'] = "{$site['url']}media/sound/"; $site['profileVideo'] = "{$site['url']}media/video/"; $site['sharingImages'] = "{$site['url']}media/images/sharingImages/";
$site['mediaImages'] = "{$site['url']}media/images/"; $site['gallery'] = "{$site['url']}media/images/gallery/"; $site['flags'] = "{$site['url']}media/images/flags/"; $site['blogImage'] = "{$site['url']}media/images/blog/"; $site['sdatingImage'] = "{$site['url']}media/images/sdating/"; $site['smiles'] = "{$site['url']}media/images/smiles/"; $site['banners'] = "{$site['url']}media/images/banners/"; $site['imagesPromo'] = "{$site['url']}media/images/promo/"; $site['tmp'] = "{$site['url']}tmp/"; $site['preCheckout'] = "{$site['url']}checkout/pre_checkout.php"; $site['plugins'] = "{$site['url']}plugins/"; $site['base'] = "{$site['url']}templates/base/";
$site['email'] = "site email here"; $site['email_notify'] = "site email here"; $site['bugReportMail'] = "site email here";
$dir['root'] = "/home/siterootnamehere/public_html/"; $dir['inc'] = "{$dir['root']}inc/"; $dir['profileImage'] = "{$dir['root']}media/images/profile/"; $dir['profileBackground'] = "{$dir['root']}media/images/profile_bg/"; $dir['profileSound'] = "{$dir['root']}media/sound/"; $dir['profileVideo'] = "{$dir['root']}media/video/"; $dir['sharingImages'] = "{$dir['root']}media/images/sharingImages/";
$dir['mediaImages'] = "{$dir['root']}media/images/"; $dir['gallery'] = "{$dir['root']}media/images/gallery/"; $dir['flags'] = "{$dir['root']}media/images/flags/"; $dir['blogImage'] = "{$dir['root']}media/images/blog/"; $dir['sdatingImage'] = "{$dir['root']}media/images/sdating/"; $dir['smiles'] = "{$dir['root']}media/images/smiles/"; $dir['banners'] = "{$dir['root']}media/images/banners/"; $dir['imagesPromo'] = "{$dir['root']}media/images/promo/"; $dir['tmp'] = "{$dir['root']}tmp/"; $dir['cache'] = "{$dir['root']}cache/"; $dir['plugins'] = "{$dir['root']}plugins/"; $dir['base'] = "{$dir['root']}templates/base/"; $dir['classes'] = "{$dir['inc']}classes/";
$video_ext = 'avi'; $MOGRIFY = "/usr/local/bin/mogrify"; $CONVERT = "/usr/local/bin/convert"; $COMPOSITE = "/usr/local/bin/composite"; $PHPBIN = "/usr/local/bin/php";
$db['host'] = 'localhost'; $db['sock'] = ''; $db['port'] = ''; $db['user'] = 'database_userhere'; $db['passwd'] = 'yourpasswordherefordatabase'; $db['db'] = 'databasenamehere';
define('BX_DIRECTORY_PATH_INC', $dir['inc']); define('BX_DIRECTORY_PATH_ROOT', $dir['root']); define('BX_DIRECTORY_PATH_BASE', $dir['base']); define('BX_DIRECTORY_PATH_CACHE', $dir['cache']); define('BX_DIRECTORY_PATH_CLASSES', $dir['classes']); define('BX_DIRECTORY_PATH_PLUGINS', $dir['plugins']);
define('DATABASE_HOST', $db['host']); define('DATABASE_SOCK', $db['sock']); define('DATABASE_PORT', $db['port']); define('DATABASE_USER', $db['user']); define('DATABASE_PASS', $db['passwd']); define('DATABASE_NAME', $db['db']);
//check safe_mode if( (int)ini_get( 'safe_mode' ) ) { echo '<b>Warning.</b> Dolphin cannot work in safe mode'; exit; }
//check mbstring if( !extension_loaded( 'mbstring' ) ) { echo '<b>Warning!</b> Dolphin cannot work without <b>mbstring</b> extension. Please go to the <a href="http://www.boonex.com/trac/dolphin/wiki/GenDolTShooter">Dolphin Troubleshooter</a> and solve the problem.'; exit; }
//check correct hostname $aUrl = parse_url( $site['url'] ); if( isset($_SERVER['HTTP_HOST']) and $_SERVER['HTTP_HOST'] != $aUrl['host'] and $_SERVER['HTTP_HOST'] != $aUrl['host'] . ':80' ) { header( "Location:http://{$aUrl['host']}{$_SERVER['REQUEST_URI']}" ); exit; }
// check if install folder exists if ( file_exists( $dir['root'] . 'install' ) ) { $ret = <<<EOJ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <head> <title>Dolphin Smart Community Builder Installed</title> <link href="install/general.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <div id="main"> <div id="header"> <img src="install/images/boonex_logo.gif" alt="" /></div> <div id="content"> <div class="installed_pic"> <img alt="Dolphin Installed" src="install/images/dolphin_installed.jpg" /> </div>
<div class="installed_text"> Please, remove INSTALL directory from your server and reload this page to activate your community site. </div> </body> </html> EOJ; echo $ret; exit(); }
// set error reporting level error_reporting(E_ALL & ~E_NOTICE); set_magic_quotes_runtime(0); ini_set('magic_quotes_sybase', 0);
// set default encoding for multibyte functions mb_internal_encoding('UTF-8');
//--- Ray Integration ---// require_once($dir['root'] . "ray/modules/global/inc/header.inc.php"); require_once($dir['root'] . "ray/modules/global/inc/content.inc.php"); //--- Ray Integration ---// ?>
|
$site['title'] = 'site title here'; $site['url'] = "http://www.yoursite.whatever/";
-----------------------------------------------
$site['email'] = "site email here"; $site['email_notify'] = "site email here"; $site['bugReportMail'] = "site email here";
----------------------------------------------------------
$dir['root'] = "/home/siterootnamehere/public_html/";
$db['user'] = 'database_userhere'; $db['passwd'] = 'yourpasswordherefordatabase'; $db['db'] = 'databasenamehere';
-------------------------------------------------------------------
These are the one that need your own details in.
|
Thanks for your help tyke im getting the following errors now
Warning: require_once(/home/domain/public_html/ray/modules/global/inc/header.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/btkgeexq/public_html/domain/inc/header.inc.php on line 173
Fatal error: require_once() [function.require]:
Failed opening required
'/home/domain/public_html/ray/modules/global/inc/header.inc.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/btkgeexq/public_html/domain/inc/header.inc.php on line 173
|
You must have the $dir['root'] variable wrong. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
is it
/home/public_html/mysite/
or
/home/mysite/public_html/
tried both and still shows the error
|
Create a file called rootpath.php and put the following line in it:
<?php echo $_SERVER['DOCUMENT_ROOT']; ?>
Upload it to your server and then go to the file in your browser. It will show you what the correct path should be.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
right thanks i have the right path its was home/myusername/public_html/mysite/. Getting the following error,
Warning: require_once(./xml/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/****/public_html/****/header.inc.php on line 67
Fatal error: require_once() [function.require]: Failed opening required './xml/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/****/public_html/****/header.inc.php on line 67
Sorry for being a pain, Thank
|
require_once ('./xml/config.php');
any idea whats wrong with thi
|