Hello/Hi/Greetings,
Everything is working nicely, but at the top of each page when you view a picture from an album, I get a series of date related errors:
Notice: Undefined index: day in /var/www/clients/client1/web35/web/photoalbum/include/functions.inc.php on line 665
Notice: Undefined index: month in/var/www/clients/client1/web35/web/photoalbum/include/functions.inc.php on line 671
Piwigo 2.9.1
Operating system: Linux
PHP: 5.5.38 (Show info) [2017-08-22 11:50:27]
MySQL: 5.5.52-MariaDB [2017-08-22 11:50:27]
Graphics Library: External ImageMagick 6.7.8-9
Any suggestions? It works great, just looks meh with the errors.
All photos were added via ftp, then I had the app go syncronize to find them.
Offline
In administration mode, go to Tools/Maintenance menu.
There are two links for
- Repair and optimize database
- Reinitialize integrity check
Maybe give those a try. There is also a plugin called "Check Files Integrity" which might help.
Offline
Hi there
"Check Files Integrity" would be a good check indeed
PHP notices should not be displayed in production/live websites, but Piwigo should not produce any Notices also
Check also your plugins by disabling them all, then one by one if the notices disappear
Offline
All Plugins are deactivated
Repair and optimize database
Reinitialize integrity check
Both do not change the issue, though the integrity check part is incredibly fast. Not sure what it does, but I have roughly 12K pics in total, 350 albums. Seems like if its doing anything it would take longer, but...
Offline
as stated in its description it checks the Piwigo files not your pics
I'm digging further to help you
Offline
what language are you using when it throws the notices?
Offline
English (UK)
Offline
try to re upload all the files from a clean download of your Piwigo version ; overwrite everything
if they are still there, add $conf['show_php_errors'] = E_ALL & ~E_NOTICE; in your local config
Offline
Adding $conf['show_php_errors'] = E_ALL & ~E_NOTICE;
(after turning on the plugin, and creating a file)
Has made all the errors stop.
Offline
Thanks They are just hidden so let's remember them if you encounter again error messages
Offline
After upgrading I am also getting errors that seem to have an effect on dates (please refer to screenshots). This installation was done through CPanel. Since the date functions don't work properly there's no way my client can use Piwigo until these errors are fixed.
I have run:
Repair and optimize database
Reinitialize integrity check
Check Files Integrity
All succeed and report no errors.
Please refer to my screen shots taken today (August 24, 2017). Thank you.
Last edited by russmcclay (2017-08-24 08:01:37)
Offline
and reuploading by overwriting?
Could you both post a problematic entry from the table *_images (export if you can)?
if you unset then set the creation date?
Offline
PS: and try also to change the lang
Offline
Hi flop25, I'm not sure who you replying to.
Do you see the errors that are being displayed in my screen shots? They are the same type of errors RobPatton is getting. Plus the "header already sent" error. Rob and my error are about "Undefined indexes" for day and month.
I'll attach a screen shot of the *_images table, but since the width limit on this forum is 1200 pixels you might not be able to read it.
I hope we can focus on the error messages which I have send several screen shots of.
Appreciate the support and help!
Offline
well of course I'm answering to you both on those Notices
Do an Export please so we can see the raw values
Offline