简体   繁体   English

Expression Engine安装差异

[英]Expression Engine install differences

Not sure if this is the right place to ask this but I have a site with a staging and beta install of expression engine. 不知道这是否是问这个问题的正确位置,但是我有一个站点,其中安装了表达式引擎的暂存版和Beta版。 Same versions same files everything appears to be identical. 相同版本,相同文件的所有内容看起来都是相同的。 The config files are the same except for the url differences however the two sites behave differently for a number of extensions/modules. 除了网址不同外,配置文件相同,但是对于许多扩展名/模块,这两个站点的行为不同。 One issue was that on the staging site the previous developer had a template embedding another template and using it in a loop to execute another query so something like this: 一个问题是,在登台站点上,以前的开发人员拥有一个模板,该模板嵌入了另一个模板,并在循环中使用它来执行另一个查询,如下所示:

    {!-- template uri /example/uri --}

        start loop

        {embed="template/.thistemplate" id="{id}"}


        end loop


   {!--end template--}

This worked perfectly fine on staging but on the beta install it did not, it actually only embedded the last id passed through for every item in the loop which resulted in the same result for the whole loop. 这在暂存上工作得很好,但在beta安装上却没有,实际上它只嵌入了循环中每个项目传递的最后一个id,从而导致整个循环的结果相同。

To get this particular issue working I rewrote the code so that it didn't embed anything but I am having lots of other issues that are similar in the fact that they work on staging and not beta and I am wondering if anyone out there knows of any places where settings could drastically alter the behavior of the site. 为了使这个特定的问题正常工作,我重写了代码,以便它不嵌入任何内容,但是我遇到了许多其他类似的问题,因为它们在分期而不是beta上工作,我想知道是否有人知道设置可能会极大改变网站行为的任何地方。

In four years of EE development, I've never seen an issue like this. 在EE开发的四年中,我从未见过这样的问题。 My only guess is that your beta environment may not use a supported version of PHP or may have modules configured in a way that parses EE's PHP code differently than your staging server does. 我唯一的猜测是,您的Beta环境可能未使用受支持的PHP版本,或者可能以与分阶段服务器不同的方式解析EE的PHP代码来配置模块。 If you haven't already done so, check the beta server's settings to make sure it fits EE's requirements . 如果尚未执行此操作,请检查Beta服务器的设置以确保它符合EE的要求 It's difficult to give you any other pointers without further information. 如果没有更多信息,很难为您提供任何其他指导。 Best of luck! 祝你好运!

Sounds to me like the 2 sites are not truly in sync. 在我看来,这两个网站并非真正同步。

How was the 2nd site split off from the first site? 第二个站点如何与第一个站点分开?

Were both the database and the filesystem cloned at the same time? 是否同时克隆了数据库和文件系统?

I would consider making a new snapshot of staging and using that as your beta site. 我会考虑制作一个新的暂存快照并将其用作您的Beta网站。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM