1
cronywell
newbb 5.0 error
  • 2022/4/29 17:48

  • cronywell

  • Just popping in

  • Posts: 5

  • Since: 2022/4/29


Hello I need help, in the forum module newbb 5.0 comes out: Error : Error: Class 'XoopsLocalAbstract' not found How can I solve it?

2
Mamba
Re: newbb 5.0 error
  • 2022/4/29 19:58

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


What version of XOOPS and PHP do you use? This should had nothing to do with NewBB, but more with XOOPS. I would suggest to download the latest XOOPS Code and the NewBB 5.1 Beta 5 and have a fresh installation. I suspect, it has something to do with your local language file. The class XoopsLocalAbstract is located in /class/xoopslocal.php, and is being called in /language/english/locale.php
if (!class_exists('XoopsLocalAbstract')) {
    include_once 
XOOPS_ROOT_PATH '/class/xoopslocal.php';
}

/**
 * A Xoops Local
 *
 * @package             kernel
 * @subpackage          Language
 *
 * @author              Taiwen Jiang 
 * @copyright       (c) 2000-2016 XOOPS Project (http://www.xoops.org)
 */
class XoopsLocal extends XoopsLocalAbstract
{
    
/**
     * Number Formats
     *
     * @param  unknown_type $number
     * @return mixed
     */
    
public function number_format($number)
    {
        return 
number_format($number2'.'',');
    }

    
/**
     * Money Format
     *
     * @param  string $format
     * @param  string $number
     * @return money  format
     */
    
public function money_format($format$number)
    {
        
setlocale(LC_MONETARY'en_US');

        return 
money_format($format$number);
    }
}
Once you download the latest XOOPS code, you might compare your /language/spanish/locale.php to the /language/english/locale.php and see if there is any difference.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

Login

Who's Online

417 user(s) are online (271 user(s) are browsing Support Forums)


Members: 0


Guests: 417


more...

Donat-O-Meter

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

Latest GitHub Commits