dannyboy84
Forum Replies Created
-
Forum: Plugins
In reply to: [Multisite Language Switcher] Fatal ErrorHi – I think you may have found the issue! I am using the WordPress Language plugin to make the admin panel language is english even on the other language sites and it looks like that might be defaulting the language to english in all of the sites as it seems to overwrite the Settings/General language setting.
I will follow up with the authors of that plugin to see if I can resolve.
Thanks!
Forum: Plugins
In reply to: [Multisite Language Switcher] Fatal ErrorThanks so much!
Ok, so here is the modifier:
function my_msls_blog_collection_get( $arr ) {
$arr = array();
foreach ( array( 1, 2, 3,) as $id ) {
$arr[$id] = get_blog_details( $id );
}
return $arr;
}
add_filter( ‘msls_blog_collection_construct’, ‘my_msls_blog_collection_get’ );and the IDs:
https://hillcrestlabs.com/wp-admin/network/site-info.php?id=1
https://hillcrestlabs.com/wp-admin/network/site-info.php?id=2
https://hillcrestlabs.com/wp-admin/network/site-info.php?id=3Forum: Plugins
In reply to: [Multisite Language Switcher] Fatal ErrorI’m sorry – I edited it so long ago I am not sure where to find it any more – could you point me in the right direction?
Is is plugins/editor/multisite-language-switcher/includes/MslsBlogCollection.php?
And where would I find blog IDs?
Sorry for the basic questions.
Forum: Plugins
In reply to: [Multisite Language Switcher] Fatal ErrorHi – sorry when I said ‘broken’ I meant on my site not in general!
So:
– Finished the setup – Setup is finished – as I mentioned it was working for around a year. However, now only the link to the ‘current’ language shows up on each page (i.e. US on Us site, Chinese on Chinese site, etc), so maybe something became undone in an update? Looking at the settings under Settings/General and Settings/Multisite Language Switcher everything seems to be complete. Is there a way of checking if I have completed setup?
– Modified the blog_collection – So I remember having to change something here a while ago to get the other languages to show up. I think I changed the msls_blog_collection_construct as described on this page – https://msls.co/hooks-filters-and-actions/.
Thanks, Daniel
Forum: Plugins
In reply to: [Multisite Language Switcher] Fatal ErrorYes, the plugin had been working for about 1 year. However, recently it has broken and no longer displays the other languages but I haven’t had a chance to fix it yet.
Yes – all resolved. Thanks for your help, Dennis!
Hi Dennis – yes, it would be great of you could check my installation. What info do you need from me / what’s the best way to get it to you? Thanks.
Hi – Did you manage to recreate the issue? Or did it work fine for you? Thanks!
Thanks. Let me know if you need any more info from me.
Yes, ko_KR.mo.
I just created blank language files in wp-content/languages for all of my languages. There’s no content in them so I don’t know how I would link to them?
I have:
en_US.mo
zh_CN.mo
ko_KR.moUS and CN both work, KR does not.
I finished setup of the language switcher other blogs several weeks ago, and they are working fine.
Then I created a new blog in a new language last week, and it does not work. When I first created the new blog I had the ‘incomplete’ setup prompt, but after configuring the settings and hitting update that message went away.
I only get the error message I mentioned in the new language blog. The original two languages both work fine.
Hope that helps clarify?
Thanks.
Yes, there was a notice at the top of my dashboard saying something like ‘Multisite Language Switcher Setup is incomplete. Click here to configure’, but that has gone away now.
I have just noticed that when I go to create a post, after I hit ‘publish’ this error message comes up:
Fatal error: Call to a member function get_language() on a non-object in /home/freeespa/public_html/[redacted].com/wp-content/plugins/multisite-language-switcher/includes/MslsMetaBox.php on line 144
The post still posts, but initially all you see is this error screen.
Yes, new blog has its own unique language (Korean) in the general settings.
What do you mean by saved plugin config? I have entered all the details in the options page of the new language and hit the ‘update’ button. Is there something else I should be doing to save it? Thanks.
Hi – adding that code to the functions.php of the theme I was using did not work.
So, the summary is that I have had a dual language switcher working for several weeks. I added a new blog to the multisite in a new language, completed switcher set up, but the new language does not register. So in the ‘Multisite Language Switcher Options’ panel of the menu, it still only shows the original two languages at the top, not the new language.
Do you have any thoughts on where I might have gone wrong?
Thanks!