Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Error cron.php : Invalid argument supplied for foreach()

10 years 11 months ago
  • ewajoom's Avatar
    Topic Author
  • ewajoom
  • Offline
  • Fresh Boarder
  • Posts: 37
  • Thank you received: 1
Licenses:
JomSocial Expired

Hi,
I've got an error when accessing to index.php?option=com_community&task=cron
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/XXXXX/public_html/components/com_community/libraries/cron.php</b> on line <b>820</b><br />

$pCover = JFolder::folders($path . '/' . $folder . '/profile');
foreach ($pCover as $_pCoverId) {
...}
I've temporary added a test on $pCover :
$pCover = JFolder::folders($path . '/' . $folder . '/profile');
if($pCover) {
foreach ($pCover as $_pCoverId) {
...}}

10 years 11 months ago
Licenses:

Hi Ewajoom,

could you provide me FTP access detail. I want investigate it.

Regards,
Albert

10 years 11 months ago
  • ewajoom's Avatar
    Topic Author
  • ewajoom
  • Offline
  • Fresh Boarder
  • Posts: 37
  • Thank you received: 1
Licenses:
JomSocial Expired

Hi Albertus,

I've found why : by default, there's no folder "cover" under "images", that's why there's no folder.
I've created a cover for one test member, wich created a folder "cover", and now it's okay.

Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW