[Solved] fatal error creating a page with diacritic title

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 257
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

[Solved] fatal error creating a page with diacritic title

Post 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.
archeo
Forum Members
Forum Members
Posts: 107
Joined: Tue Oct 21, 2014 12:47 pm
Location: Lorient (France)

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

Post by archeo »

I confirm with 2.1 version. No error message but a blanck page. CMSMS is now unusable in French.
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 257
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

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

Post by Franck »

archeo wrote:CMSMS is now unusable in French.
To be precise, in french and other languages using diacritics, so many of them.
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 257
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

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

Post 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.
Last edited by Franck on Sat Dec 26, 2015 10:19 am, edited 1 time in total.
jce76350
Beta Tester
Beta Tester
Posts: 2033
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

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

Post 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 ;)
Jean-Claude Etiemble
archeo
Forum Members
Forum Members
Posts: 107
Joined: Tue Oct 21, 2014 12:47 pm
Location: Lorient (France)

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

Post 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.
jce76350
Beta Tester
Beta Tester
Posts: 2033
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

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

Post by jce76350 »

UP the bug is still existing
Jean-Claude Etiemble
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

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

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jce76350
Beta Tester
Beta Tester
Posts: 2033
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

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

Post 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
Jean-Claude Etiemble
jce76350
Beta Tester
Beta Tester
Posts: 2033
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

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

Post 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 !
Last edited by jce76350 on Sat Feb 06, 2016 9:14 pm, edited 4 times in total.
Reason: Sorry, posting code hacks is not allowed
Jean-Claude Etiemble
jce76350
Beta Tester
Beta Tester
Posts: 2033
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

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

Post by jce76350 »

Solved in rev SVN Révision 10435
Jean-Claude Etiemble
Post Reply

Return to “CMSMS Core”