【问题标题】:How can I fix an Opencart 3 page loading error?如何修复 Opencart 3 页面加载错误?
【发布时间】:2020-11-06 07:42:22
【问题描述】:

页面加载时以及管理页面上有时会出现以下问题。该错误不是永久性的,刷新页面后会消失。可能是什么问题,我该如何解决?

这是一条错误消息:

警告:fopen(/web/htdocs4/wallartdecorhu/home/www/system/storage/cache/cache.store.1604651378):无法打开流:/web/htdocs4/wallartdecorhu/home 中没有这样的文件或目录/www/system/library/cache/file.php 第 28 行警告:flock() 期望参数 1 是资源,在 /web/htdocs4/wallartdecorhu/home/www/system/library/cache/file.php 中给出的布尔值第 30 行警告:filesize(): stat failed for /web/htdocs4/wallartdecorhu/home/www/system/storage/cache/cache.store.1604651378 in /web/htdocs4/wallartdecorhu/home/www/system/library/cache/第 32 行的 file.php 警告:fread() 期望参数 1 是资源,在第 32 行的 /web/htdocs4/wallartdecorhu/home/www/system/library/cache/file.php 中给出的布尔值警告:fread() 期望参数 1作为资源,布尔值在 /web/htdocs4/wallartdecorhu/home/www/system/library/cache/file.php 中的第 34 行警告:fclose() 期望参数 1 是资源,布尔值在 /web/htdocs4/wallartdecorhu 中给出/home/www/system/library/cache/fi le.php 在第 36 行

【问题讨论】:

  • 您使用的是哪个版本的 Opencart 3
  • 3.0.2.0版本

标签: opencart


【解决方案1】:

保留system/library/cache/file.php 的备份,然后从https://github.com/opencart/opencart/blob/master/upload/system/library/cache/file.php 下载system/library/cache/file.php 并替换旧的。

【讨论】:

  • 如果您的问题得到解决,请接受答案作为解决方案
  • 您还有什么建议?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-07-17
  • 2023-01-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-11-30
相关资源
最近更新 更多