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
检查并修复文件结构 - bluetooth蓝牙技术
Support us and view this ad

可选:点击以支持我们的网站

免费文章

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

文件可能在错误的位置。让我们修复这个问题   # 查看当前包的结构cd /tmpmkdir check_structurecd check_structureunzip -q /var/www/html/pkg_socialpay_j5.zip echo "=== 当前 com_socialauth 目录结构 ==="find com_socialauth -type f | sort echo ""echo "=== 查找 socialauth.php 文件 ==="find com_socialauth -name "socialauth.php" -type f echo ""echo "=== 检查 com_socialauth/socialauth.xml 中定义的文件 ==="if [ -f "com_socialauth/socialauth.xml" ]; thengrep -n "socialauth.php" com_socialauth/socialauth.xmlgrep -n "<files" com_socialauth/socialauth.xml -A 10fi   修复文件位置问题 根据错误信息,安装器期望在 com_socialauth/admin/socialauth.php 找到文件,但可能您的文件在 com_socialauth/socialauth.php。让我们修复: # 创建修复脚本cat > fix_file_structure.sh << 'EOF'#!/bin/bashecho "=== 修复文件结构问题 ===" TEMP_DIR="/tmp/fix_files_$(date +%s)"mkdir -p "$TEMP_DIR"cd "$TEMP_DIR" # 解压原始包unzip -q /var/www/html/pkg_socialpay_j5.zip echo "检查并修复文件结构..." # 1. 检查 com_socialauth 目录if [ -d "com_socialauth" ]; thenecho "处理 com_socialauth 组件..."# 创建 admin 目录(如果不存在)mkdir -p com_socialauth/admin# 检查 socialauth.php 文件位置if [ -f "com_socialauth/socialauth.php" ]; thenecho "移动 socialauth.php 到 admin 目录..."mv com_socialauth/socialauth.php com_socialauth/admin/fi# 检查是否有 admin 目录的内容需要移动if [ -d "com_socialauth/admin" ]; thenecho "检查 admin 目录内容..."ls -la com_socialauth/admin/elseecho "创建 admin 目录结构..."mkdir -p com_socialauth/admin/{controllers,models,views,helpers,tables,sql}fi# 检查并修复 socialauth.xml 文件if [ -f "com_socialauth/socialauth.xml" ]; thenecho "修复 socialauth.xml 文件中的文件定义..."# 备份原始文件cp com_socialauth/socialauth.xml com_socialauth/socialauth.xml.backup# 修正文件定义 - 确保 admin 文件正确引用sed -i 's|<files folder="admin">|<files folder="admin">\n <filename>socialauth.php</filename>|' com_socialauth/socialauth.xml# 或者使用更安全的替换cat > com_socialauth/socialauth.xml << 'XMLFIX'<?xml version="1.0" encoding="UTF-8"?><extension type="component" version="5.0" method="upgrade"><name>com_socialauth</name><author>Social Pay Team</author><creationDate>2026-01</creationDate><copyright>Copyright (C) 2026 Social Pay Team</copyright><license>GNU General Public License version 2 or later</license><authorEmail>该邮件地址已受到反垃圾邮件插件保护。要显示它需要在浏览器中启用 JavaScript。;/authorEmail><authorUrl>https://www.socialpay.com</authorUrl><version>3.0.0</version><description>Social Authentication &amp; Payment Component</description><namespace path="src">Joomla\Component\Socialauth</namespace><scriptfile>script.php</scriptfile><files folder="admin"><filename>socialauth....

继续阅读完整内容

支持我们的网站,请点击查看下方广告

正在加载广告...

FaLang translation system by Faboba

登陆


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/libraries/src/Menu/AbstractMenu.php on line 164

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 217

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 219

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 227

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 231

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: 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