Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 [2]   Go Down

Author Topic: Invalid argument supplied for foreach() in..  (Read 19845 times)

0 Members and 1 Guest are viewing this topic.

Sert Turk

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Invalid argument supplied for foreach() in..
« Reply #20 on: January 15, 2004, 10:41:49 pm »

No ,but I fixed it by deleting the current folder and starting over.Now everything is showing.But I got a new error when I tried to change the language to Turkish:

Parse error: parse error, expecting `')'' in /home/apollo/public_html/akgunler/lang/turkish.php on line 328
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Invalid argument supplied for foreach() in..
« Reply #21 on: January 15, 2004, 11:07:23 pm »

Hi, this was reported a few days ago, and a new turkish language file is available from the download section, or see this thread which tells you how to do a very simple fix.
http://forum.coppermine-gallery.net/index.php?topic=3011
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Sert Turk

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Invalid argument supplied for foreach() in..
« Reply #22 on: January 15, 2004, 11:18:27 pm »

Thanks a lot Casper! :P

Amazing how one small "," can make so much difference. :wink:

All fixed for now. :lol:
Logged

sarg

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
    • http://www.whitesowners-uk.com/phpBB2
Thanks
« Reply #23 on: January 27, 2004, 08:47:10 pm »

Thanks for the help lads after reading your posts I solved my foreach() problem in rainy days :wink: Keep up the good work and frendliness :D
Logged
Only for today!

Fly Fort

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
    • http://www.militaryaircraftcollection.info
Error
« Reply #24 on: March 13, 2004, 09:38:55 pm »

Hello,

I have adjusted the layout a bit move some parts
http://forum.coppermine-gallery.net/index.php?topic=4454

but now i'm receiving an error

Warning: Invalid argument supplied for foreach() in /home/military/public_html/visualdbase/themes/fiblue3d/theme.php on line 1476

and this is what is on that line :

 foreach ($info as $key => $value) $html .= sprintf($template, $key, $value);

Can someone help me???

Thanks in advance
Logged

blfarris

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Is this fix final?
« Reply #25 on: March 13, 2004, 10:57:29 pm »

I have applied the code patches as directed and it does work but only if the "show private icon to unlogged user" is yes.  Is there a fix that works with that checked no?

If I check no I can't edit the album or pictures when logged in as Administrator.

Thanks,

Brad
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Invalid argument supplied for foreach() in..
« Reply #26 on: March 14, 2004, 08:48:19 am »

Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Invalid argument supplied for foreach() in..
« Reply #27 on: March 14, 2004, 08:51:32 am »

@ flyfort, Moved this to the topic dealing with this problem.  A simple search and reading the stickies would have saved you some time.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

crazy_heart

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 6
Re: error out of the blue.
« Reply #28 on: May 16, 2004, 07:51:53 pm »

Warning: Invalid argument supplied for foreach() in /home/noono/public_html/themes/noono/theme.php on line 1100

Can someone help me figure out what this error is, it just came on one day. I dont understand why.

I get this
Parse error: parse error in /usr/www/htdocs/larissacity/album/index.php on line 468

plz help!
Logged
Shake it Sakis!!!!

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Invalid argument supplied for foreach() in..
« Reply #29 on: May 16, 2004, 08:34:23 pm »

Are you getting the 'foreach' warning?
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

mr_mustard

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 1
    • Slamhound.com
Re: Invalid argument supplied for foreach() in..
« Reply #30 on: June 27, 2004, 11:34:48 pm »

I had the same problem and this worked perfectly. I'm not sure if this is a related problem, but here goes:

As admin I don't seem to be able to add my account to any groups which will display private folders. The only way I seem to be able to view or edit those folders and their contents, is to set the "'show private icon to unlogged user' " option to equal yes, which I do not want to do.

Any help for this would be appreciated. Thanks again for the preceding fix!!
----
in the theme.php of the theme you are using, find

Code: [Select]
foreach($alb_list as $album) {
$count ++;

$params = array('{COL_WIDTH}' =>
$column_width,
'{ALBUM_TITLE}' => $album['album_title'],
'{THUMB_CELL_WIDTH}' => $thumb_cell_width,
'{ALB_LINK_TGT}' => "thumbnails.php?album=
{$album['aid']}",
'{ALB_LINK_PIC}' => $album['thumb_pic'],
'{ADMIN_MENU}' => $album['album_adm_menu'],
'{ALB_DESC}' => $album['album_desc'],
'{ALB_INFOS}' => $album['album_info'],
);

echo template_eval($album_cell, $params);

if ($count % $columns == 0 && $count < count
($alb_list)) {
echo $rows_separator;
}
}
and add before it
Code: [Select]
if (is_array($alb_list)) {and after it
Code: [Select]
}
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.025 seconds with 18 queries.