mysql Shopware Frontend 500| SQLSTATE[42 S22]:未找到列:1054 Unknown column“/”in“field list”

3qpi33ja  于 5个月前  发布在  Mysql
关注(0)|答案(1)|浏览(34)

我目前正试图将Shopware 6移动到一个新的主机(根服务器)。我复制了数据库,设置了服务器和Web空间,我能够登录到后端。但当我在前端时,我得到了一个500错误,这就是为什么我激活了Shopware服务器。

这里我得到了以下错误: 无法连接到数据库。来自SQL Server的消息:执行“SELECT CONCAT”时发生异常(TRIM(TRAILING“/”FROM domain.url),“/”)key,CONCAT(TRIM(TRAILING“/”FROM domain.url),“/”)url,LOWER(HEX(domain.id))id,LOWER(HEX(sales_channel.id))sales_channelId,LOWER(HEX(sales_channel.type_id))typeId,LOWER(HEX(domain.snippet_set_id))snippetSetId,LOWER(HEX(domain.currency_id))currencyId,LOWER(HEX(domain.language_id))languageId,LOWER(HEX(theme.id))themeId,sales_channel.maintenance maintenance,sales_channel.maintenance_ip_whitelist maintenanceIpWhitelist,snippet_set.iso as locale,theme.technical_name作为themeName,parentTheme.technical_name as parentThemeName FROM sales_channel INNER JOIN sales_channel_domain ON domain.sales_channel_id = sales_channel.id LEFT JOIN theme_sales_channel theme_sales_channel ON sales_channel.id = theme_sales_channel.sales_channel_id INNER JOIN snippet_set snippet_set ON snippet_set.id = domain.snippet_set_id LEFT JOIN theme ON theme_sales_channel.theme_id = theme.id LEFT JOIN theme parentTheme ON theme.parent_theme_id = parentTheme.id WHERE(sales_channel.type_id = UNHEX(?))AND(sales_channel.active)' with params [“8a243080f92e4c719546314b577cf82b”]:SQLSTATE[42S22]:未找到列:1054 Unknown column '/' in 'field list '
信息:

  • Shopware版本6.2.3
  • PHP 7.2
  • MySQL 8.0.30
  • Linux Ubuntu 22.04 LTS 64位
  • Apache
  • SQL模式设置(ANSI、ERROR_FOR_DIVISION_BY_ZERO、NO_ENGINE_SUBSTITUTION、NO_ZERO_DATE、NO_ZERO_IN_DATE、STRICT_ALL_TABLES)

(请询问您是否需要其他版本的东西)(域名的DNS目前显示到live-page.我调整了我的本地系统,以便我去新的主机,当我键入live-page的URL.为此,我使用/System32/drivers/etc/hosts文件.我可以解释更详细,如果必要的.)

