Piwigo.org

You are not logged in. (Register / Login)

Announcement

Post a reply

Write your message and submit

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

plg
2012-07-03 00:15:14

flop25 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:

Code:

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:

Code:

  // 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.

ddtddt
2012-07-02 23:13:17

now yes it's ok

plg
2012-07-02 23:05:49

I take it for a "GO 2.4.1"

ddtddt
2012-07-02 22:15:12
plg
2012-07-02 20:10:16

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
2012-06-30 00:26:53

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.

flop25
2012-06-29 15:06:28

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/XXXXXXX

if 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

fatman
2012-06-29 15:03:30

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/XXXXXXX

if 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.

flop25
2012-06-29 13:46:56

I added : [Bugtracker] bug 2670
edit : forget it, it has been corrected thx to rvelices

flop25
2012-06-29 13:43:00

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

fatman
2012-06-29 13:38:43

if I enable $conf['question_mark_in_urls'] = false;
the url in picture.php will become

../../../i.php/galleries/XXXXXXXX
../../../galleries/XXXXXXX

plg
2012-06-29 12:09:39

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.

flop25
2012-06-29 10:57:01

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

flop25
2012-06-29 10:34:54

about htaccess maybe an option in Tools, Maintenance for deleting/adding it [Bugtracker] bug 2669

flop25
2012-06-28 16:59:20

Also a problem with htaccess : fr http://fr.piwigo.org/forum/viewtopic.php?id=22265

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013