- Posts: 36
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- ERROR - Warning: explode() expects parameter 2 to be string, array given in /home/fitzlawy/public_html/components/com_k2/helpers/route.php on line 73
ERROR - Warning: explode() expects parameter 2 to be string, array given in /home/fitzlawy/public_html/components/com_k2/helpers/route.php on line 73
- Scott Tuchman
- Topic Author
- Offline
- Junior Member
Less
More
14 years 2 months ago #85181
by Scott Tuchman
ERROR - Warning: explode() expects parameter 2 to be string, array given in /home/fitzlawy/public_html/components/com_k2/helpers/route.php on line 73 was created by Scott Tuchman
I just installed the RT Somaxion which is K2 compatible and the latest K2 2.3 and now on the K2 user page I have the following two errorsWarning: explode() expects parameter 2 to be string, array given
in /home/fitzlawy/public_html/components/com_k2/helpers/route.php
on line 73
Warning: Invalid argument supplied for foreach() in /home/fitzlawy/public_html/components/com_k2/helpers/route.php
on line 74Any thoughts on how to resolve this?
in /home/fitzlawy/public_html/components/com_k2/helpers/route.php
on line 73
Warning: Invalid argument supplied for foreach() in /home/fitzlawy/public_html/components/com_k2/helpers/route.php
on line 74Any thoughts on how to resolve this?
Please Log in or Create an account to join the conversation.
- Chris Yates
- Offline
- Senior Member
Less
More
- Posts: 62
14 years 2 months ago #85182
by Chris Yates
Replied by Chris Yates on topic ERROR - Warning: explode() expects parameter 2 to be string, array given in /home/fitzlawy/public_html/components/com_k2/helpers/route.php on line 73
Scott,
See my discussion elsewhere.
This seems to be a php versioning issue and it also occurs when using the k2_content module.
If you're developing on a localhost like XAMPP then the quick fix is to drop XAMPP back to version 1.7.2 (as I did) and it will go away.
Best to make sure your live site server is running this earlier version of Apache etc etc before transfering though, since this error will likely come back if not fixed by devs soon.
Also best that you report bugs in the correct forum to ensure they're noticed.
Be Well,
CHRIS
See my discussion elsewhere.
This seems to be a php versioning issue and it also occurs when using the k2_content module.
If you're developing on a localhost like XAMPP then the quick fix is to drop XAMPP back to version 1.7.2 (as I did) and it will go away.
Best to make sure your live site server is running this earlier version of Apache etc etc before transfering though, since this error will likely come back if not fixed by devs soon.
Also best that you report bugs in the correct forum to ensure they're noticed.
Be Well,
CHRIS
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 2 months ago #85183
by william white
Replied by william white on topic ERROR - Warning: explode() expects parameter 2 to be string, array given in /home/fitzlawy/public_html/components/com_k2/helpers/route.php on line 73
see
community.getk2.org/forum/topics/v-23-k2content-bug for a quick fix
Add this to your k2 paramaters where sef replacements say Array
Å |S, Å’|O, Ž|Z, Å¡|s, Å“|oe, ž|z, Ÿ|Y, Â¥|Y, µ|u, À|A, Ã�|A, Â|A, Ã|A, Ä|A, Ã…|A, Æ|A, Ç|C, È|E, É|E, Ê|E, Ë|E, ÃŒ|I, Ã�|I, ÃŽ|I, Ã�|I, Ã�|D, Ñ|N, Ã’|O, Ó|O, Ô|O, Õ|O, Ö|O, Ø|O, Ù|U, Ú|U, Û|U, Ãœ|U, Ã�|Y, ß|s, à |a, á|a, â|a, ã|a, ä|a, Ã¥|a, æ|a, ç|c, è|e, é|e, ê|e, ë|e, ì|i, Ã|i, î|i, ï|i, ð|o, ñ|n, ò|o, ó|o, ô|o, õ|o, ö|o, ø|o, ù|u, ú|u, û|u, ü|u, ý|y, ÿ|y, ß|ss
community.getk2.org/forum/topics/v-23-k2content-bug for a quick fix
Add this to your k2 paramaters where sef replacements say Array
Å |S, Å’|O, Ž|Z, Å¡|s, Å“|oe, ž|z, Ÿ|Y, Â¥|Y, µ|u, À|A, Ã�|A, Â|A, Ã|A, Ä|A, Ã…|A, Æ|A, Ç|C, È|E, É|E, Ê|E, Ë|E, ÃŒ|I, Ã�|I, ÃŽ|I, Ã�|I, Ã�|D, Ñ|N, Ã’|O, Ó|O, Ô|O, Õ|O, Ö|O, Ø|O, Ù|U, Ú|U, Û|U, Ãœ|U, Ã�|Y, ß|s, à |a, á|a, â|a, ã|a, ä|a, Ã¥|a, æ|a, ç|c, è|e, é|e, ê|e, ë|e, ì|i, Ã|i, î|i, ï|i, ð|o, ñ|n, ò|o, ó|o, ô|o, õ|o, ö|o, ø|o, ù|u, ú|u, û|u, ü|u, ý|y, ÿ|y, ß|ss
Please Log in or Create an account to join the conversation.
- Scott Tuchman
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
14 years 2 months ago #85184
by Scott Tuchman
Replied by Scott Tuchman on topic ERROR - Warning: explode() expects parameter 2 to be string, array given in /home/fitzlawy/public_html/components/com_k2/helpers/route.php on line 73
I'm confused by your solution...First, this is not a local XAMPP install, this is a live server. Second, where are the K2 parameters located, in what file? Is it the com_k2.php located in the sef_ext folder? If so, can you be more specific in which exact line to add and/or replace.
Sorry, not all of us are master php coders.
Thanks
William White said:see community.getk2.org/forum/topics/v-23-k2content-bug for a quick fix
Add this to your k2 paramaters where sef replacements say Array
Å |S, Å’|O, Ž|Z, Å¡|s, Å“|oe, ž|z, Ÿ|Y, Â¥|Y, µ|u, À|A, Ã�|A, Â|A, Ã|A, Ä|A, Ã…|A, Æ|A, Ç|C, È|E, É|E, Ê|E, Ë|E, ÃŒ|I, Ã�|I, ÃŽ|I, Ã�|I, Ã�|D, Ñ|N, Ã’|O, Ó|O, Ô|O, Õ|O, Ö|O, Ø|O, Ù|U, Ú|U, Û|U, Ãœ|U, Ã�|Y, ß|s, à |a, á|a, â|a, ã|a, ä|a, Ã¥|a, æ|a, ç|c, è|e, é|e, ê|e, ë|e, ì|i, Ã|i, î|i, ï|i, ð|o, ñ|n, ò|o, ó|o, ô|o, õ|o, ö|o, ø|o, ù|u, ú|u, û|u, ü|u, ý|y, ÿ|y, ß|ss
Sorry, not all of us are master php coders.
Thanks
William White said:see community.getk2.org/forum/topics/v-23-k2content-bug for a quick fix
Add this to your k2 paramaters where sef replacements say Array
Å |S, Å’|O, Ž|Z, Å¡|s, Å“|oe, ž|z, Ÿ|Y, Â¥|Y, µ|u, À|A, Ã�|A, Â|A, Ã|A, Ä|A, Ã…|A, Æ|A, Ç|C, È|E, É|E, Ê|E, Ë|E, ÃŒ|I, Ã�|I, ÃŽ|I, Ã�|I, Ã�|D, Ñ|N, Ã’|O, Ó|O, Ô|O, Õ|O, Ö|O, Ø|O, Ù|U, Ú|U, Û|U, Ãœ|U, Ã�|Y, ß|s, à |a, á|a, â|a, ã|a, ä|a, Ã¥|a, æ|a, ç|c, è|e, é|e, ê|e, ë|e, ì|i, Ã|i, î|i, ï|i, ð|o, ñ|n, ò|o, ó|o, ô|o, õ|o, ö|o, ø|o, ù|u, ú|u, û|u, ü|u, ý|y, ÿ|y, ß|ss
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 2 months ago #85185
by william white
Replied by william white on topic ERROR - Warning: explode() expects parameter 2 to be string, array given in /home/fitzlawy/public_html/components/com_k2/helpers/route.php on line 73
Go to Components - K2
at the top right you will see paramaters
scroll down to the sef replacements box
replace "array" with below
Å |S, Å’|O, Ž|Z, Å¡|s, Å“|oe, ž|z, Ÿ|Y, Â¥|Y, µ|u, À|A, Ã�|A, Â|A, Ã|A, Ä|A, Ã…|A, Æ|A, Ç|C, È|E, É|E, Ê|E, Ë|E, ÃŒ|I, Ã�|I, ÃŽ|I, Ã�|I, Ã�|D, Ñ|N, Ã’|O, Ó|O, Ô|O, Õ|O, Ö|O, Ø|O, Ù|U, Ú|U, Û|U, Ãœ|U, Ã�|Y, ß|s, à |a, á|a, â|a, ã|a, ä|a, Ã¥|a, æ|a, ç|c, è|e, é|e, ê|e, ë|e, ì|i, Ã|i, î|i, ï|i, ð|o, ñ|n, ò|o, ó|o, ô|o, õ|o, ö|o, ø|o, ù|u, ú|u, û|u, ü|u, ý|y, ÿ|y, ß|ss
Sorry for the confusion, but im guessing that in 2.3 "array" was used where the above text was to go because this fixes the issue. It doesnt matter if your on localhost or live site the paramaters will be the same.
Scott Tuchman said:I'm confused by your solution...First, this is not a local XAMPP install, this is a live server. Second, where are the K2 parameters located, in what file? Is it the com_k2.php located in the sef_ext folder? If so, can you be more specific in which exact line to add and/or replace.
Sorry, not all of us are master php coders.
Thanks
William White said:see community.getk2.org/forum/topics/v-23-k2content-bug for a quick fix
Add this to your k2 paramaters where sef replacements say Array
Å |S, Å’|O, Ž|Z, Å¡|s, Å“|oe, ž|z, Ÿ|Y, Â¥|Y, µ|u, À|A, Ã�|A, Â|A, Ã|A, Ä|A, Ã…|A, Æ|A, Ç|C, È|E, É|E, Ê|E, Ë|E, ÃŒ|I, Ã�|I, ÃŽ|I, Ã�|I, Ã�|D, Ñ|N, Ã’|O, Ó|O, Ô|O, Õ|O, Ö|O, Ø|O, Ù|U, Ú|U, Û|U, Ãœ|U, Ã�|Y, ß|s, à |a, á|a, â|a, ã|a, ä|a, Ã¥|a, æ|a, ç|c, è|e, é|e, ê|e, ë|e, ì|i, Ã|i, î|i, ï|i, ð|o, ñ|n, ò|o, ó|o, ô|o, õ|o, ö|o, ø|o, ù|u, ú|u, û|u, ü|u, ý|y, ÿ|y, ß|ss
at the top right you will see paramaters
scroll down to the sef replacements box
replace "array" with below
Å |S, Å’|O, Ž|Z, Å¡|s, Å“|oe, ž|z, Ÿ|Y, Â¥|Y, µ|u, À|A, Ã�|A, Â|A, Ã|A, Ä|A, Ã…|A, Æ|A, Ç|C, È|E, É|E, Ê|E, Ë|E, ÃŒ|I, Ã�|I, ÃŽ|I, Ã�|I, Ã�|D, Ñ|N, Ã’|O, Ó|O, Ô|O, Õ|O, Ö|O, Ø|O, Ù|U, Ú|U, Û|U, Ãœ|U, Ã�|Y, ß|s, à |a, á|a, â|a, ã|a, ä|a, Ã¥|a, æ|a, ç|c, è|e, é|e, ê|e, ë|e, ì|i, Ã|i, î|i, ï|i, ð|o, ñ|n, ò|o, ó|o, ô|o, õ|o, ö|o, ø|o, ù|u, ú|u, û|u, ü|u, ý|y, ÿ|y, ß|ss
Sorry for the confusion, but im guessing that in 2.3 "array" was used where the above text was to go because this fixes the issue. It doesnt matter if your on localhost or live site the paramaters will be the same.
Scott Tuchman said:I'm confused by your solution...First, this is not a local XAMPP install, this is a live server. Second, where are the K2 parameters located, in what file? Is it the com_k2.php located in the sef_ext folder? If so, can you be more specific in which exact line to add and/or replace.
Sorry, not all of us are master php coders.
Thanks
William White said:see community.getk2.org/forum/topics/v-23-k2content-bug for a quick fix
Add this to your k2 paramaters where sef replacements say Array
Å |S, Å’|O, Ž|Z, Å¡|s, Å“|oe, ž|z, Ÿ|Y, Â¥|Y, µ|u, À|A, Ã�|A, Â|A, Ã|A, Ä|A, Ã…|A, Æ|A, Ç|C, È|E, É|E, Ê|E, Ë|E, ÃŒ|I, Ã�|I, ÃŽ|I, Ã�|I, Ã�|D, Ñ|N, Ã’|O, Ó|O, Ô|O, Õ|O, Ö|O, Ø|O, Ù|U, Ú|U, Û|U, Ãœ|U, Ã�|Y, ß|s, à |a, á|a, â|a, ã|a, ä|a, Ã¥|a, æ|a, ç|c, è|e, é|e, ê|e, ë|e, ì|i, Ã|i, î|i, ï|i, ð|o, ñ|n, ò|o, ó|o, ô|o, õ|o, ö|o, ø|o, ù|u, ú|u, û|u, ü|u, ý|y, ÿ|y, ß|ss
Please Log in or Create an account to join the conversation.
- Kevin Bates
- Offline
- New Member
Less
More
- Posts: 1
14 years 1 month ago #85186
by Kevin Bates
Replied by Kevin Bates on topic ERROR - Warning: explode() expects parameter 2 to be string, array given in /home/fitzlawy/public_html/components/com_k2/helpers/route.php on line 73
I hate to ask this question but for the sake of my own education - why does this array look like gibberish? Is the array encrypted? If I paste the gibberish as is - will it translate correctly? Is my browser utf-8 mis-interpreting the characters?
If any one could help me understand this better, I would be very grateful.
Thanks!
Å |S, Å’|O, Ž|Z, Å¡|s, Å“|oe, ž|z, Ÿ|Y, Â¥|Y, µ|u, À|A, Ã�|A, Â|A, Ã|A, Ä|A, Ã…|A, Æ|A, Ç|C, È|E, É|E, Ê|E, Ë|E, ÃŒ|I, Ã�|I, ÃŽ|I, Ã�|I, Ã�|D, Ñ|N, Ã’|O, Ó|O, Ô|O, Õ|O, Ö|O, Ø|O, Ù|U, Ú|U, Û|U, Ãœ|U, Ã�|Y, ß|s, à |a, á|a, â|a, ã|a, ä|a, Ã¥|a, æ|a, ç|c, è|e, é|e, ê|e, ë|e, ì|i, Ã|i, î|i, ï|i, ð|o, ñ|n, ò|o, ó|o, ô|o, õ|o, ö|o, ø|o, ù|u, ú|u, û|u, ü|u, ý|y, ÿ|y, ß|ss
If any one could help me understand this better, I would be very grateful.
Thanks!
Å |S, Å’|O, Ž|Z, Å¡|s, Å“|oe, ž|z, Ÿ|Y, Â¥|Y, µ|u, À|A, Ã�|A, Â|A, Ã|A, Ä|A, Ã…|A, Æ|A, Ç|C, È|E, É|E, Ê|E, Ë|E, ÃŒ|I, Ã�|I, ÃŽ|I, Ã�|I, Ã�|D, Ñ|N, Ã’|O, Ó|O, Ô|O, Õ|O, Ö|O, Ø|O, Ù|U, Ú|U, Û|U, Ãœ|U, Ã�|Y, ß|s, à |a, á|a, â|a, ã|a, ä|a, Ã¥|a, æ|a, ç|c, è|e, é|e, ê|e, ë|e, ì|i, Ã|i, î|i, ï|i, ð|o, ñ|n, ò|o, ó|o, ô|o, õ|o, ö|o, ø|o, ù|u, ú|u, û|u, ü|u, ý|y, ÿ|y, ß|ss
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 1 month ago #85187
by william white
Replied by william white on topic ERROR - Warning: explode() expects parameter 2 to be string, array given in /home/fitzlawy/public_html/components/com_k2/helpers/route.php on line 73
They are sef url replacements, i guess one symbol is substitured with the other for browzer fiendleiness.
But,
you can also resolve this problem by simply opening the k2 paramaters after installation and clicking save
But,
you can also resolve this problem by simply opening the k2 paramaters after installation and clicking save
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6213
14 years 1 month ago #85188
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic ERROR - Warning: explode() expects parameter 2 to be string, array given in /home/fitzlawy/public_html/components/com_k2/helpers/route.php on line 73
"you can also resolve this problem by simply opening the k2 paramaters after installation and clicking save"
That is the solution as William mentioned. In the coming 2.4 we're muting this warning just in case...
That is the solution as William mentioned. In the coming 2.4 we're muting this warning just in case...
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- ERROR - Warning: explode() expects parameter 2 to be string, array given in /home/fitzlawy/public_html/components/com_k2/helpers/route.php on line 73