【问题标题】:Warning: require(__DIR__/cherry-framework/setup.php警告:需要(__DIR__/cherry-framework/setup.php
【发布时间】:2017-04-21 10:38:09
【问题描述】:

进入域后无法安装wordpress的错误。托管 PHP 版本为 5

警告:需要(DIR/cherry-framework/setup.php)[function.require]:无法打开流:/home/content/a/s/ 中没有这样的文件或目录c/asclaw/html/wp-content/plugins/power-builder/tm-builder-core.php 在第 42 行

致命错误:require() [function.require]: 无法打开所需的 'DIR/cherry-framework/setup.php' (include_path='.:/usr/local/php5/lib /php') 在 /home/content/a/s/c/asclaw/html/wp-content/plugins/power-builder/tm-builder-core.php 第 42 行

【问题讨论】:

  • 您的 setup.php 文件似乎丢失了
  • 应该在哪里?

标签: php wordpress


【解决方案1】:

下载 CherryFramework。将cherry-plugin.zip 文件提取到 wp-content/plugins/cherry-plugin 目录,替换现有文件。这应该可以解决问题。

【讨论】:

  • 没有cherry-plugin目录
  • 在此处创建该目录:/home/content/a/s/c/asclaw/html/wp-content/plugins/ 并在那里提取插件(CherryFramework)内容。 DIR 表示常量,我猜它是 /home/content/a/s/c/asclaw/html/wp-content/plugins/ 或 /home/content/a/s/c/asclaw/html/wp-content/plugins /power-builder/ 尝试在两个位置提取插件(如果上述方法不起作用)。
  • 我的插件目录中有cherry-data-importer、cherry-services-list、cherry-sidebars、cherry-team-members和cherry-testi
  • 这就是您收到错误的原因。那里缺少框架插件。你需要那个插件。
  • 我已经下载cherry框架,现在上传到插件目录,希望对您有所帮助。
【解决方案2】:

我遇到了同样的问题。我发现该站点在 PHP 5.3 上运行,尽管他们的 cpanel 显示服务器运行的是 5.4。

我在 .htaccess 中添加了以下内容,它使网站正常工作: AddHandler application/x-httpd-php54 .php

检查你的 PHP 版本,我确定是这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-02-21
    • 1970-01-01
    • 2016-11-03
    • 2017-11-29
    • 1970-01-01
    • 2020-01-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多