Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: Error "Warning: Invalid argument supplied for foreach() in
Pages: [1]   Go Down
  Print  
Author Topic: Error "Warning: Invalid argument supplied for foreach() in  (Read 2266 times)
0 Members and 1 Guest are viewing this topic.
ikke
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« on: April 11, 2012, 14:57:42 »

Hey!

I try to install JComments on my (migrate) Joomla 2.5. Here i get the following two Messages:

Warning: Invalid argument supplied for foreach() in /users/USER/www/administrator/components/com_jcomments/install/helpers/installer.php on line 242

Warning: Invalid argument supplied for foreach() in /users/USER/www/administrator/components/com_jcomments/install/helpers/installer.php on line 288

What´s wrong?
Logged
ABTOP
Sr. Member
****

Karma: 17
Offline Offline

Posts: 406



WWW
« Reply #1 on: April 11, 2012, 19:20:44 »

Exactly at what point do you get these?
Logged

No personal messages unless you are a friend or you have money for me.
le_lutin57
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« Reply #2 on: April 16, 2012, 02:30:14 »

Hi,

I have exactly the same problem (joomla 2.5.4)

1. I install the component and get this message. see attached file

Thank you for help...


* jcomments.PNG (34.78 KB, 883x374 - viewed 192 times.)
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #3 on: May 30, 2012, 15:53:14 »

Which language are you use in backend?
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
marinos
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« Reply #4 on: September 20, 2012, 17:46:06 »

Jomla 2.5.7 jcomments 2.3.0

Im getting the same problem. I installed the component twice and both times it shows me errors but also says its installed. then when I go to jcomments setting it looks like its working but when I try to save changes it says changes have been made but immediately unsaves everything.

here are the errors I got when installing

1st attempt I got

Code:
JFolder: :files: Path is not a folder. Path: /home/xxxxxxx/public_html/administrator/components/com_jcomments
JInstaller: :Install: Cannot find XML setup file
JInstaller: :Install: Cannot find XML setup file
Installing component was successful.

Warning: Invalid argument supplied for foreach() in /home/xxxxxxx/public_html/administrator/components/com_jcomments/install/helpers/installer.php on line 242

Warning: Invalid argument supplied for foreach() in /home/xxxxxxx/public_html/administrator/components/com_jcomments/install/helpers/installer.php on line 288
JComments 2.3.0 [20/02/2012]
© 2006-2012 smart (JoomlaTune.ru | JoomlaTune.com). All rights reserved!
 
  Installation process
 
Installing JComments Content plugin: OK
Installing JComments System plugin: OK
Installing JComments Search plugin: OK
Installing WYSIWYG editor plugin: OK
Installing JComments User plugin: OK
Updating JComments DB tables structure: OK
Installation completed
Next

2nd attemp to install I only got

Code:
Warning: Invalid argument supplied for foreach() in /home/xxxxxxx/public_html/administrator/components/com_jcomments/install/helpers/installer.php on line 242

Warning: Invalid argument supplied for foreach() in /home/xxxxxxx/public_html/administrator/components/com_jcomments/install/helpers/installer.php on line 288
JComments 2.3.0 [20/02/2012]
© 2006-2012 smart (JoomlaTune.ru | JoomlaTune.com). All rights reserved!
 
  Installation process
 
Installing JComments Content plugin: OK
Installing JComments System plugin: OK
Installing JComments Search plugin: OK
Installing WYSIWYG editor plugin: OK
Installing JComments User plugin: OK
Updating JComments DB tables structure: OK
Installation completed
Next


Logged
marinos
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« Reply #5 on: September 20, 2012, 19:27:12 »

ok for anyone else interested i got it working. my 2.5.7 site was originaly a 1.7 site so I think this had somthing to do with it.
Im not sure which step did it but here is what I did.

first in extension manager/discover/
click Purge Cache - then click Discover - select all and click install
You will see all the latest joomla plugins that were not included in 1.7
Go to plugin manager and enable all the plugins

Then click warnings again in extension manager.  If your getting a temporary php folder error like this
Code:
The PHP temporary directory is not set
The PHP temporary directory is the directory that PHP uses to store an uploaded file before Joomla! can access this file. Whilst the directory not being set isn't always a problem, if you are having issues with manifest files not being detected or uploaded files not being detected,

you may need to create a php.ini file in your administrator folder and put this code in it
Code:
upload_tmp_dir = /home/YOURCPANELUSERNAME/tmp
upload_max_filesize=8M

Change YOURCPANELUSERNAME with your own cpanel username
also the second line "upload_max_filesize=8M" I added because of the next error I got when I fixed the first error. You may not need to do it.

More info on inmotion support page http://www.inmotionhosting.com/support/edu/joomla-25/305-php-temporary-directory-not-set.

Then go system maintenance and do all the checkins and clean cache

Then jcomments still not working, don't bother trying to re-install over your current install it still wont work. FIRST uninstall jcomments and then re-install.

Now you should have a working jcomments component on your joomla 2.5.7 site upgraded from 1.7

hope this helps


Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: Error "Warning: Invalid argument supplied for foreach() in
 
Jump to: