Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

[SOLVED] A Warning in YouGrids for J 1.6

02-05-2011, 05:30 AM
# 1 (permalink)
mario123456
Hello,

I have a Warning in Joomla 1.6 : Warning: in_array() [function.in-array]: Wrong datatype for second argument in /xxx/xxxxx/xxxxxx/xxxxxxxxx/templates/yougrids/yjsgcore/yjsg_core.php on line 153


What can I do ?

Sorry for my English I am an German Men and my English is very Bad.

Greets MArio
02-05-2011, 07:36 AM
# 3 (permalink)
mario123456
I have Preferences leave and PHP Version is: 5.2.12-nmm2

02-05-2011, 07:56 AM
# 4 (permalink)
neo
sorry for the trouble and thnx for the find ,

i forgot to check if that setting is an array ,

new template is up you can reinstall over the old one , or manual fix would be
in file
yougrids/yjsgcore/yjsg_core.php line 153

Code:

if(in_array($itemid, $define_itemid) ){
change to

Code:

if( is_array( $define_itemid ) && in_array($itemid, $define_itemid) ){
02-05-2011, 08:18 AM
# 5 (permalink)
mario123456
Many Thanks,

now it works Fine.

Greets Mario
Thread Tools
Display Modes

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

Members Login

Username
Password