Forums / Cotonti / Development / Siena Beta Testing

<<<1...567891011>>>

Bugfixing and evaluation cycle started

GHengeveld
#106 2011-01-29 00:53
Done in 1782
esclkm
#107 2011-01-29 00:55
WTF?
if you do something fast it can be not good
strreplace - it is not good replacement
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
GHengeveld
#108 2011-01-29 01:01
Improve upon it then ;)

Added 16 hours 40 minutes later:

Done some research into fastest string replacement method. sprintf would be the fastest, but isn't applicable in this case. Only strtr would be an alternative worth considering. It turns out str_replace is faster when working with arrays of words. See http://www.cznp.com/blog/3/strtr-vs-str_replace-a-battle-for-speed-and-didignity

An alternative would be to not use string replacement on the end result, but on the format, replacing textual format indicators with their numbered counterparts, and use the returned numbers as index in the array of words. This does require a few more steps, so I doubt it will be faster in the end. If speed is an issue, this might be worth a try, but I think str_replace is fast enough.
This post was edited by Koradhil (2011-01-29 17:42, 13 years ago)
Trustmaster
#109 2011-01-29 20:04
Well, if you used a different array name (e.g. $Ldate) with keys as search values and values as replacement, you could do it just with 1 line with strtr. Another thing: if $lang == 'en' then you needn't apply the replacement. And finally the biggest problem about this function is grammar. It is not any obvious for languages like English, but I'll give you a few examples of Russian translations:
  • January => январь
  • January 29 => 29 января
May the Source be with you!
GHengeveld
#110 2011-01-29 22:22
In consultation with Trustmaster we decided to use 20 predefined formats for date and time. These will be defined in the main language file so grammar can be different between languages and the formats can be overridden by plugins or templates. Aside from these formats, it will also be possible to use custom formats, although those will not be modifiable in terms of grammar. Month and day names will still be translated.

The 20 formats are defined here.
Trustmaster
#111 2011-01-30 17:46
The upgrade script now saves sorting order for existing categories (r1784).

Also fixed subforum paths during upgrade and subforum output. Though some subforum paths may still be wrong because of the bug in Genoa which puts subforums into right masterforum but wrong section, such cases are easy to fix in Admin => Forums => Categories manually after upgrade.
May the Source be with you!
pieter
#112 2011-01-30 18:19
If I want to upgrade from a beta version to a new version of the beta.

Is it possible, Do I need to start from zero?
... can we help you ...
Trustmaster
#113 2011-01-30 19:00
Normally you just need to run install.php and it will apply patches between your revision and last revision. But if you mean changes made to upgrade script (from Genoa), then the upgrade should be performed from scratch (from Genoa to Siena again), because the patches like in the post above use data which is lost after upgrade is finished.
May the Source be with you!
pieter
#114 2011-01-30 20:08
I copied the new trunk version to my site and ran install.pgp.

Fatal error : SQL error HY000: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.

http://www.broens.be/install.php
... can we help you ...
GHengeveld
#115 2011-01-30 20:51
Okay, I just committed the change to cot_date. There are now 20 predefined formats available:

date_fullY-m-d2011-01-30
date_mediumY-m2011-01
date_shortm-d01-30
date_textF d, YJanuary 30, 2011
date_fulltextl, F d, YSunday, January 30, 2011
time_fullH:i:s08:45:00
time_mediumG:i8:45
time_shorti:s45:00
time_textg:i A8:45 AM
time_fulltextg:i:s A8:45:00 AM
datetime_fullY-m-d H:i:s2011-01-30 08:45:00
datetime_mediumY-m-d H:i2011-01-30 08:45
datetime_shortm-d H:i01-30 08:45
datetime_textF d, Y H:iJanuary 30, 2011 08:45
datetime_fulltextl, F d, Y H:iSunday, January 30, 2011 08:45
week_fullo-\WW2011-W04 (January 1, 2011 would be part of 2010-W53)
week_medium\WWW04
week_short\WW-NW04-7
week_text\WW, lW04, Sunday
week_fulltexto-\WW, l2011-W04, Sunday

They can be used like this:
{LIST_ROW_BEGIN_STAMP|cot_date('date_full', $this)}
This post was edited by Koradhil (2011-01-30 21:55, 13 years ago)
Trustmaster
#116 2011-01-30 23:18
# pieter : I copied the new trunk version to my site and ran install.pgp.

Fatal error : SQL error HY000: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.

http://www.broens.be/install.php
Yes, with more verbose error reporting now we see that PDO is not used properly. For SELECT queries either all results must be fetched or a cursor must be closed. I'll be fixing that, it may take a while.

I'd like to draw a line, because Feb 1st is approaching. Obviously, 0.9.0 is not going to be released on Feb 1st because of several critical bugs:
  • PDO does not work properly on some hosts with older php/mysql client API
  • Extrafields don't work properly
  • Polls don't work properly
May the Source be with you!
pieter
#117 2011-01-31 00:31
I reinstalled and got some errors after upgrade.
Was not a problem last time.

When adding a comment:
Fatal error : SQL error 42S22: Column not found: 1054 Unknown column 'com_area' in 'field list'

Added 24 minutes later:

If I click on in admin: configuration - main settings I get a more or less blank page.
And the link is: http://www.broens.be/admin.php?m=config#get;admin.php;m=config&n=edit&o=core&p=main

Also on the other parts of configuration.

In the middle there is something wrong.



----------------------
Update: All comments that were there before the upgrade are gone.
----------------------
----------------------
... can we help you ...
This post was edited by pieter (2011-01-31 02:06, 13 years ago)
Trustmaster
#118 2011-02-01 02:58
Fixed some PDO-related bugs. Comments are broken during upgrade, will fix it soon.
May the Source be with you!
pieter
#119 2011-02-01 05:03
# pieter :
Added 24 minutes later:

If I click on in admin: configuration - main settings I get a more or less blank page.
And the link is: http://www.broens.be/admin.php?m=config#get;admin.php;m=config&n=edit&o=core&p=main

Also on the other parts of configuration.

In the middle there is something wrong.

Pls check also admin menu.
... can we help you ...
GHengeveld
#120 2011-02-01 07:10
Can you try disabling AJAX ? Also, provide some more info. I was unable to reproduce this.

<<<1...567891011>>>