购物软件(最后一条):[2023-12-19 13:17:09] request.INFO:匹配路由“API.action.message-queue.consume”. {“route”:“API. action.message-queue.consume”,“route_parameters”:{"_route”:“API.action.message-queue.consume”,"_controller”:“Shopware\Core\Framework\MessageQueue\Api\ConsumeMessagesController::consumeMessages”,“version”:“2”},“request_uri”:“http://91.92.117.219/api/v2/_action/message-queue/consume“,“method”:“POST”} [] [2023-12-19 13:17:19] messenger.INFO:已收到邮件Shopware\Core\Content\Category\DataAbstractionLayer\CategoryIndexingMessage {“message”:“[object](Shopware\Core\Content\Category\DataAbstractionLayer\CategoryIndexingMessage:{})",“class”:“Shopware\Core\Content\Category\DataAbstractionLayer\CategoryIndexingMessage”} [] [2023-12-19 13:17:19] request.INFO:匹配路由“api.action.scheduled-task.run“. {“route”:“api.action.scheduled-task.run”,“route_parameters”:{"_route”:“api.action.scheduled-task.run”,"_controller”:“Shopware\Core\Framework\MessageQueue\ScheduledTask\Api\ScheduledTaskController::runScheduledTasks”,“version”:“2”},“request_uri”:“http://91.92.117.219/api/v2/_action/scheduled-task/run“,“method”:“POST”} [] [2023-12-19 13:17:28] request.INFO:匹配路由“API. message_queue_stats.list”. {“route”:“API.message_queue_stats.list”,“route_parameters”:{"_route”:“API.message_queue_stats.list”,"_controller”:“Shopware\Core\Framework\Api\Controller\ApiController::list”,“entityName”:“message-queue-stats”,“version”:“2”,“path”:“"},“request_uri”:“http://91.92.117.219/api/v2/message-queue-stats?limit=25&page=1“,“method”:“GET”} [] [2023-12-19 13:17:41] request.INFO:匹配的路由“API. action. message-queue.consume”. {“route”:“API. action.message-queue.consume”,“route_parameters”:{"_route”:“API.action.message-queue.consume”,"_controller”:“Shopware\Core\Framework\MessageQueue\Api\ConsumeMessagesController::consumeMessages”,“version”:“2”},“request_uri”:“http://91.92.117.219/api/v2/_action/message-queue/consume“,”方法”:“POST”} []

Apache Log(Last entries):[Tue Dec 19 13:05:11.716246 2023] [php7:error] [pid 397128] [client 93.220.248.166:50020] PHP Fatal error:Allowed memory size of 134217728 bytes exhausted(tried to allocate 20480 bytes)in /var/www/leitner-sales.at/vendor/shopware/core/Profiling/Doctrine/DebugStack.php on line 50 [Tue Dec 19 13:05:11.720171 2023] [php7:error] [pid 397128] [client 93.220.248.166:50020] PHP Fatal error:Copyright © 2019 www.xinhua.com All Rights Reserved.粤ICP备leitner-sales.at/vendor/symfony/debug/DebugClassLoader.php15044778号-1粤公网安备44010502000000014号Copyright © 2019 www.xinhua.com All rights reserved.粤ICP备leitner-sales.at/vendor/shopware/storefront/Framework/Cache/CacheTagCollection.php11044778号-1粤公网安备4401050200000014号Copyright © 2019 www.xinhua.com All Rights Reserved.粤ICP备15044778leitner-sales.at/vendor/symfony/debug/DebugClassLoader.php440105020000114号Copyright © 2019 leitner-sales.at/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php All Rights Reserved.粤ICP备17044778号-1粤公网安备440105020000114号在/var/www/ www.example.com第139行中,已耗尽134217728字节的允许内存大小(尝试分配65536字节)leitner-sales.at/vendor/symfony/http-kernel/DataCollector/RequestDataCollector.php
我尝试的:

  • 在销售渠道URL中添加和删除“/”
  • 搜索销售渠道数据库表
  • 验证代码的来源(RequestTransformer.php = vendor->shopware->storefront->Framework->Routing)
  • 清除缓存
  • 再生Indizes
  • 重新启动服务器和Apache
  • 查过日志
  • 数据库访问正确且有效
  • DB表存在
  • Apache内存为512 M
  • 我通过Shell检查了内存,其中一半以上是免费的/未使用的。
  • 删除Shopware文件夹中的权限
  • 我在stackoverflow和Shopware社区找到的报告中的其他人的建议(这些都不起作用,也与我的问题无关)
  • 再次编译主题
    **我的期望:**我需要一个功能的店面,这是作为当前的生活一样,所以我们可以改变域DNS到新的托管.现在,我需要的500错误/Shopware错误得到修复.
kadbb459

kadbb4591#

来自“Álvaro González”的评论帮了大忙。“我对Shopware一无所知,但它使用了一种非标准的字符串语法(“/”而不是'/')。如果你的MySQL服务器(看起来是这样的)启用了ANSI_QUOTES,那就失败了。”
我删除了“ANSI,”从我的sql_mode从我的数据库中的值和错误消失了.然后我有另一个错误,但这是一个不相关的这篇文章,所以我认为这一个固定.我只需要访问店面与店面的URL和一切工作现在.

相关问题