sitemap problem

Hi all, i have this error when i want to create a sitemap. help me please


Fatal error: Call to a member function getDbPrefix() on a non-object in /www/inc/classes/BxDolTextSiteMaps.php on line 26

------------------------------------------------------------

This is the BxDolTextSiteMaps.php

-------------------------------------------------------------

<?php
/**
 * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
 * CC-BY License - http://creativecommons.org/licenses/by/3.0/
 */

bx_import('BxDolSiteMaps');
bx_import('BxDolPrivacy');

/**
 * Sitemaps generator for News
 */
class BxDolTextSiteMaps extends BxDolSiteMaps
{
    protected $_oModule;

    protected function __construct($aSystem, &$oModule)
    {
        parent::__construct($aSystem);

        $this->_oModule = $oModule;
        $this->_aQueryParts = array (
            'fields' => "`id`, `uri`, `when`", // fields list
            'field_date' => "when", // date field name
            'field_date_type' => "timestamp", // date field type
            'table' => "`" . $this->_oModule->_oConfig->getDbPrefix() . "entries`", // table name
            'join' => "", // join SQL part
            'where' => "AND `status` = '" . BX_TD_STATUS_ACTIVE . "'", // SQL condition, without WHERE
            'order' => " `when` ASC ", // SQL order, without ORDER BY
        );
    }

    protected function _genUrl ($a)
    {
        return BX_DOL_URL_ROOT . $this->_oModule->_oConfig->getBaseUri() . 'view/' . $a['uri'];
    }
}

Quote · 25 Aug 2014

try uploading a fresh copy of that file and attempting your sitemap again. I have not had an issue creating a sitemap, and can not really tell why you get an error. But if it were me, I would start at the beginning with a new page.

caredesign.net
Quote · 25 Aug 2014

My only conclusion as to what may be causing this error is that you have a damaged module installed on your site that is causing the error when the function try's to read the modules database prefix.


BTW. Unless you wrote the code yourself and therefor do not know if there is a coding mistake or if we request to see the code, there is no need to post it, or even look at it yourself. It's pointless to post code that we all already have and use and therefore we all already know the code works.

https://www.deanbassett.com
Quote · 25 Aug 2014

Thx a lot for your help

Quote · 29 Aug 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.