Englishflop25 wrote:
plg wrote:
3) smarter check of $conf['piwigo_db_version'] : sometimes the upgrade fails at some point but all migration tasks are applied. Unfortunately, $conf['piwigo_db_version'] is not updated to "2.4" which makes include/common.inc.php always redirect to upgrade.php (which doesn't see any upgrade to apply...).
I was more thinking of removing/changing l329 in upgrade.php
else
{
die('No upgrade required, the database structure is up to date');
}
Instead of that, checking if the last xxx-database.php correspond to "select id from piwigo_upgrade order by id+0 desc limit 0;" and if it's ok, checking if the piwigo_db_version needs to be updated too
Here is what I do:
else if (!in_array('rating_score', $columns_of[PREFIX_TABLE.'images']))
{
$current_release = '2.2.0';
}
else
{
// retrieve already applied upgrades
$query = '
SELECT id
FROM '.PREFIX_TABLE.'upgrade
;';
$applied_upgrades = array_from_query($query, 'id');
if (!in_array(127, $applied_upgrades))
{
$current_release = '2.3.0';
}
else
{
// confirm that the database is in the same version as source code files
conf_update_param('piwigo_db_version', get_branch_from_version(PHPWG_VERSION));
echo 'No upgrade required, the database structure is up to date';
echo '<br><a href="index.php">← back to gallery</a>';
exit();
}
}+ in upgrade_2.3.0.php:
// maybe the upgrade task has already been applied in a previous and
// incomplete upgrade
if (in_array($upgrade_id, $applied))
{
continue;
}This way you can have a partial upgrade that can be relaunched until success and once it is successful, you're not redirected to upgrade.php anymore.
now yes it's ok
I take it for a "GO 2.4.1"
All major bugs are fixed. I will try to fix [Bugtracker] bug 2627 and then I wait for a "GO" by ddtddt on translations. I will perform some tests tomorrow and I would like to release as soon as possible.
plg wrote:
1) on old versions of ImageMagick, the sampling-factor doesn't work. Several users have reported the probleme on ImageMagick 6.2.8. If we could detect the version of ImageMagick, store it in the session for example, then we can only use this option on recent version (don't know which version exactly) of ImageMagick.
[Bugtracker] bug 2672
For now, I have simply deactivated the option. Later we can improve the way we detect IM version and use this option when IM_version > X (X must be found as well). The idea of version 2.4.1 is to make 2.4 more stable.
fatman wrote:
flop25 wrote:
fatman wrote:
if I enable $conf['question_mark_in_urls'] = false;
the url in picture.php will become
../../../i.php/galleries/XXXXXXXX
../../../galleries/XXXXXXXif you have a question or a problem please open a new thread
I think plg is asking for bug report as first....
anyway, it should be caused by $page['root_path'] in section_init.php is incorrect build.
yes for bug confirmed ; yours is new to our knowledge
So please open a new thread and explain if the pictures are displayed or not with these url, of you tried with the config set as true etc
flop25 wrote:
fatman wrote:
if I enable $conf['question_mark_in_urls'] = false;
the url in picture.php will become
../../../i.php/galleries/XXXXXXXX
../../../galleries/XXXXXXXif you have a question or a problem please open a new thread
I think plg is asking for bug report as first....
anyway, it should be caused by $page['root_path'] in section_init.php is incorrect build.
I added : [Bugtracker] bug 2670
edit : forget it, it has been corrected thx to rvelices
fatman wrote:
if I enable $conf['question_mark_in_urls'] = false;
the url in picture.php will become
../../../i.php/galleries/XXXXXXXX
../../../galleries/XXXXXXX
if you have a question or a problem please open a new thread
if I enable $conf['question_mark_in_urls'] = false;
the url in picture.php will become
../../../i.php/galleries/XXXXXXXX
../../../galleries/XXXXXXX
flop25 wrote:
about htaccess maybe an option in Tools, Maintenance for deleting/adding it [Bugtracker] bug 2669
Or maybe juste completely remove the migration task 121 and create a plugin which adds lines in .htaccess.
plg wrote:
3) smarter check of $conf['piwigo_db_version'] : sometimes the upgrade fails at some point but all migration tasks are applied. Unfortunately, $conf['piwigo_db_version'] is not updated to "2.4" which makes include/common.inc.php always redirect to upgrade.php (which doesn't see any upgrade to apply...).
I was more thinking of removing/changing l329 in upgrade.php
else
{
die('No upgrade required, the database structure is up to date');
}
Instead of that, checking if the last xxx-database.php correspond to "select id from piwigo_upgrade order by id+0 desc limit 0;" and if it's ok, checking if the piwigo_db_version needs to be updated too
about htaccess maybe an option in Tools, Maintenance for deleting/adding it [Bugtracker] bug 2669
Also a problem with htaccess : fr http://fr.piwigo.org/forum/viewtopic.php?id=22265