Page 1 of 1

[Solved] fatal error creating a page with diacritic title

Posted: Fri Dec 25, 2015 10:30 pm
by Franck
How to reproduce: Try to create a page with a diacritic character either in the title or the menu text. Validate leads to a fatal error:

Code: Select all

PHP Fatal error:  Maximum execution time of 30 seconds exceeded in .../lib/misc.functions.php on line 806
Same thing happens when trying to switch WYSIWYG off in the options tab of the edition page, when a diacritic character is present in title or menu text.

No page created, blank page in the admin. Adding diacritics in title & menu text after the creation of the page is ok.

CMSMS V2.1.1 / PHP 5.6.10 / local install.

PS: Any chance to see a real answer to this post? http://forum.cmsmadesimple.org/viewtopi ... 19&t=73930
A beta release would have nailed it right away.

Re: [V2.1.1] fatal error creating a page with diacritic titl

Posted: Fri Dec 25, 2015 11:02 pm
by archeo
I confirm with 2.1 version. No error message but a blanck page. CMSMS is now unusable in French.

Re: [V2.1.1] fatal error creating a page with diacritic titl

Posted: Fri Dec 25, 2015 11:04 pm
by Franck
archeo wrote:CMSMS is now unusable in French.
To be precise, in french and other languages using diacritics, so many of them.

Re: [V2.1.1] fatal error creating a page with diacritic titl

Posted: Sat Dec 26, 2015 9:57 am
by Franck
It seems it doesn't occur on all installations. I'm investigating to find out what could be the problem (a third party module, maybe?).

Edit: bug under MAMP on v2.1.1, ok on v2.1. Ok on a 2.1.1 LAMP.

Re: [V2.1.1] fatal error creating a page with diacritic titl

Posted: Sat Dec 26, 2015 10:01 am
by jce76350
test on last SVN rev 10362
(It would be great if everyone could perform tests with the latest snapshot)
Confirmed only on Windows with WAMP when I use a new page
with title or the menu text = éssai

Fatal error: Maximum execution time of 120 seconds exceeded in ....\lib\classes\class.CmsLangOperations.php on line 177
Call Stack
# Time Memory Function Location
1 0.0000 169360 {main}( ) ...\moduleinterface.php:0
2 0.5469 3743544 CMSModule->DoActionBase( ) ...\moduleinterface.php:76
3 0.5469 3745512 CMSModule->DoAction( ) ...\class.CMSModule.php:1459
4 0.5469 3811320 include( 'F:\Sites\Test\temp2\modules\CMSContentManager\action.admin_editcontent.php' ) ...\class.CMSModule.php:1392
5 0.6875 5241616 Content->FillParams( ) ...\action.admin_editcontent.php:159
6 2.0312 7392360 ContentBase->FillParams( ) ...\Content.inc.php:172
7 2.0469 7395256 ContentBase->SetAlias( ) ...\class.ContentBase.php:1765
8 120.0000 7395712 ContentOperations->CheckAliasError( ) ...\class.ContentBase.php:1015
9 120.0000 7395888 lang( ) ...\class.contentoperations.inc.php:1002
10 120.0000 7396112 CmsLangOperations::lang( ) ...\translation.functions.php:108
11 120.0000 7396328 CmsLangOperations::lang_from_realm( ) ...\class.CmsLangOperations.php:233

I think this is an alias problem ;)

Re: [V2.1.1] fatal error creating a page with diacritic titl

Posted: Sat Dec 26, 2015 6:30 pm
by archeo
with 2.1 I have created a page with "à bientôt" in the title area but with a_bientot in alias area like that all works fine.

Re: [V2.1.1] fatal error creating a page with diacritic titl

Posted: Fri Feb 05, 2016 5:36 pm
by jce76350
UP the bug is still existing

Re: [V2.1.1] fatal error creating a page with diacritic titl

Posted: Fri Feb 05, 2016 5:45 pm
by calguy1000
Just tested this on my install.... and had no issues.

If it's a MAMP/Wamp issue I have no way of reproducing it, therefore no way of investigating it.

Re: [V2.1.1] fatal error creating a page with diacritic titl

Posted: Fri Feb 05, 2016 9:46 pm
by jce76350
I have tested on WAMP
see above my post dated on 26 Dec 2015, 12:01

On French forum We have a few report about WAMP and MAMP
this is an alias problem with the accents in French ;) only a new page
when editing the page with an alias with accents: all is OK

[EDIT]
See the bug http://dev.cmsmadesimple.org/bug/view/10874

Re: [V2.1.1] fatal error creating a page with diacritic titl

Posted: Sat Feb 06, 2016 11:57 am
by jce76350
as Jeff said

xxxxxxxxxxx

I test on WAMP php5.4.45 + CMSms 2.1.2
1- test Page : title éssaiés => alias éssaiés and web page OK
2- test Page : title à propos => alias à-propos and web page OK

Other french user on WAMP have the same results
EDIT OK also on MAMP

Sorry, posting code hacks is not allowed
It is not a hack But a important correction !

Re: [Soved] fatal error creating a page with diacritic title

Posted: Tue Feb 09, 2016 11:22 am
by jce76350
Solved in rev SVN Révision 10435