1
madDan
today and yesterday under 2.5.6
  • 2014/2/13 21:36

  • madDan

  • Not too shy to talk

  • Posts: 105

  • Since: 2010/1/6 1


Hi when using 2.5.6 a clean build locally under xammp I have an odd issue with newbb 4.33RC namely missing vowels

Last Post
Rock 
and a hard place!    
Smart Roadster8118
Y
strday 20:48    
jonsteed


note the odd spelling of Yesterday --> it does not like e

I have tried to update textsanitizer to the latest version I can find on SF to no avail as this is throwing this out in debug

unknownpreg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in file /class/module.textsanitizer.php line 594


on multiple lines


I have scoured for the named day functions and am unable to locate thus far.

I have gone through the collation settings in the tables and made sure they are all set to UTF8 general ci


Any pointers folks.

Cheers



Mark

2
Mamba
Re: today and yesterday under 2.5.6
  • 2014/2/14 4:27

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


The preg_replace is a notice from PHP 5.5, and it is fixed in the upcoming XOOPS 2.5.7. If you want to test it, you can download it from XOOPS SVN

The "Ystrday could be just a misspelled word in your language file, or wrong encoding. Check your language files for that...

BTW - try this version of NewBB from Irmtfan. Click on the "Download snapshot" link
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

3
madDan
Re: today and yesterday under 2.5.6
  • 2014/2/14 10:59

  • madDan

  • Not too shy to talk

  • Posts: 105

  • Since: 2010/1/6 1


Cheers mamba

The version of newbb was irmtfan

When I copy the word Ystrday it shows as Y□st□rday.

I will try the 2.5.7 over the weekend.


4
madDan
Re: today and yesterday under 2.5.6
  • 2014/2/14 17:54

  • madDan

  • Not too shy to talk

  • Posts: 105

  • Since: 2010/1/6 1


Hmm the errors have gone under 2.5.7 beta 1 but the odd yesterday persists! this is on clean installs of the above

the only reference to the word yesterday is in local under language.

// !!IMPORTANT!! insert '' before any char among reserved chars: "a","A","B","c","d","D","F","g","G","h","H","i","I","j","l","L","m","M","n","O","r","s","S","t","T","U","w","W","Y","y","z","Z"    
// insert double '' before 't','r','n'
define("_TODAY","Today G:i");
define("_YESTERDAY","Yes\te\rday G:i");
define("_MONTHDAY","n/j G:i");
define("_YEARMONTHDAY","Y/n/j G:i");


More digging I gues?


5
madDan
Re: today and yesterday under 2.5.6
  • 2014/2/15 18:31

  • madDan

  • Not too shy to talk

  • Posts: 105

  • Since: 2010/1/6 1


Hi I had to double up the \ for e as well


it doesn't show correctly if I put up the code here in the forum

that was in locale.php lines 27-34 in the english language folder.


Regards

Mark

6
Mamba
Re: today and yesterday under 2.5.6
  • 2014/2/17 1:33

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Thanks for the update!

I'll test it, and eventually add it to 2.5.7
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

7
Mamba
Re: today and yesterday under 2.5.6
  • 2014/2/17 10:25

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


OK, the mystery is solved. PHP developers added "e" to the list of Escaped characters in PHP 5.4

Very nice catch! Thank you!

It's been now fixed in SVN
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

Login

Who's Online

464 user(s) are online (387 user(s) are browsing Support Forums)


Members: 0


Guests: 464


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits