Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /var/www/html/plugins/system/falangdriver/falangdriver.php on line 534
Joomla CLI 的 extension:install 命令需要正确的参数格式 - Bluetooth forum - bluetooth蓝牙技术

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/components/com_comprofiler/plugin/user/plug_cbjdownloads/cbjdownloads.php on line 49

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/components/com_comprofiler/plugin/user/plug_cbblogs/cbblogs.php on line 48

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/components/com_comprofiler/plugin/user/plug_cbarticles/cbarticles.php on line 47

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323
Technical discuss

Joomla CLI 的 extension:install 命令需要正确的参数格式


Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323
  • btt
  • [btt]
  • Topic Author
  • New Member
  • New Member
More
05 Jan 2026 12:57 #984 by btt
New Topic
1. 正确的安装命令格式根据错误提示,应该使用 
Code:
--path
 参数:
# 正确的命令格式
php cli/joomla.php extension:install --path=pkg_socialpay_j5_v3.0.0.zip

# 或者使用等号两边无空格的形式
php cli/joomla.php extension:install --path pkg_socialpay_j5_v3.0.0.zip

# 使用相对路径
php cli/joomla.php extension:install --path=./pkg_socialpay_j5_v3.0.0.zip

2. 查看 Joomla CLI 帮助

# 查看 extension:install 命令的具体用法
php cli/joomla.php extension:install --help

# 查看所有扩展相关命令
php cli/joomla.php extension --help


3. 正确的安装步骤
# 确保在 Joomla 根目录
cd /var/www/html

# 列出当前目录,确认文件存在
ls -la pkg_socialpay_j5_v3.0.0.zip

# 使用正确的命令安装
php cli/joomla.php extension:install --path=pkg_socialpay_j5_v3.0.0.zip --debug

# 或者不带调试模式
php cli/joomla.php extension:install --path=pkg_socialpay_j5_v3.0.0.zip


4. 如果文件在其他目录

# 使用绝对路径
php cli/joomla.php extension:install --path=/home/user/pkg_socialpay_j5_v3.0.0.zip

# 或者先将文件移动到当前目录
cp /path/to/pkg_socialpay_j5_v3.0.0.zip .
php cli/joomla.php extension:install --path=pkg_socialpay_j5_v3.0.0.zip


5. 解决 PHP 弃用警告(可选)

 您看到的两个警告:
  1. Fabrik 组件中的弃用警告(不影响安装)
  2. Joomla 核心中的 
    Code:
    utf8_decode()
     弃用警告
这些警告不会阻止安装,但如果您想消除它们,可以:

# 临时关闭弃用警告
php -d error_reporting="E_ALL & ~E_DEPRECATED" cli/joomla.php extension:install --path=pkg_socialpay_j5_v3.0.0.zip

# 或完全关闭错误显示
php -d error_reporting=0 cli/joomla.php extension:install --path=pkg_socialpay_j5_v3.0.0.zip

6. 完整的安装示例

# 进入 Joomla 根目录
cd /var/www/html

# 检查文件是否存在
if [ -f "pkg_socialpay_j5_v3.0.0.zip" ]; then
    echo "✅ 找到扩展包文件"
    
    # 使用正确命令安装(忽略弃用警告)
    php -d error_reporting="E_ALL & ~E_DEPRECATED" cli/joomla.php extension:install --path=pkg_socialpay_j5_v3.0.0.zip
    
    # 检查安装结果
    if [ $? -eq 0 ]; then
        echo "✅ 安装成功!"
    else
        echo "❌ 安装失败"
    fi
else
    echo "❌ 找不到扩展包文件"
    echo "当前目录内容:"
    ls -la *.zip
fi


  

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 234

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 189

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
FaLang translation system by Faboba

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /var/www/html/plugins/system/falangdriver/falangdriver.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /var/www/html/plugins/system/falangdriver/falangdriver.php on line 100
mysqli object is already closed (500 Whoops, looks like something went wrong.)

Error

HTTP 500 Whoops, looks like something went wrong.

mysqli object is already closed

Exception

Error

  1. */
  2. public function disconnect()
  3. {
  4. // Close the connection.
  5. if (\is_callable([$this->connection, 'close'])) {
  6. $this->connection->close();
  7. }
  8. parent::disconnect();
  9. }
  1. */
  2. public function disconnect()
  3. {
  4. // Close the connection.
  5. if (\is_callable([$this->connection, 'close'])) {
  6. $this->connection->close();
  7. }
  8. parent::disconnect();
  9. }
  1. *
  2. * @since 2.0.0
  3. */
  4. public function __destruct()
  5. {
  6. $this->disconnect();
  7. }
  8. /**
  9. * Alter database's character set.
  10. *
DatabaseDriver->__destruct()

Stack Trace

Error
Error:
mysqli object is already closed

  at /var/www/html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:318
  at mysqli->close()
     (/var/www/html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:318)
  at Joomla\Database\Mysqli\MysqliDriver->disconnect()
     (/var/www/html/libraries/vendor/joomla/database/src/DatabaseDriver.php:496)
  at Joomla\Database\DatabaseDriver->__destruct()                

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /var/www/html/plugins/system/falangdriver/falangdriver.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /var/www/html/plugins/system/falangdriver/falangdriver.php on line 100