1

In using jomsocial 2.8.4 and Joomla 2.5.9 we tried uploading an image to his feed using the "multifunction" status box. Which then crashed the site. After investigating it turns out that my root folder /public_html/ permissions were changed to 777 when this error looped and changed permissions from 755 so by the security set in my cPanel, it threw the 500 error..once fixing the permission issue my site was back online but the status he was trying to upload the picture now displays.

The error from the error log before it crashes is:

Warning: Invalid argument supplied for foreach() in /home/gamer/public_html/components/com_community/libraries/photos.php on line 11

Any fixes for this?

4

2 回答 2

0

我自己的 joomla 组件也有同样的问题。

  • 它不依赖于图像大小。同一个图像文件有时会正确上传,有时会将 /public_html/ 的权限更改为 777。
  • 我只尝试过 jpg 文件。

看起来它是 Joomla 错误,而不是 Joomsocial。

更新: 问题出在 JFile::delete();

// somehow set 777 rights to the /public_html/ directory
JFile::delete(JPATH_SITE.$table->img_orig);

//solution
if (JFile::exists(JPATH_SITE.$table->img_orig))
  JFile::delete(JPATH_SITE.$table->img_orig);
于 2014-02-14T09:16:50.060 回答
0

好的,所以将您上传的图像更改为 .png 以查看它是否因为扩展而没有加载,接下来您的图像有多大。这也可能导致上传错误,还要检查以使您的执行时间设置为高于 8mb 就像 32mb 一样,您可以在 php.ini 中更改它

您也可以卸载 jomsocial 并重新安装它,还可以检查后端媒体下的 jomsocial 设置,以确保这些设置符合您的需要。

于 2013-04-13T17:16:17.347 回答