Youjoomla Support Forums (http://www.youjoomla.com/joomla_support/index.php)
-   YouGrids (http://www.youjoomla.com/joomla_support/forumdisplay.php?f=171)
-   -   [SOLVED] A Warning in YouGrids for J 1.6 (http://www.youjoomla.com/joomla_support/showthread.php?t=7619)

mario123456 02-05-2011 04:30 AM

[SOLVED] A Warning in YouGrids for J 1.6
 
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.:D

Greets MArio

neo 02-05-2011 06:26 AM

can you advise what settings you have setup and you php version please

mario123456 02-05-2011 06:36 AM

I have Preferences leave and PHP Version is: 5.2.12-nmm2

http://img191.imageshack.us/img191/1...2h37m58s00.png

neo 02-05-2011 06:56 AM

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) ){

mario123456 02-05-2011 07:18 AM

Many Thanks,

now it works Fine.

Greets Mario


All times are GMT -4. The time now is 05:18 PM.

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