|
|
|
|
![]() ![]() |
Jan 20 2005, 09:16 PM
Post
#1
|
|
|
Member - Active Contributor Group: Members Posts: 92 Joined: 15-December 04 From: New Mexico Member No.: 1,759 |
I am attempting to install xoops through fantastico on cpanel. I have yet to point the DNS to the site. To compensate for this I changed the vitual pathe from the installed: Http://www.ruidosotoday.com/xoops to: http://216.32.75.234/~donpet/xoops . This occurs on line 37 in my editor.
IT WAS: // XOOPS Virtual Path (URL) // Virtual path to your main XOOPS directory WITHOUT trailing slash /*line 37*/ define('XOOPS_URL', 'Http://www.ruidosotoday.com/xoops/~donpet/xoops'); IT IS NOW: // XOOPS Virtual Path (URL) // Virtual path to your main XOOPS directory WITHOUT trailing slash /*line 37*/ define('XOOPS_URL', 'http://216.32.75.234/~donpet/xoops'); When I call individual pages index through the IP link they appear. http://216.32.75.234/~donpet >>>>> get index page http://216.32.75.234/~donpet/ >>>>> get index page http://216.32.75.234/~donpet/index.html >>>>> get index page http://216.32.75.234/~donpet/fire.html >>>>> get fire page However, when I try to call xoops through: http://216.32.75.234/~donpet/xoops/ or http://216.32.75.234/~donpet/xoops/index.php I GET: Fatal error: Call to a member function on a non-object in /home/donpet/public_html/xoops/kernel/config.php on line 222 Unknown Condition []: in file line Here's Line 222: function &getConfigsByCat($category, $module = 0) { if (!empty($this->_cachedConfigs[$module][$category])) { return $this->_cachedConfigs[$module][$category]; } else { $ret = array(); $criteria = new CriteriaCompo(new Criteria('conf_modid', intval($module))); if (!empty($category)) { $criteria->add(new Criteria('conf_catid', intval($category))); } $configs =& $this->getConfigs($criteria, true); if (is_array($configs)) { foreach (array_keys($configs) as $i) { /* Line 222 */ $ret[$configs[$i]->getVar('conf_name')] = $configs[$i]->getConfValueForOutput(); } } $this->_cachedConfigs[$module][$category] =& $ret; return $ret; } } When I type: http://216.32.75.234/~donpet/xoop I GET: www.localhost.localdomain could not be found. (FireFox) I am at the bottom of the learning curve in php. Assistance would be greatly appreciated. Thanks, Pete |
|
|
|
Mar 31 2005, 01:57 AM
Post
#2
|
|
|
Premium Member Group: Members Posts: 292 Joined: 26-September 04 From: Bogotá, Colombia Member No.: 868 |
ILL BE DAMMED!!!, jaja, that's a long post!!!
ok, i'm going to quote the mainfile.php (edit this file, is on the main xoops folder) QUOTE <?php // $Id: mainfile.dist.php,v 1.5 2003/02/12 11:36:33 okazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright © 2000 XOOPS.org // // <http://www.xoops.org/> // // ------------------------------------------------------------------------ // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation; either version 2 of the License, or // // (at your option) any later version. // // // // You may not change or alter any portion of this comment or credits // // of supporting developers from this source code or any supporting // // source code which is considered copyrighted © material of the // // original comment or credit authors. // // // // This program 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 General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // if ( !defined("XOOPS_MAINFILE_INCLUDED") ) { define("XOOPS_MAINFILE_INCLUDED",1); // XOOPS Physical Path // Physical path to your main XOOPS directory WITHOUT trailing slash define('XOOPS_ROOT_PATH', '/home/yourcpanelname/public_html/xoops'); // XOOPS Virtual Path (URL) // Virtual path to your main XOOPS directory WITHOUT trailing slash define('XOOPS_URL', 'http://yourcpanelname.astahost.com/xoops'); // Database // Choose the database to be used define('XOOPS_DB_TYPE', 'mysql'); // Table Prefix // This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default 'xoops'. define('XOOPS_DB_PREFIX', 'xoops'); // Database Hostname // Hostname of the database server. If you are unsure, 'localhost' works in most cases. define('XOOPS_DB_HOST', 'localhost'); // Database Username // Your database user account on the host define('XOOPS_DB_USER', 'yourcpanelname_useryouused'); // Database Password // Password for your database user account define('XOOPS_DB_PASS', 'yourMySQLpassword'); // Database Name // The name of database on the host. The installer will attempt to create the database if not exist define('XOOPS_DB_NAME', 'yourcpanelname_thenameofthedbyoucreated); // Use persistent connection? (Yes=1 No=0) // Default is 'Yes'. Choose 'Yes' if you are unsure. define('XOOPS_DB_PCONNECT', 0); define('XOOPS_GROUP_ADMIN', '1'); define('XOOPS_GROUP_USERS', '2'); define('XOOPS_GROUP_ANONYMOUS', '3'); if (!isset($xoopsOption['nocommon'])) { include XOOPS_ROOT_PATH."/include/common.php"; } } ?> ok, check the red text, modified it, and Voila!!! you're ready to get your xoops site working! |
|
|
|
Mar 31 2005, 02:13 AM
Post
#3
|
|
|
Premium Member Group: Members Posts: 292 Joined: 26-September 04 From: Bogotá, Colombia Member No.: 868 |
IF A MODERATOR SEE THIS, PLEASE MERGE THIS WITH MY LAST POST!!!
I'm asuming you want to to use astahost... if you don't... the u have a problem, because http://216.32.75.234/ doesn't seem to exist..... The thing is.. taht's the way to use the folders, etc... in the mainfile for xoops make sure you put a 444 permision after u edit it |
|
|
|
Jan 31 2007, 07:16 AM
Post
#4
|
|
|
Member [ Level 1 ] Group: Members Posts: 41 Joined: 30-January 07 Member No.: 20,045 |
nice post but i can't understand
i wish you re-post |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 22nd August 2008 - 05:15 AM |