-
AuthorPosts
-
bytestor Friend
bytestor
- Join date:
- September 2007
- Posts:
- 78
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 8
- Thanked:
- 7 times in 1 posts
February 14, 2009 at 9:05 am #138125Hi,
I get the following error at the top of the template in the site.
Warning: Invalid argument supplied for foreach() in /home/content/c/a/s/folders/html/j/templates/ja_utahia_ii/ja_menus/Base.class.php on line 153
Looking for help to solve it.
Thanks.
John Wesley Brett ModeratorJohn Wesley Brett
- Join date:
- July 2013
- Posts:
- 2142
- Downloads:
- 17
- Uploads:
- 26
- Thanks:
- 175
- Thanked:
- 645 times in 426 posts
February 14, 2009 at 11:17 pm #291467This is 90% of the time usually caused by simply a bad install…and usually due to a missing file.
If you are PHP literate you might try this:
Add a check above line 153’s foreach loop, to count the number of elements in the array, and if it is zero, skip the foreach loop. An array must have elements so the array in the foreach loop cannot be empty.
Good luck.
John.bytestor Friendbytestor
- Join date:
- September 2007
- Posts:
- 78
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 8
- Thanked:
- 7 times in 1 posts
February 15, 2009 at 1:59 am #291497Well, installation wise both the joomla n the template, I followed the procedures n it installed very fine. I found this error to come up after 2 days, So on seeing the error to have occurred from the template file, I uninstalled the template from joomla admin n again installed it. Error did not chance, but surprisingly with out doing anything the error disappeared on its own.
Really I dont understand, but I guess it could be some php setting in the server to have caused the error or dont know why the error emerged n dis appeared on its own. I wish I dont get the error again.
For now I see the site to run with no error.John Wesley Brett ModeratorJohn Wesley Brett
- Join date:
- July 2013
- Posts:
- 2142
- Downloads:
- 17
- Uploads:
- 26
- Thanks:
- 175
- Thanked:
- 645 times in 426 posts
February 15, 2009 at 5:05 am #291518Great. Let us know, though, if it pops up again!
Have a great weekend.
John.bytestor Friendbytestor
- Join date:
- September 2007
- Posts:
- 78
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 8
- Thanked:
- 7 times in 1 posts
February 15, 2009 at 2:01 pm #291567Thank you very much for your support.
I strongly feel there is a bug in template that got to be fixed. Coz, I tried the same template in another server n I find the error to pop up. The one for which I posted as error in template solved on its own, happy about that but still error pops up if I use the same template in another server.
If possible I request you download the latest version of the template n install n try if you get the same error. If it occurs lets inform Joomlart to update the files.
Thanks.
bytestor Friendbytestor
- Join date:
- September 2007
- Posts:
- 78
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 8
- Thanked:
- 7 times in 1 posts
February 16, 2009 at 12:30 pm #291757Hi,
At last the error in the template is identified. Install Joomla 1.5.9 the latest as it is and then install this template Ja Utahia II and select it as default template. On doing it, you will not find any error to come up.
Then go to the menu manager and in the top menu un publish every items in it, once you do so, you will find the error
Invalid Argument ….a_menus/Base.class.php on line 153
to come up in the top of the page.
Then select at least one item to publish, then the error will disappear. I was a bit confused to find the error to come up and disappear and finally identified it.
I request Joomlart to deal with this error and update the files for us.
Thanks.
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by bytestor 15 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum