jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: Boyblan on 07.01.2023 15:10:32

Title: Error when submitting a file by a logged user - [Fixed in 4.0.14]
Post by: Boyblan on 07.01.2023 15:10:32
Hi,
I encounter an error when sending a file, asking me to fill in fields that are not displayed on the form and in the backend are not mandatory.

Save failed with the following error: HY000, 1364, Field 'metakey' doesn't have a default value.
Title: Re: Error when submitting a file by a logged user
Post by: Arno on 07.01.2023 18:32:59
Hi,
thanks for the posted problem.

I have found a mistake in the last hour that could also be the reason for your problem.

I will test it a little bit more. It is possible that I will send you a new version for testing later (by e-mail).
Or I will publish a new version directly in the forum. Please test it again with it then and post your result. Thank you.
Title: Re: Error when submitting a file by a logged user
Post by: Boyblan on 08.01.2023 00:03:04
Thank You, I am still waiting for your message.

Cordially
Title: Re: Error when submitting a file by a logged user
Post by: Boyblan on 08.01.2023 23:09:51
Hey,

I tested Jdowloads 4.012 but unfortunately the problem is still persistent.

Sincerely
Title: Re: Error when submitting a file by a logged user
Post by: Arno on 09.01.2023 13:41:49
Hi,
really?  :-\

Which pre-beta version did you use to update from 3.9.8.5 to version 4?
And could you post a screenshot of your jdownloads_files table structure?
You find it in your phpmyadmin.
Title: Re: Error when submitting a file by a logged user
Post by: Boyblan on 09.01.2023 17:52:06
Hey,
QuoteWhich pre-beta version did you use to update from 3.9.8.5 to version 4?
I used the com_jdownloads_pre_beta_4_0_4 version for a new joomla 4 installation, then I put it to 4.0.5 which I completely uninstalled with the database to install 4.0.6

QuoteAnd could you post a screenshot of your jdownloads_files table structure?
You find it in your phpmyadmin.
I copied it to excel to have an overview

thank you very much
Title: Re: Error when submitting a file by a logged user
Post by: ColinM on 10.01.2023 15:38:04
Hi,
Not sure that the 'Null' column supports Oui and Non!  Think you should use Yes and No
Title: Re: Error when submitting a file by a logged user
Post by: Boyblan on 10.01.2023 21:01:53
Hi,
submitting a file with Jdownloads 3.9 component works on my published site even if the Null field value is Non.
see the first 2 images

but in localhost the file submission fails with Jdownloads 4.0.12. with Null field value is Non.
See the 2 other images in localhost

the only difference is this field 'Adjust privileges', it is disabled and read only on the production site. while on the localhost site this field is checked (even if I uncheck it, it returns to its default value)


Thanks.
Title: Re: Error when submitting a file by a logged user
Post by: Arno on 12.01.2023 13:51:45
Hi,
could I get an akeeba backup from your test page with the error?

Please try this:
Open phpmyadmin and goto 'More' Tab and select 'Variables' submenu. Scroll down to find sql mode. Edit sql mode and remove 'STRICT_TRANS_TABLES' Save it.
Title: Re: Error when submitting a file by a logged user
Post by: Boyblan on 12.01.2023 18:50:32
Hello,
frankly I could not locate the field of which you had spoken to me if there is possibility of a screen capture please.

on the other hand, when I validate the form even with the "Metadata tab" (I fill in the "Meta Keywords" & "Meta Description" values), the form validation gives me an error page but the submitted file is saved in the backend
Title: Re: Error when submitting a file by a logged user
Post by: Arno on 13.01.2023 12:34:17
Hi,
see pic.

When this not should work, could I get an akeeba backup from your test page with the error?

Edit:
I had forget the pic.  ::)
Title: Re: Error when submitting a file by a logged user
Post by: Boyblan on 16.01.2023 22:51:17
Hello,
I followed the steps described to me, but I didn't find this 'STRICT_TRANS_TABLES' mention.
Title: Re: Error when submitting a file by a logged user
Post by: Arno on 19.01.2023 01:14:42
Hi,
please install the new version 4.0.14 and try it again.
Title: Re: Error when submitting a file by a logged user - [Fixed in 4.0.14]
Post by: Boyblan on 19.01.2023 23:46:18
hey, After installing this version the "metakey" and "meta description" fields are set.

Thanks a lot.