简体   繁体   English

我的 Opencart 管理员->目录->产品页面不工作

[英]My Opencart Admin->Catalog->Product page not working

I have developed an opencart based ecommerce website.I have also purchased journal theme for the web.我开发了一个基于 opencart 的电子商务网站。我还为 web 购买了期刊主题。 It had been working fine for 5 months.它已经工作了5个月。 But suddenly my home page stopped rendering & even the admin panel's product page started showing the same internal http 500 error.但突然我的主页停止渲染,甚至管理面板的产品页面也开始显示相同的内部 http 500 错误。 After some research and provided solutions from github i was then able to retrieve my home page rendering up.经过一些研究并从 github 提供解决方案后,我能够检索我的主页渲染。 But still the admin->catalog->product page shows the same error.但是 admin->catalog->product 页面仍然显示相同的错误。 On enabling error codes, I got the following error:在启用错误代码时,我收到以下错误:

Warning: mysqli::query(): (HY001/1038): Out of sort memory, consider increasing server sort buffer size in /home/acmysys1/public_html/system/library/db/mysqli.php on line 19 Warning: mysqli::query(): (HY001/1038): Out of sort memory, consider increasing server sort buffer size in /home/acmysys1/public_html/system/library/db/mysqli.php on line 19

Also i tried to contact my web host and requested him to increase my server sort buffer size, but he refused to do so as i was having an shared ip.我还尝试联系我的 web 主机并要求他增加我的服务器排序缓冲区大小,但他拒绝这样做,因为我有一个共享的 ip。 Cant afford to purchase a new VPS host.买不起新的 VPS 主机。 Also tried to connect to putty through ssh but connection always gets refused.还尝试通过 ssh 连接到腻子,但连接总是被拒绝。 Everything rather than the product page seems to be working fine.一切而不是产品页面似乎都运行良好。

Can anyone please suggest what to do because i am in a vast dillema over it?任何人都可以建议该怎么做,因为我对此感到困惑吗?

Are you running any product related extensions/mods you can try disabling, as it maybe some poor performing code that is causing error.您是否正在运行任何与产品相关的扩展/模块,您可以尝试禁用,因为它可能是一些性能不佳的代码导致错误。 I would not think working code would hit this limit.我认为工作代码不会达到这个限制。

If you want to track down the you can just start "debugging" the code to find the step that "breaks" it and causes your error:如果您想追踪,您可以开始“调试”代码以找到“破坏”它并导致错误的步骤:

Im not up on v3 but in v2 admin product pages list/add/edit are generated by admin/controller/catalog/product.php But your problems are most likely in admin/model/catalog/product.php getProducts() function. Im not up on v3 but in v2 admin product pages list/add/edit are generated by admin/controller/catalog/product.php But your problems are most likely in admin/model/catalog/product.php getProducts() function. try commenting out the ORDER BY lines, to see if not sorting your products as a test prevents the error and lets you view them.尝试注释掉 ORDER BY 行,看看是否没有对您的产品进行排序作为测试可以防止错误并让您查看它们。

Bear in mind with modification system it might be running out of system/storage/modification/admin instead, so check there first for your file and test edit there to avoid having to refresh mods button every time.请记住,修改系统可能会用完系统/存储/修改/管理,因此请先在此处检查您的文件并在那里测试编辑以避免每次都必须刷新 mods 按钮。 Just put in a 'echo "hello";'只需输入一个“回声“你好”;' to check your changes are having effect.检查您的更改是否生效。

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

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