1
cadch
XOOPS 2.5..11 beta 2 search.php need fix line 229
  • 9/25 10:19

  • cadch

  • Just popping in

  • Posts: 36

  • Since: 2007/12/17


line 229:
$count          count($results);


fix:
if ($results) {
    
$count count($results);
}else{
    
$count 0;
}



2
cadch
Re: If undefined function escapeshellcmd()
  • 6/12 8:18

  • cadch

  • Just popping in

  • Posts: 36

  • Since: 2007/12/17


SMTP is ok~



3
cadch
If undefined function escapeshellcmd()
  • 6/11 9:46

  • cadch

  • Just popping in

  • Posts: 36

  • Since: 2007/12/17


If your server use cPanel and PHP8,Someone disable_functions setting escapeshellarg and escapeshellcmd
Look the url
https://forums.cpanel.net/threads/php-disable-functions.483161/
The XOOPS 2.5.11-Beta2 phpmailer have a message
Error: Call to undefined function escapeshellcmd()
or
Error: Call to undefined function escapeshellcmd() in file /class/mail/phpmailer/class.phpmailer.php line 1447
How to fix it
/class/mail/phpmailer/class.phpmailer.php
find function isShellSafe
line 1445
Add
if (!function_exists('escapeshellarg') || !function_exists('escapeshellcmd')) {
            return 
false;
        }



4
cadch
Re: where utf8mb4 protector table can not creat
  • 12/9 13:13

  • cadch

  • Just popping in

  • Posts: 36

  • Since: 2007/12/17


mySQL 8.0.27-0



5
cadch
Re: where utf8mb4 protector table can not creat
  • 12/4 15:50

  • cadch

  • Just popping in

  • Posts: 36

  • Since: 2007/12/17


