plegall / Piwigo-community

11 stars 23 forks source link

Your browser doesn't have HTML5 support. #38

Open slackwaresz opened 6 years ago

slackwaresz commented 6 years ago

when a none admin user upload photos ,its saying "The uploaded files exceed the post_max_size directive in php.ini: 32MB " and Your browser doesn't have HTML5 support.help

norweeg commented 6 years ago

What browser are you using??

plepe commented 5 years ago

I get this error on both Chromium and Firefox. It seems to be connected to a MYSQL error (which is maybe not visible when you don't scroll down):

[mysql error 1265] Data truncated for column 'section' at row 1

INSERT INTO history
  (
    date,
    time,
    user_id,
    IP,
    section,
    category_id,
    image_id,
    image_type,
    format_id,
    auth_key_id,
    tag_ids
  )
  VALUES
  (
    CURRENT_DATE,
    CURRENT_TIME,
    4,
    '128.130.118.65',
    'add_photos',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  )
;

#1  my_error /home/httpd/htdocs/photos/include/dblayer/functions_mysqli.inc.php(147)
#2  pwg_query /home/httpd/htdocs/photos/include/functions.inc.php(502)
#3  pwg_log /home/httpd/htdocs/photos/index.php(374)

It's clear, because the section column of history does not allow "add_photos" as value. When I added this value as allowed value it worked:

alter table history change column section section enum('categories','tags','search','list','favorites','most_visited','best_rated','recent_pics','recent_cats','add_photos') DEFAULT NULL;

Apparently, as administrator, no entry to this mysql table is written.

plepe commented 5 years ago

see #1