3

在我的网站中,我遇到了如下问题......

警告:getimagesize() [function.getimagesize]:在 /homepages/46/d390162509/htdocs/public_html/sugapps/wp-content/themes/grizzly-theme/base/shortcodes/image 的服务器配置中禁用 URL 文件访问.php 在第 89 行

警告:getimagesize(http://www.sugapps.com/wp-content/uploads/2012/02/2806313447_2900756f3d_b.jpg)[function.getimagesize]:无法打开流:在/homepages/46中找不到合适的包装器/d390162509/htdocs/public_html/sugapps/wp-content/themes/grizzly-theme/base/shortcodes/image.php 在第 89 行

我正在尝试各种方式,但我没有成功。它也在本地工作,但在服务器中寻找问题。我也没有 php.ini 文件,因为它是剪切提升的....

如果有人可以解决这个问题或给我任何很好的信息来解决这个问题,我会很高兴的。如果你想在我的站点看到这个问题,你可以访问:http ://www.sugapps.com/

4

3 回答 3

1

当allow_url_fopen 和/或allow_url_include 设置为OFF 时,我理解此错误与php.ini 文件中的设置有关。如果您可以在本地托管文件,那将是最好的。假设文件路径是一个主题,那应该不是问题。祝你好运!

于 2013-08-20T15:51:20.453 回答
0

This means that the hosting company you are using has disabled this feature in php, you can not do it. I suspect it's turned off specifically for remote files since many hosts turn that off.

于 2012-02-25T20:07:28.917 回答
0

我遇到了同样的问题。我将咨询我的第 3 方网络提供商,但我也找到了解决办法。也就是说,所有 *.php 文件都在同一个目录中。

于 2015-02-16T16:46:05.487 回答