Zen-Cart 在编辑产品时不显示产品文本
我经营着一家小型 Zen-Cart 商店,但遇到以下问题。当我在管理员界面中编辑产品时,名称和描述文本不显示。对于所有语言,文本框都是空的。当我再次输入名称和描述时,一切正常,更改将被保存并显示在网站中。
我不知道它是否与这个问题有关,但我在 NGINX 网络服务器(在 CentOS 上)上运行 Zen-Cart。 PHP 通过 Fast-CGI 支持。除了这个小问题之外,网站运行良好且速度很快。
我尝试在 Windows 计算机(使用 WAMP)上离线复制该网站的副本,但没有出现问题。我有什么想法可以解决这个问题吗?
I'm running a small Zen-Cart shop and I have the following problem. When I'm in the administrator interface and edit a product, the name and description texts do not show. The text boxes are just empty for all languages. When I enter the name and description again all works fine and changes are saved and show up in the website.
I don't know if it has anything to do with this problem, but I'm running Zen-Cart on a NGINX webserver (on CentOS). PHP is supported through Fast-CGI. Except for this small problem the website runs fine and is fast.
I tried a copy of the website offline on a Windows machine (with WAMP) and here the problem does not occur. Any ideas how I can fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
从所有行中删除这部分,它可以工作:
, ENT_COMPAT, CHARSET, TRUE
Remove this part from all lines, it works:
, ENT_COMPAT, CHARSET, TRUE
我以前没有见过这个问题,但我会尝试这些路径来更好地定位问题:
您是否尝试过选择“无编辑器”?您可以在打开产品页面之前执行此操作,在类别列表中,右上角有一个“文本编辑器”菜单,选择“无”或“无编辑器”,然后检查问题是否仍然出现。
您检查过 zen 错误日志吗?在 Zencart 的较新版本中,它们默认包含并处于活动状态,在 1.3.9a 版本之前,您必须安装 错误记录功能来激活它们。然后您可以访问 /cache 下的日志,或者您的缓存文件夹中的任何文件夹。
是否只是产品出现问题?类别、客户、EZ 页面或其他编辑怎么样?如果只是产品页面的问题,我会尝试重新上传您的admin目录下的product.php文件。
I haven't seen this problem before, but I would try these paths to locate the problem better:
Have you tried to select "no editor"? You can do this BEFORE you open the product page, on the listing of the category, at the top-right you have a menu "Text editor", select None or No editor and check if the problem still occurs.
Have you checked the zen error logs? In the newer versions of Zencart they are included and active by default, previous to version 1.3.9a you have to install the error-logging function to activate them. Then you can access the logs under /cache, or whatever your cache folder is.
Is it a problem occurring with products only? What about categories, customers, EZ-pages or other edits? If it is a problem of the products page only, I would try re-uploading the product.php file under your admin directory.
好吧,虽然这不是一个很好的解决方案:
问题出在collect_info.php中的这一行:
使用
$pInfo->products_name
而不是$products_name[$languages[$i][ 'id']]
和zen_get_products_name(...)
确实有效。仅当您只有一种语言时,此方法才有效。对于描述,我可以使用已经在这里工作的 FCK 编辑器。
Well, although this is not a great solution:
The problem is in this line in collect_info.php:
Using
$pInfo->products_name
instead of$products_name[$languages[$i]['id']]
andzen_get_products_name(...)
does work. This only works if you have only one language.For description I can use the FCK Editor which was working here already.
问:您是否在目录中使用链接产品?您是否从另一个产品复制了一个产品?
当您在编辑器屏幕中查看产品信息时,所有字段是否为空?
可能是主类别 ID 配置不正确,因此它没有正确填充您的管理产品表单。
FCK 编辑器不会影响产品名称或定价字段的填充。因此,这可能是由于主类别id不正确造成的。
Q: Are you using linked products in your catalog? Have you copied a product from another product?
Are all fields empty when you are viewing your product information in the editor screen?
It may be the master categories id is not configured correctly, and therefore it is not populating your admin product form correctly.
The FCK Editor does not effect the populating of the product name or pricing fields. Therefore, it may be attributed to an incorrect master category id.