3.2 & 3.3 Extensions Database 3.2 / 3.3Download System

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
User avatar

joshqute
Users
Users
Posts: 6
Joined: 10 Jan 2020, 07:30
    Windows 7 Chrome

Re: Download System

Post by joshqute »

dmzx wrote: 10 Jan 2020, 08:11
joshqute wrote: 10 Jan 2020, 08:04 Download System does not work (SQL error) after creating categories, on Localhost ... Download System v1.1.4, PhpBB v3.2.8, mySQL 5.4
Can you post the error?
SQL ERROR [ mysqli ]

Expression #17 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'phpbb . bd.download_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by [1055]

SQL

SELECT bc.*, bd.*, COUNT(bd.download_id) AS number_downloads, MAX(bd.last_changed_time) AS last_download FROM phpbb_dm_eds_cat bc LEFT JOIN phpbb_dm_eds_cat bc2 ON ( bc2.left_id < bc.right_id AND bc2.left_id > bc.left_id AND bc2.cat_id = 0 ) LEFT JOIN phpbb_dm_eds bd ON ( bd.download_cat_id = bc.cat_id OR bd.download_cat_id = bc2.cat_id ) WHERE bc.parent_id = 0 GROUP BY bc.cat_id ORDER BY bc.left_id ASC LIMIT 25

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 997
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 196
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/mysql_base.php
LINE: 45
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 270
CALL: phpbb\db\driver\mysql_base->_sql_query_limit()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 321
CALL: phpbb\db\driver\driver->sql_query_limit()

FILE: [ROOT]/ext/dmzx/downloadsystem/core/functions.php
LINE: 388
CALL: phpbb\db\driver\factory->sql_query_limit()

FILE: [ROOT]/ext/dmzx/downloadsystem/controller/download.php
LINE: 72
CALL: dmzx\downloadsystem\core\functions->generate_cat_list()

FILE: [ROOT]/vendor/symfony/http-kernel/HttpKernel.php
LINE: 135
CALL: dmzx\downloadsystem\controller\download->handle_downloadsystem()

FILE: [ROOT]/vendor/symfony/http-kernel/HttpKernel.php
LINE: 57
CALL: Symfony\Component\HttpKernel\HttpKernel->handleRaw()

FILE: [ROOT]/app.php
LINE: 35
CALL: Symfony\Component\HttpKernel\HttpKernel->handle()

User avatar

alsthom
Users
Users
Posts: 15
Joined: 19 Jan 2020, 11:28
    Windows 10 Chrome

Re: Download System

Post by alsthom »

Hello from Greece!
I have a problem with this extension.
I am trying to upload one big file (350mb zip file). I am using the upload tab from the board (not from ACP).
The uploading starts, I can see the progress at the bottom of the page (I use chrome), but when it reaches the 100% nothing happens! It returns where I was before and nothing has been uploaded. :(
I had no problems with other two smaller files. I have uploaded them without problems.
What do I need to check?
Please enlighten me!
Thank you

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Download System

Post by dmzx »

alsthom wrote: 19 Jan 2020, 21:05 Hello from Greece!
I have a problem with this extension.
I am trying to upload one big file (350mb zip file). I am using the upload tab from the board (not from ACP).
The uploading starts, I can see the progress at the bottom of the page (I use chrome), but when it reaches the 100% nothing happens! It returns where I was before and nothing has been uploaded. :(
I had no problems with other two smaller files. I have uploaded them without problems.
What do I need to check?
Please enlighten me!
Thank you
What file extension are you uploading?
And all php.ini settings allow the big upload file?

User avatar

alsthom
Users
Users
Posts: 15
Joined: 19 Jan 2020, 11:28
    Windows 10 Chrome

Re: Download System

Post by alsthom »

It's a zip file.
My php settings I think they are ok. I mean I have set the max upload to 800Mb and also I have increased some other settings in myphp.ini
Here you can add new downloads. The maximum size of the file, which is allowed by your host, is 800 MB! Due to the upload time you might need, this value can be lower!
As I said I am trying to upload directly from the forum and not from ACP. I use the tab 'upload'.... The upload starts and when it reaches the end 100% there is a page refresh and it goes at the beggining again (I mean that nothing has been uploaded and I have to fill the form to upload again)
I forgot to mention that I have the latest phpbb 3.3.0 and the latest extension 1.1.4
I hope you understand my english
Last edited by alsthom on 20 Jan 2020, 11:03, edited 1 time in total.

User avatar

alsthom
Users
Users
Posts: 15
Joined: 19 Jan 2020, 11:28
    Windows 10 Chrome

Re: Download System

Post by alsthom »

Allow me to bump this becouse I am trying to find what the problem is and I found that I can upload this file straight to a folder at cpanel. So my php settings must be fine. Am I right?
Why this file seems to upload ok but after 100% the page returns at the start anf the file is nowhere?
Is there something to check at phpbb settings or at extension's settings?
I am sending you my php settings for my domain (not for my homedirectory as I see from cpanel)
Is there anything wrong?
Last edited by alsthom on 20 Jan 2020, 22:19, edited 2 times in total.

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Download System

Post by dmzx »

PM me test account with admin rights to check for you.

User avatar

alsthom
Users
Users
Posts: 15
Joined: 19 Jan 2020, 11:28
    Windows 10 Chrome

Re: Download System

Post by alsthom »

Hello,
did you find anything? I noticed your successfull demo uploads.
Did you try to upload the file that I have pm to you? I am starting to think that the problem is from me!!!
What do you think?

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Android Chrome

Re: Download System

Post by dmzx »

alsthom wrote: 21 Jan 2020, 20:28 Hello,
did you find anything? I noticed your successfull demo uploads.
Did you try to upload the file that I have pm to you? I am starting to think that the problem is from me!!!
What do you think?
Will do that test also for you.
100mb file goes good.

Will do when bit more time available

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Download System

Post by martin »

-1 ? should be 60 also turn on error reporting you may just see the error given then.
Image

User avatar

alsthom
Users
Users
Posts: 15
Joined: 19 Jan 2020, 11:28
    Windows 10 Chrome

Re: Download System

Post by alsthom »

@dmzx thank you for your help!

@martin do you think that this is the problem? I will test it. Also please tell me from where do I turn on error reporting? :oops:

User avatar

alsthom
Users
Users
Posts: 15
Joined: 19 Jan 2020, 11:28
    Windows 10 Chrome

Re: Download System

Post by alsthom »

I am back with more:
From php's page I read the following
php page-manual wrote:max_input_time integer
This sets the maximum time in seconds a script is allowed to parse input data, like POST and GET. Timing begins at the moment PHP is invoked at the server and ends when execution begins. The default setting is -1, which means that max_execution_time is used instead. Set to 0 to allow unlimited time.
...So I set it to 0. Should I put 60?
...Also I enabled error reporting from config file.

Code: Select all

@define('DEBUG', true);
@define('DEBUG_EXTRA', true);
...I tried again to upload that file but with the same results :(
Also there wasn't an error at the bottom of the forum (The error goes there , right?)

User avatar

alsthom
Users
Users
Posts: 15
Joined: 19 Jan 2020, 11:28
    Windows 10 Chrome

Re: Download System

Post by alsthom »

I couldn't find a solution to my previous problem so I used the ftp method. It worked fine!
I am back now with two more questions. :oops:
1. Translation This is the english

Code: Select all

Click %4$s to go to the download page!
As I understand, this %4$s means here? I am trying to translate it in greek as this

Code: Select all

Πατήστε  %4$s για μετάβαση στη περιοχή μεταφορτώσεων!
But the final result shows both words (greek in blue and english in red) As this
Πατήστε εδώ here για μετάβαση στη σελίδα μεταφορτώσεων!
What is the right procedure for this?

2. Is there the ability to sort the downloads manually? I mean that I would like to move down some downloads or move up some others....

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Download System

Post by dmzx »

alsthom wrote: 27 Jan 2020, 07:55%4$s
its a placeholder and you should leave it like it is.

User avatar

alsthom
Users
Users
Posts: 15
Joined: 19 Jan 2020, 11:28
    Windows 10 Chrome

Re: Download System

Post by alsthom »

May I ask another question please?
Is there a way to show the file extension at the index page?
Like the image that I send?
Is it a hard job?
Best Regards
downladsystem.JPG
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Download System

Post by dmzx »

alsthom wrote: 28 Jan 2020, 10:28 May I ask another question please?
Is there a way to show the file extension at the index page?
Like the image that I send?
Is it a hard job?
Best Regardsdownladsystem.JPG
Like this you mean? downloadsystemcat?id=62

Post Reply Previous topicNext topic