gpt4 book ai didi

php - 使用 Magento 2.3.3 p1 后遇到的问题

转载 作者:行者123 更新时间:2023-12-01 23:02:49 25 4
gpt4 key购买 nike

使用 Magento 2.3.3 p1。将此安全补丁应用于 Magento 2.3.3。

现在我们面临着使用选项保存特定模块的 Magento 配置的问题。抛出 503 错误。 Magento 2.3.3 运行良好。这是 Magento 2.3.3 p1 的问题吗?

系统.xml

<group>
...
...
...
<field id="selectourexp" translate="label" type="select" sortOrder="2" showInDefault="0" showInWebsite="1" showInStore="0">
<label>Our Integration</label>
<source_model>Namespace\Module\Model\System\Config\Ourexp</source_model>
<backend_model>Namespace\Module\Model\System\Config\Ourbackendcall</backend_model>
<depends>
<field id="ourflag">enabled</field>
</depends>
</field>
</group>

我们的exp.php

<?php
namespace Namespace\Module\Model\System\Config;

class Ourexp implements \Magento\Framework\Option\ArrayInterface
{
/**
* @return array
*/
public function toOptionArray()
{
return [
[
'value' => \Namespace\Module\Model\Call\Layer::FRONTEND_JAVASCRIPT,
'label' => __('Option 1')
],
[
'value' => \Namespace\Module\Model\Call\Layer::BACKEND_API,
'label' => __('Option 2')
],
];
}
}

未定义与 Ourbackendcall.php 中的选项相关的任何内容

最佳答案

尝试查看文件maintenance.flag 是否存在于您的Magento 根目录中。

如果您看到此文件,请将其删除,错误就会消失。

关于php - 使用 Magento 2.3.3 p1 后遇到的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60478031/

25 4 0
文章推荐: java - Web UI 自动化测试适用于桌面 Chrome,但可以在 Android Chrome 中找到元素
文章推荐: erlang - 从命令行执行 Erlang 代码中的并发示例
文章推荐: Java 8 使用对象子级的字段将 List 转换为 Map