Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 05:20 am EDT

Geeklog Forums

Messed up my front page / no stories due to language


Status: offline

phpsocialclub

Forum User
Junior
Registered: 03/05/03
Posts: 30
Location:North Carolina
I was messing around with the languages setting in the new 1.5 version of GL for a site that I upgraded from 1.4.1.

Some how all of of a sudden, I do not get any news on the home page (get the no news message) and the static pages do not show up there either.

After some digging, I found that this piece of sql was responsible "AND (s.tid LIKE '%\_en'Wink "

if I comment out line 243 in index.php , my articles come back on the front page

I know that none of my topics have "_en" in the title.

How do I undo this without recreating all my topics.

I have over 4000 stories in my site, so I would prefer to just remove the language option.

thanks,

Andrew
I work for a Wilmington NC Attorney
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Yeah, we're missing a "disable" option to undo the "restore" ...

Try this:
Text Formatted Code
UPDATE gl_conf_values SET value = 'unset' WHERE name = 'language_files';
UPDATE gl_conf_values SET value = 'unset' WHERE name = 'languages';

Note that in the second line it's 'languages' (plural).

bye, Dirk
 Quote

Status: offline

phpsocialclub

Forum User
Junior
Registered: 03/05/03
Posts: 30
Location:North Carolina
excited
Dirk,

that did it,

thanks,

Andrew
I work for a Wilmington NC Attorney
 Quote

Status: offline

nicholas

Forum User
Junior
Registered: 10/20/07
Posts: 16
Hi,

I encountered the same issue of no stories displayed while testing the multilanguage in config. Took me a full day before I found this foum posting.

Is there any permanent fix for this in GL1.5 so that I can still use the multi-lang config for "languages"?

Appreciate any info.

Thanks
Nicholas
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: nicholas

Is there any permanent fix for this in GL1.5 so that I can still use the multi-lang config for "languages"?


Not sure what you mean. The multi-language support works as expected (and as it did in 1.4.1). It's only when you accidentally enable it (like above), there's no way to disable it again. We're going to address that in the next release.

Keep in mind that if you want to use the multi-language capabilities, then all your stories and topics must exist with a language suffix. If you don't have that, no stories will be displayed.

See the wiki article for details.

bye, Dirk
 Quote

Status: offline

nicholas

Forum User
Junior
Registered: 10/20/07
Posts: 16
Thanks Dirk,

Sorry I wasn't clear. Yes, I am aware of the suffix, just to explain reason why I still asked. I am currently running GL1.4.1 with multi-languages set in my config file and I could display all my stories in different languages without the language suffix. But with GL1.5, nothing shows without the suffix, hence I was hoping that stories without suffix can still show if a permissible modification allows so? There are many occasions I have multilanguages within one story/page.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: nicholas

I am currently running GL1.4.1 with multi-languages set in my config file and I could display all my stories in different languages without the language suffix. But with GL1.5, nothing shows without the suffix


Hmm, I don't think anything has really changed there. In fact, I'm wondering how it should have worked that way in 1.4.1.

You can have stories without the suffix in 1.4.1, but they will only show up in their topic, not on the index page.

bye, Dirk
 Quote

Status: offline

nicholas

Forum User
Junior
Registered: 10/20/07
Posts: 16
Thanks Dirk, I really appreciate your prompt response. GL is a good software anyway regardless.
 Quote

All times are EDT. The time is now 05:20 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content