ezPublish 翻译混合
我正在尝试创建 ezPublish 站点的开发镜像站点,以便我可以在不弄乱主站点的情况下进行更改。我复制了数据库和文件系统,并更改了 ini 文件以指向新数据库,但是当我加载页面时,我发现没有加载任何对象。所以我打破了调试栏,我发现由于某种原因,正在使用的 language_mask 不正确......位域设置为 4,而查询中用于加载页面的掩码是 3。
所以我戳在 ini 文件周围,我看到一个名为 SiteLanguageList[]
的设置,它似乎设置了“备份语言”。我发现如果我将 SiteLanguageList[]
设置为:
SiteLanguageList[]=eng-US
SiteLanguageList[]=eng-GB
并且我的网站开始显示。耶!
然而,一切并不顺利。当我实际尝试在管理中编辑页面时,每个条目都显示为空白。让事情变得更加奇怪的是,只要我只是查看它,它就会出现在管理员中。然后还有一个奇怪的差异,根据我在管理员中查看的位置,它要么说该页面是 eng-US,要么是 eng-GB,具体取决于我在同一页面上查看的位置。
说真的,这到底是怎么回事?。如果我单击编辑按钮,则不会显示任何内容。
I'm trying to create a development mirror site of an ezPublish site so I can stage changes without messing up the main site. I copied the database and the filesystem and changed the ini files to point at the new database, but when I loaded the page I found that none of my objects were being loaded. So I break out the debug bar, and I find that for some reason the language_mask that is being used is incorrect...the bitfield is set to 4 while the mask being used in the query to load the page is 3.
So I poke around the ini files and I see a setting called SiteLanguageList[]
which seems to set up 'backup langauges'. I found that If I set SiteLanguageList[]
to:
SiteLanguageList[]=eng-US
SiteLanguageList[]=eng-GB
and my site started showing up. Yay!
However, all is not well. When I actually try to EDIT the page in the admin, every entry shows up blank. What makes things doubly weird is that it shows up in the admin as long as I'm merely looking at it. And then there's this weird discrepancy, where depending on where I'm looking in the admin, it either says that the page is eng-US or eng-GB depending on where I'm looking on the same page.
Seriously, what the heck is going on here?. If I click the edit button, nothing shows up.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
导入正确吗?请检查
使用“安装 - 升级”的数据库
检查”实用程序
手动(运行“php
bin/php/ezcache.php --clear-all"
从 ez 根目录)
ez错误日志
(/var/log/error.log)
文件夹(缓存、设置等)
was imported correctly? Please check
the database using "Setup - Upgrade
check" utilites
manually (run "php
bin/php/ezcache.php --clear-all"
from ez root directory)
ez error log
(/var/log/error.log)
folders (cache, settings, etc.)