我即将对ExpressionEngine v1进行ExpressionEngine v1升级,并在nGen文件字段中存储大量数据.
升级前后需要采取哪些步骤才能使这些数据与EE2 SafeCracker文件字段一起正常工作?
我在ExpressionEngine v2.5.3安装上遇到了一个问题,即我认为高内存使用率.这是最近的EE1 - EE2升级,如果它有所作为.
此项目上的空模板使用10MB内存.我测试了另一个v2.5.3项目和一个空页面,使用2MB内存.我在普通模板上看到30 + MB的使用率,并且浏览器经常失去与服务器的连接.
是一个插件导致内存使用增加?追踪这种情况的最佳方法是什么?
升级后,安装肯定会起作用.
模板调试
(0.000011 / 9.01MB) - Begin Template Processing -
(0.000172 / 9.01MB) URI: test
(0.000185 / 9.01MB) Path.php Template: /
(0.000199 / 9.01MB) Retrieving Template
(0.000210 / 9.01MB) Parsing Template URI
(0.002112 / 9.02MB) Template Group Found: test
(0.002166 / 9.02MB) Retrieving Template from Database: test/index
(0.003599 / 9.02MB) Template Found
(0.003690 / 9.02MB) Template Type: webpage
(0.003711 / 9.02MB) Parsing Site Variables
(0.003767 / 9.02MB) Snippets (Keys): structure:is:page|structure:is:listing|structure:is:listing:parent|structure:page:entry_id|structure:page:template_id|structure:page:title|structure:page:slug|structure:page:uri|structure:page:url|structure:page:channel|structure:page:channel_short_name|structure:parent:entry_id|structure:parent:title|structure:parent:slug|structure:parent:uri|structure:parent:url|structure:parent:child_ids|structure:parent:channel|structure:parent:channel_short_name|structure:top:entry_id|structure:top:title|structure:top:slug|structure:top:uri|structure:top:url|structure:child_listing:channel_id|structure:child_listing:short_name|structure:freebie:entry_id|structure:child_ids|structure:sibling_ids|structure_1|structure_2|structure_3|structure_4|structure_5|structure_6|structure_7|structure_8|structure_9|structure_10|structure_last_segment|site_id|site_label|site_short_name|last_segment
(0.003784 / …
Run Code Online (Sandbox Code Playgroud) <iframe id="player" src="http://www.youtube.com/embed..."></iframe>
Run Code Online (Sandbox Code Playgroud)
Firebug - 控制台选项卡:
Error: Permission denied to access property 'toString'
Run Code Online (Sandbox Code Playgroud)
我搜索整个站点(Ctrl + F)并且"toString"不存在.
当我删除iframe时 - 错误消失.
我正在尝试在用户输入内容后在textarea中进行字符串替换,而我尝试过的任何工作都没有.任何帮助将不胜感激.这就是我所在的地方:
<textarea id="field_id_29"></textarea>
$("#field_id_29").bind("change keyup input",function(){
var text = $("#field_id_29").val();
text = text.replace(/source/g,"www")
$("#field_id_29").val(text);
});
Run Code Online (Sandbox Code Playgroud)
我需要更换WWW-源与WWW.
jsFiddle在这里:http://jsfiddle.net/6RNY2/
我在CartThrob结帐流程的最后一页设置了"礼品留言"自定义字段.这是我的代码示例:
{exp:cartthrob:checkout_form return="/checkout/billing/process"}
<textarea id="gift_message" name="gift_message">
{if gift_message}
{gift_message}
{/if}
</textarea>
{/exp:cartthrob:checkout_form}
Run Code Online (Sandbox Code Playgroud)
如果订单已提交且出现错误,则不会保留"礼品消息"数据.如何强制它保存到CartThrob会话?
我正在将EE升级从本地服务器转移到生产服务器,并且让可怕的"无法加载站点首选项;无效的首选项数据"错误.
我三倍检查了一切.数据库连接正常,路径设置正确,数据库表有网站首选项等...我还应该检查什么?
CartThrob文档的此页面上列出了coupon_code变量:http://cartthrob.com/docs/tags_detail/coupon_info/index.html#coupon_code
这个变量的确切数据来自何处?默认优惠券渠道上没有"优惠券代码"字段可以设置.
有任何想法吗?