OR SET KEY LENGTH:
CREATE TABLE log (
  
lid mediumint(8unsigned NOT NULL auto_increment,
  
uid mediumint(8unsigned NOT NULL default 0,
  
ip varchar(255NOT NULL default '0.0.0.0',
  
type varchar(255NOT NULL default '',
  
agent varchar(255NOT NULL default '',
  
description text,
  
extra text,
  
timestamp DATETIME,
  
PRIMARY KEY (lid) ,
  
KEY (uid) ,
  
KEY (ip(128)) ,
  
KEY (type(250)) ,
  
KEY (timestamp)
ENGINE=MyISAM;

CREATE TABLE access (
  
ip varchar(255NOT NULL default '0.0.0.0',
  
request_uri varchar(255NOT NULL default '',
  
malicious_actions varchar(255NOT NULL default '',
  
expire int NOT NULL default 0,
  
KEY (ip(128)),
  
KEY (request_uri(250)),
  
KEY (malicious_actions(250)),
  
KEY (expire)
ENGINE=MyISAM;



6
cadch
where utf8mb4 protector table can not creat
  • 12/4 10:47

  • cadch

  • Just popping in

  • Posts: 36

  • Since: 2007/12/17


where mysql CHARACTER SET utf8mb4 have some errorQuote:
Creating tables...Specified key was too long; max key length is 1000 bytes

FILE:
Quote:
\htdocs\xoops_lib\modules\protector\sql\mysql.sql

CODE:
CREATE TABLE log (
  
lid mediumint(8unsigned NOT NULL auto_increment,
  
uid mediumint(8unsigned NOT NULL default 0,
  
ip varchar(255NOT NULL default '0.0.0.0',
  
type varchar(255NOT NULL default '',
  
agent varchar(255NOT NULL default '',
  
description text,
  
extra text,
  
timestamp DATETIME,
  
PRIMARY KEY (lid) ,
  
KEY (uid) ,
  
KEY (ip) ,
  
KEY (type) ,
  
KEY (timestamp)
ENGINE=MyISAM;

CREATE TABLE access (
  
ip varchar(255NOT NULL default '0.0.0.0',
  
request_uri varchar(255NOT NULL default '',
  
malicious_actions varchar(255NOT NULL default '',
  
expire int NOT NULL default 0,
  
KEY (ip),
  
KEY (request_uri),
  
KEY (malicious_actions),
  
KEY (expire)
ENGINE=MyISAM;

EDIT:
CREATE TABLE log (
  
lid mediumint(8unsigned NOT NULL auto_increment,
  
uid mediumint(8unsigned NOT NULL default 0,
  
ip varchar(128NOT NULL default '0.0.0.0',
  
type varchar(250NOT NULL default '',
  
agent varchar(255NOT NULL default '',
  
description text,
  
extra text,
  
timestamp DATETIME,
  
PRIMARY KEY (lid) ,
  
KEY (uid) ,
  
KEY (ip) ,
  
KEY (type) ,
  
KEY (timestamp)
ENGINE=MyISAM;

CREATE TABLE access (
  
ip varchar(128NOT NULL default '0.0.0.0',
  
request_uri varchar(250NOT NULL default '',
  
malicious_actions varchar(250NOT NULL default '',
  
expire int NOT NULL default 0,
  
KEY (ip),
  
KEY (request_uri),
  
KEY (malicious_actions),
  
KEY (expire)
ENGINE=MyISAM;

OR:(use utf8mb3)
CREATE TABLE log (
  
lid mediumint(8unsigned NOT NULL auto_increment,
  
uid mediumint(8unsigned NOT NULL default 0,
  
ip varchar(255CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL default '0.0.0.0',
  
type varchar(255CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL default '',
  
agent varchar(255NOT NULL default '',
  
description text,
  
extra text,
  
timestamp DATETIME,
  
PRIMARY KEY (lid) ,
  
KEY (uid) ,
  
KEY (ip) ,
  
KEY (type) ,
  
KEY (timestamp)
ENGINE=MyISAM;

CREATE TABLE access (
  
ip varchar(255CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL default '0.0.0.0',
  
request_uri varchar(255CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL default '',
  
malicious_actions varchar(255CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL default '',
  
expire int NOT NULL default 0,
  
KEY (ip),
  
KEY (request_uri),
  
KEY (malicious_actions),
  
KEY (expire)
ENGINE=MyISAM;



7
cadch
Re: XoopsCore25-2.5.11-Beta1 On PHP Version 8.0.13 protector some error,get_magic_quotes_gpc() returns undefined
  • 12/4 10:38

  • cadch

  • Just popping in

  • Posts: 36

  • Since: 2007/12/17


ok



8
cadch
XoopsCore25-2.5.11-Beta1 On PHP Version 8.0.13 installer page_moduleinstaller.php some error, Undefined constant "_AM_SYSTEM_DBUPDATED"
  • 12/3 15:06

  • cadch

  • Just popping in

  • Posts: 36

  • Since: 2007/12/17


FILE:
Quote:
htdocs\install\page_moduleinstaller.php

MOVE THE CODE TO LINE 25
if (!@include_once "../modules/system/language/{$wizard->language}/admin.php") {
    include_once 
'../modules/system/language/english/admin.php';
}

OR LINE 21 ADD
define('_AM_SYSTEM_DBUPDATED''Database Updated Successfully!');



9
cadch
XoopsCore25-2.5.11-Beta1 On PHP Version 8.0.13 installer page_theme.php some error, Undefined constant "_AM_SYSTEM_DBUPDATED"
  • 12/3 15:00

  • cadch

  • Just popping in

  • Posts: 36

  • Since: 2007/12/17


FILE:
Quote:
\htdocs\install\page_theme.php

LINE:43 ADD
if (!@include_once "../modules/system/language/{$wizard->language}/admin.php") {
    include_once 
'../modules/system/language/english/admin.php';
}

OR ADD
define('_AM_SYSTEM_DBUPDATED''Database Updated Successfully!');



10
cadch
XoopsCore25-2.5.11-Beta1 On PHP Version 8.0.13 uploader.php some error, get_magic_quotes_gpc() returns undefined
  • 12/3 14:27

  • cadch

  • Just popping in

  • Posts: 36

  • Since: 2007/12/17


FILE:
Quote:
\htdocs\class\uploader.php

LINE:234
$this->mediaName = @get_magic_quotes_gpc() ? stripslashes($_FILES[$media_name]['name'][$index]) : $_FILES[$media_name]['name'][$index];

CHANGE TO:
$this->mediaName $_FILES[$media_name]['name'][$index];



LINE:249
$this->mediaName = @get_magic_quotes_gpc() ? stripslashes($media_name['name']) : $media_name['name'];

CHANGE TO:
$this->mediaName $media_name['name'];




TopTop
(1) 2 3 »



Login

Who's Online

88 user(s) are online (59 user(s) are browsing Support Forums)


Members: 0


Guests: 88


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