简体   繁体   English

编辑产品view.phtml后Magento页面损坏

[英]Magento pages broken after editing product view.phtml

I was writing some custom php for the product view page in Magento, and accidentally executed an infinite while loop on the server. 我在Magento中为产品视图页面编写了一些自定义php,并意外地在服务器上执行了一个无限的while循环。 I erased this code (I've gone all the way to put view.phtml back to what it was before I started working with it), flushed/cleared every kind of cache, even deleted cache manually but NO pages are working on the site. 我擦除了这段代码(我一直将view.phtml放回到开始使用它之前的状态),刷新/清除了每种缓存,甚至手动删除了缓存,但是该站点上没有页面在运行。 They all hang forever, which makes it seem as though they're all executing the infinite while loop (even non-product pages.) I have no idea what to do at this point to fix this - any ideas? 它们都永远挂着,这似乎好像它们都在执行无限的while循环(甚至是非产品页面一样。)我现在不知道该怎么做以解决此问题-有什么想法吗?

They are maybe still running. 他们可能仍在运行。

If you are using apache2 restart it, if your are using nginx restart php-fpm. 如果使用的是apache2,请重新启动它;如果使用的是nginx,请重新启动php-fpm。

However, if cant restart or kill processes and you did not exec them over the console, you should reach the max_execution time of you server. 但是,如果无法重新启动或终止进程,并且您没有通过控制台执行它们,则应达到服务器的max_execution时间。 by default this is 60 seconds so this problem should solve itself in time. 默认情况下为60秒,因此此问题应及时解决。

Please clear All folder mannualy inside var/cache and var/session dir. 请清除var / cache和var / session dir中的所有文件夹manualy。

Also Please check with diffrent browsers. 也请检查不同的浏览器。 May be this helps you 也许这可以帮助您

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

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