Undefined index: display_fromto in /var/www/piwigo/include/category_cats.inc.php on line 315
What gives?
Edit: can make it go away by editing Local config in LocalFiles:
$conf['display_fromto'] = false;
Last edited by Zentalquabula (2019-10-09 08:50:25)
Offline
Hi Zentalquabula,
Can you go in your database manager and give us the result of these 2 SQL queries :
select * from piwigo_config where param = 'display_fromto';
and
select * from piwigo_upgrade order by applied desc limit 5;
Offline
Empty set (0.00 sec)
and
+-----+---------------------+------------------------------------------------------------------------------------------------------------+
| id | applied | description |
+-----+---------------------+------------------------------------------------------------------------------------------------------------+
| 149 | 2017-05-03 00:11:46 | [migration from 2.8.0 to 2.9.0, 0.065 s] add last_visit+last_visit_from_history in user_infos table |
| 150 | 2017-05-03 00:11:46 | [migration from 2.8.0 to 2.9.0, 0.035 s] add history_id_from+history_id_to in history_summary table |
| 151 | 2017-05-03 00:11:46 | [migration from 2.8.0 to 2.9.0, 0.000 s] add "picture_sizes_icon" and "index_sizes_icon" parameters |
| 152 | 2017-05-03 00:11:46 | [migration from 2.8.0 to 2.9.0, 0.000 s] add 5 parameters to show/hide icons (edit/caddie/repressentative) |
| 145 | 2016-03-08 19:48:04 | [migration from 2.7.0 to 2.8.0, 0.007 s] add image formats table |
+-----+---------------------+------------------------------------------------------------------------------------------------------------+
Offline
and what if you go to upgrade.php (instead of index.php) in your web browser?
Offline
That seemed to do the trick.
Howver, it deactivated my themes and plugins and made a complete mess of everything. That awful "powered by" is also back. Sigh.
Offline
I encountered this error as well, the upgrade process seemed to not succeed fully. Accessing upgrade.php directly did not do anything, the message said that the database was already up to date.
To fix this I ran this statement manually against the SQL instance:
insert into piwigo_config values ('display_fromto','false',NULL);
That made the error go away.
The error is tied to this Display configuration option:
Show the date period associated with each album, eg « from July 12th to 15th, 2018 »
Unless a piwigo_config parameter is manually created in the database you cannot fix this error.
Offline
I just upgraded to 2.10.1 and got the same problem.
Inserted the value as mentioned
Checked the display variable and that is disabled. However the problem is still there
"Notice: Undefined index: display_fromto in /var/www/clients/client29093/web38647/fotos/piwigo/include/category_cats.inc.php on line 119"
Piwigo 2.10.1
Operating system: Linux
PHP: 7.2.20 (Show info) [2019-11-08 19:55:02]
MySQL: 5.7.19 [2019-11-08 19:55:02]
Graphics Library: External ImageMagick 6.7.8-9
Any other tips?
Thanks,
Jeroen
Offline