Go Back   $5 Script Archive Community Forum > GLink Word Link Script > Bugs
Register Try FlashChat Try FlashBB Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 05-28-2007, 07:33 PM
whatis whatis is offline
Junior Member
 
Join Date: May 2007
Posts: 6
Exclamation Script Errors- require(init.inc.php) - PHP5

Quote:
Warning: require(init.inc.php) [function.require]: failed to open stream: No such file or directory in /home/xxx/public_html/config.php on line 105

Fatal error: require() [function.require]: Failed opening required 'init.inc.php' (include_path='.:/home/xxx/public_html/:/home/xxx/public_html/includes/:/home/w3us/public_html/libs/Pear/:/home/w3us/public_html/libs/Smarty/') in /home/xxx/public_html/config.php on line 105
I've been trying to figure out what the problem but don't know how to since this is the first (word link) script I ever seen.

Last edited by whatis : 05-28-2007 at 07:33 PM. Reason: edit
Reply With Quote
  #2  
Old 05-29-2007, 12:23 AM
Alexandr Alexandr is offline
Moderator
 
Join Date: Mar 2007
Location: Sofia, Bulgaria
Posts: 2,157
Default

Very starnge error.

Did you use lates GLink version?
Reply With Quote
  #3  
Old 05-29-2007, 10:45 AM
whatis whatis is offline
Junior Member
 
Join Date: May 2007
Posts: 6
Default

The version is 1.0.12. I already looked at the the "Code Depot" page and noticed 1.0.12 is the latest since other versions are from a year ago.
Reply With Quote
  #4  
Old 05-29-2007, 04:52 PM
Alexandr Alexandr is offline
Moderator
 
Join Date: Mar 2007
Location: Sofia, Bulgaria
Posts: 2,157
Default

Please provide config.php for research.
Reply With Quote
  #5  
Old 05-29-2007, 04:56 PM
whatis whatis is offline
Junior Member
 
Join Date: May 2007
Posts: 6
Default

PHP Code:
<?php

// application global configuration constants.
// these are set by the installation program, and should not
// be updated directly

// package name, version
define('PACKAGE_NAME''GLink');
define('PACKAGE_VERSION''1.0.12');

// directories
define('PACKAGE_ROOT''/home/w3us/public_html/');
define('INCLUDES_DIR''/home/w3us/public_html/includes/');
define('SMARTY_DIR''/home/w3us/public_html/libs/Smarty/');
define('SMARTY_TEMPLATE_DIR''/home/w3us/public_html/templates/');
define('SMARTY_COMPILE_DIR''/home/w3us/public_html/templates_c/');
define('SMARTY_CACHE_DIR''/home/w3us/public_html/cache/');
define('TEMP_DIR''/home/w3us/public_html/temp/');
define('GRIDS_DIR''/home/w3us/public_html/grids/');
define('PEAR_DIR''/home/w3us/public_html/libs/Pear/');

// database connection parameters
define('DB_HOST''localhost');
define('DB_USER''w3us_xxx');
define('DB_PASS''xxx');
define('DB_NAME''w3us_xxx');

// table prefix applied to each table
define('DB_PREFIX''glink_');

// url root
define('DOC_ROOT''/');

// mail settings
define('MAIL_TYPE''mail');
define('SMTP_HOST''mail.wordlinks.us');
define('SMTP_PORT''25');
define('SMTP_AUTH''');
define('SMTP_USER''xxx+wordlinks.us');
define('SMTP_PASS''xxx');
define('SM_PATH''/usr/sbin/sendmail');

// default language (the language templates are written in)
define('DEFAULT_LANGUAGE''en');

// cookie names
define('SESSION_COOKIE_NAME''mp_session');
define('LANGUAGE_COOKIE_NAME''mp_language');

// various limits
define('CELL_SIZE'10);
define('GRID_SIZE_MAX'10000);

// lighten factor for grayscale image (0.0 <= factor < 1.0)
define('GRAYSCALE_LIGHTEN'0.25);

// region status constants
define('REGION_FREE'0);
define('REGION_ACTIVE'1);
define('REGION_PENDING'2);
define('REGION_SUSPENDED'3);
define('REGION_RESERVED'4);
define('REGION_EXPIRED'5);
define('REGION_PENDING_BG''888888');
define('REGION_PENDING_FG''FFFFFF');
define('REGION_PENDING_LETTER''P');
define('REGION_SUSPENDED_BG''444444');
define('REGION_SUSPENDED_FG''FFFFFF');
define('REGION_SUSPENDED_LETTER''S');
define('REGION_RESERVED_BG''000000');
define('REGION_RESERVED_FG''FFFFFF');
define('REGION_RESERVED_LETTER''R');
define('REGION_EXPIRED_BG''666666');
define('REGION_EXPIRED_FG''FFFFFF');
define('REGION_EXPIRED_LETTER''E');

// use PHP_SELF for script name?
define('USE_PHP_SELF'0);

// memory limit to use during grid publishing
define('PUBLISH_MEMORY_LIMIT''32M');

// this is set when the installer completes
define('INSTALL_COMPLETED'true);

// check for installation complete
if (@INSTALL_COMPLETED !== true) {
  if (
file_exists('install.php')) {
    
header('Location: install.php');
    exit;
  }
  die(
"This application must be installed first. See the README.txt file included with the application.");
}

// set the include path
ini_set('include_path'implode(PATH_SEPARATOR, array(
  
'.',
  
PACKAGE_ROOT,
  
INCLUDES_DIR,
  
PEAR_DIR,
  
SMARTY_DIR,
)));

// perform per-request initialization
require('init.inc.php');

?>
Reply With Quote
  #6  
Old 05-30-2007, 02:34 AM
Alexandr Alexandr is offline
Moderator
 
Join Date: Mar 2007
Location: Sofia, Bulgaria
Posts: 2,157
Default

Please verify files in includes directory
/home/xxx/public_html/includes/

init.inc.php - need to locate in this directory.
Reply With Quote
  #7  
Old 05-30-2007, 02:36 AM
Alexandr Alexandr is offline
Moderator
 
Join Date: Mar 2007
Location: Sofia, Bulgaria
Posts: 2,157
Default

If you are sure that all files is uploaded try to replace in config.php:
PHP Code:
require('init.inc.php'); 
with
PHP Code:
require('/home/w3us/public_html/includes/init.inc.php'); 
Reply With Quote
  #8  
Old 05-30-2007, 11:52 AM
whatis whatis is offline
Junior Member
 
Join Date: May 2007
Posts: 6
Default

Ah ha... somehow the FTP software (Core FTP) I was using didn't upload some files as should have been done.

Sorry for my trouble- I also noticed some files somehow are in other folders. Must have done something wrong or it was just me since I was up early morning - after midnight (3am).
__________________
Glink Script- WordLinks.us
GPix Script- 99cPixels.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -7. The time now is 11:02 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) 1999-2007 TUFaT.com