Home arrow Forum
myLANsite forum
Welcome, Guest
Please Login or Register.    Lost Password?
invalid argument (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: invalid argument
#339
erikjwells (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
invalid argument 2 Years, 4 Months ago Karma: 1  
I have searched the forum but havent found any solution to this error in english.


Warning: Invalid argument supplied for foreach() in /home/sumfun/public_html/administrator/components/com_mls_events/admin.mls_events.php on line 25

I am using mysql version 4.1.19-standard and joomla 1.0.10 and php 4.4.1



Ok.. for whatever reason this particular file (on this version of sql) stops here if the tournaments and teams components are not loaded.... loading those two modules stops the error message from showing up but you cannot add particpants to events.. you fill out all the boxes and hit save and it processes the transaction without error but doesnt load the data into the table...

I was not having this issue on another host running joomla 1.0.10 and sql 4.1.20 and php 4.4.2

any ideas?<br><br>Post edited by: erikjwells, at: 2006/07/17 05:33
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#340
moensch (Admin)
Admin
Posts: 283
graph
User Online Now Click here to see the profile of this user
Re:invalid argument 2 Years, 4 Months ago Karma: 13  
It is a minor mistake in my code. I run a loop over an array which does only exists, if you have at least one leagues plugin loaded. These are the conflicting lines:
Code:

foreach($leagues AS $league) { require_once( $mosConfig_absolute_path.&quot;/administrator/components/com_mls_tournaments/leagues/&quot;.$league-&gt;name.&quot;/admin.php&quot; ); require_once( $mosConfig_absolute_path.&quot;/administrator/components/com_mls_tournaments/leagues/&quot;.$league-&gt;name.&quot;/classes.php&quot; ); }
Change this to:
Code:

if(count(@$leagues) &gt; 0) { foreach($leagues AS $league) { require_once( $mosConfig_absolute_path.&quot;/administrator/components/com_mls_tournaments/leagues/&quot;.$league-&gt;name.&quot;/admin.php&quot; ); require_once( $mosConfig_absolute_path.&quot;/administrator/components/com_mls_tournaments/leagues/&quot;.$league-&gt;name.&quot;/classes.php&quot; ); } }
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#341
erikjwells (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:invalid argument 2 Years, 4 Months ago Karma: 1  
That works but still having a problem somewhere in the component.

The events do not list when calling the event componant from a menu item (blank query).

The participants do not list when using the participants selection on the admin.

The records are in the database (so the add record is working)

This must be another quirk for this version of sql...
and is probably a simple issue in the function to list those queries.

plz advise.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#444
JanJ (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:invalid argument 1 Year, 10 Months ago Karma: 0  
Hi, i am new to this product which looks very promising but I have the same problem.

Installed all latest versions and i am running MySQL 4.1.14.

No events in the Frontend and no Participants in the admin.

Please help.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
© 2008 myLANsite - Lanparty components for Joomla
Joomla! is Free Software released under the GNU/GPL License.