Hello,
Since I upgraded to the last version, or install a new plugin, I can no longer insert images. Pictures are correctly uploaded, but not inserted into the database.
I get this error right after the upload:
Warning: [mysql error 1366] Incorrect integer value: 'undefined' for column 'level' at row 1
INSERT INTO piwigo_images
(file,name,date_available,path,filesize,width,height,md5sum,added_by,rotation,level)
VALUES('brompton profil.jpg','brompton profil','2013-11-04 23:42:55','./upload/2013/11/04/20131104234255-759b553a.jpg','50','150','169','759b553a80c12407735124a57db6df00','1','0','undefined') in C:\inetpub\wwwroot\piwigo\include\dblayer\functions_mysqli.inc.php on line 834
Looks like there is a mismatch between value and field.
Thank for your help.
Hi
from which version to which did you updated? Try first to download and reupload by overwriting existing files, your current version of Piwigo (the new one)
Offline
Well,
After my different tries, I restored a 2.5.2 on which upload worked:
=> Upload is now working (without touching the database)
I then upgraded to 2.5.3 ==> upload KO !!
I happened without touching anything in the administration nor the database.
I truly think the insite upgrade process is screwing the website.
At least it does on my server...
flop25 wrote:
Try first to download and reupload by overwriting existing files, your current version of Piwigo (the new one)
Offline
I have already tried to overwrite the install on the upgraded 2.5.2 with no luck
I don't need actually the 2.5.3 and I've spent too much time on this issue.
I upgraded because it was available and easy to execute !
I'd better wait for a major release now :)
nothing has changed in 2.5.3 about upload. I just checked the files
do you have any plugin enabled and uptodate
Offline
I had the same problem.
I don't know exactly the consequences of my change but it's work.
In then file plugins/community/main.inc.php, I search:
add_event_handler('init', 'community_uploadify_privacy_level');
function community_uploadify_privacy_level()
{
if (script_basename() == 'uploadify' and !is_admin())
{
$_POST['level'] = 16;
}
}
and replace with:
add_event_handler('init', 'community_uploadify_privacy_level');
function community_uploadify_privacy_level()
{
if (script_basename() == 'uploadify' and !is_admin())
{
$_POST['level'] = 16;
}
$_POST['level'] = 16; // <--- my change
}
If an community plugin expert can explain, I will thank
oh ! that's a community plugin issue Ok
author notified
Offline
granddub's solution solves the community plugin flash upload issue but breaks the Album Manager. Does anybody knows a way around this?
Thanks!
Offline