Statistics Module and Join PHP Warning

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Statistics Module and Join PHP Warning

Post by JohnnyB »

Is anyone else getting an error similar to
PHP Warning: join(): Invalid arguments passed in /public_html/modules/Statistics/Statistics.module.php on line 471
in their error logs?

CMSMS 1.11.9
Statistics 1.1.3
PHP 5.3.28

Maybe it is because of this bug report wrt building the keywords_array: http://dev.cmsmadesimple.org/bug/view/9425
(I don't want to file a duplicate bug report....)
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Statistics Module and Join PHP Warning

Post by paulbaker »

Yes. Loads of them.
[23-Jan-2014 23:21:06 Europe/London] PHP Warning: join(): Invalid arguments passed in /home/stedward/public_html/modules/Statistics/Statistics.module.php on line 541
CMSMS 1.11.9 (happened with 1.11.7 too)
Statistics 1.1.3 *
PHP 5.4.21

* My Statistics module has this modification so that page name shows up:
http://dev.cmsmadesimple.org/bug/view/8512

Did you try the suggested resolution you linked to?
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Statistics Module and Join PHP Warning

Post by JohnnyB »

I applied a similar fix I found here: http://dev.cmsmadesimple.org/bug/view/9309

I think that worked... not sure yet.
Did you try the suggested resolution you linked to?
I did and still found join warnings today. But, I just realized that the join statement is reversed, right?

Shouldn't line 476 (479 now for mine):

Code: Select all

$statkeywords=$this->ReplaceKeywords(join($keyword_array, " "));
Be written as:

Code: Select all

$statkeywords=$this->ReplaceKeywords(join(" ", $keyword_array));
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Statistics Module and Join PHP Warning

Post by paulbaker »

I agree, from http://uk1.php.net/manual/en/function.implode.php I would say your second line is correct.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Statistics Module and Join PHP Warning

Post by JohnnyB »

paulbaker wrote:I agree, from http://uk1.php.net/manual/en/function.implode.php I would say your second line is correct.
Ahh, I'll file a bug report.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Statistics Module and Join PHP Warning

Post by JohnnyB »

I made the change and haven't received a new warning in the error log.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Post Reply

Return to “Modules/Add-Ons”