The following warnings occurred:
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message



GetSimple Support Forum
i18n and slug names - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: i18n and slug names (/showthread.php?tid=2803)



i18n and slug names - shawn_a - 2012-02-23

hmm, so I am using 3.1 with all the i18n goodness.
I am having an issue though.

All pages I have with a name with spaces in it has a slug(auto created) with underscores, naturally.

Now everything is being treated as a language.

so
I make

My Page

slug becomes
my_page

And i have a new language called
"page" all over the place.

How is this supposed to behave ?
Can I never use underscores in slugs now?
I have to avoid spaces in IDs.
And have to manually set titles now.

Just a little confused, any help appreciated.

Can this be fixed so only valid language codes are recognized as _ appends ?


i18n and slug names - mvlcek - 2012-02-23

shawn_a Wrote:hmm, so I am using 3.1 with all the i18n goodness.
I am having an issue though.

All pages I have with a name with spaces in it has a slug(auto created) with underscores, naturally.

Now everything is being treated as a language.

so I make

My Page

slug becomes
my_page

And i have a new language called
"page" all over the place.

How is this supposed to behave ?
Can I never use underscores in slugs now?
I have to avoid spaces in IDs.
And have to manually set titles now.

Just a little confused, any help appreciated.

Can this be fixed so only valid language codes are recognized as _ appends ?

The default behavior of GetSimple is to use -, not _.
Thus it should not be a problem normally.
Does your language file contain a TRANSLITERATION array which translates spaces to _?


i18n and slug names - shawn_a - 2012-02-23

hmm, this is all on my dev machine, default installs of everything.
3.1
latest of all plugins.

EDIT:
ok now I am twice as confused.
I went back and deleted the test file I just made.
test lang
slug test_lang (auto)

Recreated it and now it has dashes in it.
test lang
test-lang

I am absolutely baffled what is going on.


i18n and slug names - shawn_a - 2012-02-23

holy $@%^#&, whew.

Figured it out, what a waste of time.
I hate these kinds of bugs, they just tax you.

lol

Ok so the issue is special pages.

Special pages allowed me to create an reserved name ID field.
which creates the input named
post-id

which conflicts with guess what

page slug
post-id


I would suggest adding a prefix to special pages fields so they don't and cannot ever do this.
or conflict with custom fields from other plugins.

post-sp-fieldname would be awesome.

sigh.

EDIT:
Special pages is amazing btw.
Thanks!


i18n and slug names - mvlcek - 2012-02-23

shawn_a Wrote:Special pages allowed me to create an reserved name ID field.
which creates the input named
post-id

which conflicts with guess what

page slug
post-id

Thanks for finding this bug.
I'll fix it.