Find the answer to your Linux question:
Results 1 to 2 of 2
hello @LL, We have registration system and it was working on ok up till now. When someone tries to register for our event there is an error message: warning: invalid ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Posts
    32

    foreach function error


    hello @LL,


    We have registration system and it was working on ok up till now.
    When someone tries to register for our event there is an error message:


    warning: invalid argument supplied for foreach() in /home/dir1/dir2/indexReg.php on line 5400

    the code from line is:

    foreach ($classSelectionArray as $classID => $selectionStatus)


    and there is another message:

    processTemplateArray: input is not a record array


    Our php framework is hosted on webhosting company which has centos.
    Is it possible that they run some update for php services which caused
    bad interactions with "foreach" function? maybe older version of php or
    some respository of it handles this differently ?

    thanks

  2. #2
    Just Joined!
    Join Date
    Dec 2008
    Location
    Lithuania
    Posts
    12
    Well this is not a PHP support forum, but for starters, I would print_r($classSelectionArray); exit; to see what's there - that is if this is an array.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •