【问题标题】:d13slideshow for WordPress and "URL file-access is disabled"d13slideshow for WordPress 和“URL 文件访问被禁用”
【发布时间】:2010-05-05 20:24:15
【问题描述】:

我正在尝试使用 WordPress 3.0 beta 1(单用户)

不幸的是,我遇到了 d13slideshow 的问题。 我将插件配置为显示一个类别中的最新 5 个,将 <?php d13slideshow(); ?> 添加到 home.php,但它被炸毁了:

function.getimagesize: URL file-access is disabled in the server configuration in /<snip>/wp-content/plugins/d13slideshow/d13slideshow.php on line 538 Warning: getimagesize(http://<snip>/wp-content/uploads/2010/04/featured-2-580x386.jpg) function.getimagesize: failed to open stream: no suitable wrapper could be found in /<snip>/wp-content/plugins/d13slideshow/d13slideshow.php on line 538

这是 php 设置的问题,还是我可以使用插件或模板文件中的函数调用来使其工作?

http://wordpress.org/extend/plugins/d13slideshow/

【问题讨论】:

  • 以前是否使用过早期版本的 WP?
  • 对不起,我不知道。我们以前使用过动态内容库,但需要对最终用户更方便的东西。

标签: php wordpress


【解决方案1】:

这似乎是一个配置的东西...你将不得不编辑你的 php.ini 并将 allow_url_include 选项从 Off 更改为 On。例如

# nano /etc/php5/apache2/php.ini
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
allow_url_include = On

然后,你将不得不重新启动 apache:

# /etc/init.d/apache2 restart

您必须为您的服务器使用正确的路径;)

告诉我这是否有效...

【讨论】:

  • 这就是问题所在,我想要一个可以跨不同php配置重用的解决方案。
【解决方案2】:

由于主机限制,您可能无法访问您的 php.ini 文件。要求您托管或检查该插件的更新。

【讨论】:

    猜你喜欢
    • 2012-04-28
    • 1970-01-01
    • 2011-03-23
    • 1970-01-01
    • 2016-08-28
    • 2020-09-18
    • 1970-01-01
    • 1970-01-01
    • 2016-03-25
    相关资源
    最近更新 更多