首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >WordPress的d13slideshow和"URL文件访问被禁用“

WordPress的d13slideshow和"URL文件访问被禁用“
EN

Stack Overflow用户
提问于 2010-05-06 04:24:16
回答 2查看 470关注 0票数 0

我想试试WordPress 3.0测试版1(单用户)

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

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/

EN

回答 2

Stack Overflow用户

发布于 2010-05-06 04:29:45

它看起来像是配置的东西...您必须编辑php.ini并将allow_url_include选项从Off更改为On。例如

代码语言:javascript
运行
复制
# 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:

代码语言:javascript
运行
复制
# /etc/init.d/apache2 restart

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

告诉我这是否有效..。

票数 0
EN

Stack Overflow用户

发布于 2010-05-06 04:34:07

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2776522

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档