11
Edwinspie
Re: Still trying to get my blank website going again
  • 2007/1/4 10:41

  • Edwinspie

  • Just popping in

  • Posts: 84

  • Since: 2006/8/18


Hi Stefan,

I've made the change as you told me too, but still the same problem!
I've double checked PHPMyAdmin and the Smartsection isactive value is on "0" now.

This is still the error:

Fatal error: Call to a member function getCategoryPath() on a non-object in /home/stlucadm/public_html/web/modules/smartsection/class/item.php on line 446

Sooo...What's next now ?

BTW: I've requested my host if they could update PHP but that's out of the question as it is a shared hosting server.

Thanks for your tips to all of you!

Edwin

12
Edwinspie
Re: Still trying to get my blank website going again
  • 2007/1/4 10:55

  • Edwinspie

  • Just popping in

  • Posts: 84

  • Since: 2006/8/18


Hi Quest,

Thanks for your reply, but this is the part where things start to look like Chinese to me.

The one thing I can definately confirm is that i did NOT have to set any path while installing Smartsection.

This is the mainfile.php:

<?php
// $Id: mainfile.dist.php 507 2006-05-26 23:39:35Z skalpa $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <https://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 (c) 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
    // Example: define('XOOPS_ROOT_PATH', '/home/stlucadm/public_html/web');
    
define('XOOPS_ROOT_PATH''/home/stlucadm/public_html/web');

    
// XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    // Example: define('XOOPS_URL', 'http://stlucia-southafrica.com/web');
    
define('XOOPS_URL''http://stlucia-southafrica.com/web');

    
define('XOOPS_CHECK_PATH'1);
    
// Protect against external scripts execution if safe mode is not enabled
    
if ( XOOPS_CHECK_PATH && !@ini_get('safe_mode') ) {
        if ( 
function_exists('debug_backtrace') ) {
            
$xoopsScriptPath debug_backtrace();
            if ( !
count($xoopsScriptPath) ) {
                 die(
"XOOPS path check: this file cannot be requested directly");
            }
            
$xoopsScriptPath $xoopsScriptPath[0]['file'];
        } else {
            
$xoopsScriptPath = isset($_SERVER['PATH_TRANSLATED']) ? $_SERVER['PATH_TRANSLATED'] :  $_SERVER['SCRIPT_FILENAME'];
        }
        if ( 
DIRECTORY_SEPARATOR != '/' ) {
            
// IIS6 may double the  chars
            
$xoopsScriptPath str_replacestrpos$xoopsScriptPath'\\') ? '\\' DIRECTORY_SEPARATOR'/'$xoopsScriptPath);
        }
        if ( 
strcasecmpsubstr($xoopsScriptPath0strlen(XOOPS_ROOT_PATH)), str_replaceDIRECTORY_SEPARATOR'/'XOOPS_ROOT_PATH)) ) {
             exit(
"XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
        }
    }

    
// 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', [color=3300FF]XXX[/color]);

    
// 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('xxxxxxxxxxxx', [color=3300FF]XXX[/color]);

    
// Database Password
    // Password for your database user account
    
define(xxxxxxxxxxx, [color=3300FF]XXX[/color]);

    
// Database Name
    // The name of database on the host. The installer will attempt to create the database if not exist
    
define(' xxxxxxxxx', [color=3300FF]XXX[/color]);

    
// 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');

    foreach ( array(
'GLOBALS''_SESSION''HTTP_SESSION_VARS''_GET''HTTP_GET_VARS''_POST''HTTP_POST_VARS''_COOKIE''HTTP_COOKIE_VARS''_REQUEST''_SERVER''HTTP_SERVER_VARS''_ENV''HTTP_ENV_VARS''_FILES''HTTP_POST_FILES''xoopsDB''xoopsUser''xoopsUserId''xoopsUserGroups''xoopsUserIsAdmin''xoopsConfig''xoopsOption''xoopsModule''xoopsModuleConfig''xoopsRequestUri') as $bad_global ) {
        if ( isset( 
$_REQUEST[$bad_global] ) ) {
            
header'Location: '.XOOPS_URL.'/' );
            exit();
        }
    }

    if (!isset(
$xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
        include 
XOOPS_ROOT_PATH."/include/common.php";
    }
}
?>


Hoping you can have a look at it!

Thanks,

Edwin

13
Quest
Re: Still trying to get my blank website going again
  • 2007/1/4 11:10

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


Humor me and try putting www. in your Virtual Path. Remember you will have to ftp in CHMOD to 777 then "After you make the change, CHMOD back to 444.

Oh and, you might want to change your database password! You posted it.

define('XOOPS_URL', 'http://www.stlucia-southafrica.com/web');

Best of Luck
Quest

14
JCDunnart
Re: Still trying to get my blank website going again
  • 2007/1/4 12:27

  • JCDunnart

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/7/1 5


Make a full backup, database and files, before you do anything else!

I don't really see what the point is of changing the path - the site worked until making changes in smartsection.

Have you cleared the templates_c files? Could be you deleted a category, but it's still referred to in a cached file.

Do you still have admin access to your site?

15
Edwinspie
Re: Still trying to get my blank website going again
  • 2007/1/4 12:52

  • Edwinspie

  • Just popping in

  • Posts: 84

  • Since: 2006/8/18


Yes, I've cleared the template_c files

About the admin acces:
usinghttp://stlucia-southafrica.com/web/admin.php , the admin page resolves, but as Im not logged in, acces is being denied whereafter I get redirected to the home page straight away.

Other suggestions?

Edwin

16
raygauci
Re: Still trying to get my blank website going again
  • 2007/1/4 13:29

  • raygauci

  • Just popping in

  • Posts: 64

  • Since: 2004/12/16


I had the same error with smartsection. The cause was teh block called spotlight. When I disabled that the site worked fine. Hope this works for you as it did to me

17
Edwinspie
Re: Still trying to get my blank website going again
  • 2007/1/4 13:46

  • Edwinspie

  • Just popping in

  • Posts: 84

  • Since: 2006/8/18


I am using the spotlight block, but how to disable it when I have no acces to my admin ?

Txs,

Edwin

18
Dave_L
Re: Still trying to get my blank website going again
  • 2007/1/4 14:01

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Using phpMyAdmin, locate the block in the "block_instance" table and set "visible" to 0.

19
JCDunnart
Re: Still trying to get my blank website going again
  • 2007/1/4 14:40

  • JCDunnart

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/7/1 5


'block_instance' is in XOOPS 2.2.

In 2.0.15 it's the 'newblocks' table, field 'isactive' - set it to 0 for the smartsection spotlight block.

Once your site's back you should really upgrade to 2.0.16 The redirection from /admin.php to the main page is a bug in 2.0.15, it was fixed in 2.0.16...

20
Dave_L
Re: Still trying to get my blank website going again
  • 2007/1/4 14:46

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Oops, thanks for the correction.

Login

Who's Online

180 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 180


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits