Error When viewing an article

GK User
Thu Feb 10, 2011 1:06 am
Hi There,

another issue that i have here :)

when i open up any content on my site, I get the following error:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/i*******/public_html/templates/gk_penguinmail/lib/gk.framework.php on line 625

at the bottom of every page.

Any ideas?
Thanks
Ash
User avatar
Junior Boarder

GK User
Thu Feb 10, 2011 6:38 am
I have the same problem.
User avatar
Fresh Boarder

GK User
Thu Feb 10, 2011 7:53 pm
please upgrade template
http://www.gavick.com/support/updates.html?task=update&id=273
User avatar
Platinum Boarder

GK User
Fri Feb 11, 2011 11:20 am
Well, I did upgrade my template to 1.1 several times and still has the same problem,

I think I have found a bug within the code even with the new gk.framework.php, On line 601.

$excluded_categories = $this->getParam('excluded_cats', '');

this parameter is being passed to the in_array function before turning it into an array. I believe the correct syntax should be on line 601:

$excluded_categories = explode(',', $this->getParam('excluded_cats', ''));

Try it. This fix my error.
Regards
User avatar
Junior Boarder

GK User
Sat Feb 12, 2011 6:32 am
That worked perfectly.

Thanks!

Another issue that started happening:

certain articles are showing this error message on the top, above the menu:

script type="text/javascript"> $GKMenu = { height:true, width:true, duration: 250 };$GK_TMPL_URL = "http://strawberry.website-solution.net/~iluvhk55/templates/gk_penguinmail";function keepAlive() { var myAjax = new Request({method: "get", url: "index.php"}).send();} window.addEvent("domready", function(){ keepAlive.periodical(840000); });
[*][LINK=http://strawberry.website-solution.net/~iluvhk55/][/LINK][/*]

it looks like some file is missing the "<" tag somewhere.

Any tips?

Thanks!
User avatar
Junior Boarder

GK User
Sat Feb 12, 2011 6:16 pm
This one is hounting me.


Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/1/w/webtv-media/www/templates/gk_penguinmail/lib/gk.framework.php on line 626

If i link to category blog is goes away, but when linking to an single article it is there all the time.
User avatar
Junior Boarder

GK User
Sun Feb 13, 2011 3:34 am
mmyhre wrote:This one is hounting me.


Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/1/w/webtv-media/www/templates/gk_penguinmail/lib/gk.framework.php on line 626

If i link to category blog is goes away, but when linking to an single article it is there all the time.


This issue got resolved by doing the following, as posted by IT Comtech

Well, I did upgrade my template to 1.1 several times and still has the same problem,

I think I have found a bug within the code even with the new gk.framework.php, On line 601.

$excluded_categories = $this->getParam('excluded_cats', '');

this parameter is being passed to the in_array function before turning it into an array. I believe the correct syntax should be on line 601:

$excluded_categories = explode(',', $this->getParam('excluded_cats', ''));

That hsould fix it!
User avatar
Junior Boarder

GK User
Tue Mar 22, 2011 5:03 am
Thanks. That worked for me.
User avatar
Fresh Boarder


cron