Just installed the latest Piwigo on a windows server at home running WAMP. Everything seems to be running fine except the following errors.
1. Logged in as admin and launching "Administration" page, I see the following error on the page.
Notice: Undefined index: day in C:\wamp\www\gallery\include\functions.inc.php on line 526
Call Stack
# Time Memory Function Location
1 0.0018 177352 {main}( ) ..\admin.php:0
2 1.1007 1924840 include( 'C:\wamp\www\gallery\admin\intro.php' ) ..\admin.php:291
3 1.1132 2109976 format_date( ) ..\intro.php:266
( ! ) Notice: Undefined index: month in C:\wamp\www\gallery\include\functions.inc.php on line 536
Call Stack
# Time Memory Function Location
1 0.0018 177352 {main}( ) ..\admin.php:0
2 1.1007 1924840 include( 'C:\wamp\www\gallery\admin\intro.php' ) ..\admin.php:291
3 1.1132 2109976 format_date( ) ..\intro.php:266
2. Browsing individual picture inside an album generates the following error and the whole page format is messed up with missing navigation links etc (no icons for next, previous etc).
Notice: Undefined index: day in C:\wamp\www\gallery\include\functions.inc.php on line 526
Call Stack
# Time Memory Function Location
1 0.0048 270680 {main}( ) ..\picture.php:0
2 1.1144 1706136 format_date( ) ..\picture.php:836
( ! ) Notice: Undefined index: month in C:\wamp\www\gallery\include\functions.inc.php on line 536
Call Stack
# Time Memory Function Location
1 0.0048 270680 {main}( ) ..\picture.php:0
2 1.1144 1706136 format_date( ) ..\picture.php:836
( ! ) Notice: Undefined index: day in C:\wamp\www\gallery\include\functions.inc.php on line 526
Call Stack
# Time Memory Function Location
1 0.0048 270680 {main}( ) ..\picture.php:0
2 1.1150 1707000 format_date( ) ..\picture.php:850
( ! ) Notice: Undefined index: month in C:\wamp\www\gallery\include\functions.inc.php on line 536
Call Stack
# Time Memory Function Location
1 0.0048 270680 {main}( ) ..\picture.php:0
2 1.1150 1707000 format_date( ) ..\picture.php:850
Running PHP 5.4.3, MYSQL 5.1.41, APACHE 2.2.22, timezone is US Central.
Did not find relevant post on the forum. Any help is appreciated.
Offline
probably your language file is broken or day/month translations are missing...
Offline
Thanks for the reply.
Any idea how to fix this. I removed and reinstalled everything but the problem is exactly the same.
Appreciate your help.
Offline
In my case it is the host that has set some safe mode on. The 'include' command is a "dangerous" command.
Try a different theme? I saw these errors running by while using a few themes. After using "normal" theme all went well.
Last edited by novw (2013-01-12 01:05:22)
Offline
'include' in dangerous ? seriously ? what kind of host is that ?
Offline
A host that has never been hacked ;)
I am telling what he told me: Thru the 'include' outsiders can start scripts and stuff on other persons computers.
-
BUT(!) I have made a discovery that may or may not be helpfull in this perticular situation. It turns out my FTP software lowercases [b]all[b] files I upload. And since on some machines INCludE is different from include, you may want to check CapITalIZatIOn on your installs?
(I don't know, just trying to help.)
Offline
novw wrote:
A host that has never been hacked ;)
Oh yeah. They also can accept only html files, no php and no database, very secure in that case.
Seriously, go change your hoster
no piwigo core files are capitalized
Offline
f.y.i. ALL locale files (root:language\) are in fact capitalized...
Offline
novw wrote:
f.y.i. ALL locale files (root:language\) are in fact capitalized...
ouups ^^
Offline