3.2 & 3.3 Extensions Database 3.2 / 3.3Image Upload

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

ivailo95
Users
Users
Posts: 919
Joined: 02 Feb 2018, 12:04
    Windows 7 Firefox

Re: Image Upload

Post by ivailo95 »

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/dmzx/imageupload/controller/admin_controller.php on line 211: getimagesize(./../ext/dmzx/imageupload/files/d50604dd62b60c485bc3459f71e93c68.png): failed to open stream: No such file or directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3365)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3365)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3365)
i suspect that in ACP
Feed like a disease
And bring them to their knees
They'll pay for their deceit

User avatar

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

Re: Image Upload

Post by martin »

Missing image the file is stored in database but not on the server.
Image

User avatar

ivailo95
Users
Users
Posts: 919
Joined: 02 Feb 2018, 12:04
    Windows 7 Firefox

Re: Image Upload

Post by ivailo95 »

martin wrote: 13 Sep 2019, 13:11 Missing image the file is stored in database but not on the server.
i fix that but now

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/dmzx/imageupload/event/listener.php on line 266: getimagesize(./ext/dmzx/imageupload/files/d50604dd62b60c485bc3459f71e93c68.png): failed to open stream: No such file or directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4628: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3365)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4628: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3365)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4628: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3365)
or it's the same issue?

User avatar

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

Re: Image Upload

Post by martin »

/ext/dmzx/imageupload/files/d50604dd62b60c485bc3459f71e93c68.png): failed to open stream: No such file or directory

User avatar

ivailo95
Users
Users
Posts: 919
Joined: 02 Feb 2018, 12:04
    Windows 7 Firefox

Re: Image Upload

Post by ivailo95 »

martin wrote: 13 Sep 2019, 13:21 /ext/dmzx/imageupload/files/d50604dd62b60c485bc3459f71e93c68.png): failed to open stream: No such file or directory
urgh i disable all extension,but still see this error

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/dmzx/imageupload/event/listener.php on line 266: getimagesize(./ext/dmzx/imageupload/files/d50604dd62b60c485bc3459f71e93c68.png): failed to open stream: No such file or directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4628: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3365)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4628: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3365)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4628: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3365)

User avatar

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

Re: Image Upload

Post by martin »

Delete data you dont have them images on your server but are in the database unistall and delete data.

Read the error it tells you what is wrong.
/ext/dmzx/imageupload/files/d50604dd62b60c485bc3459f71e93c68.png): failed to open stream: No such file

User avatar

ivailo95
Users
Users
Posts: 919
Joined: 02 Feb 2018, 12:04
    Android Chrome

Re: Image Upload

Post by ivailo95 »

I think it was style issue..urgh i hate style issue.. :guns:

User avatar

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

Re: Image Upload

Post by martin »

Nope the images was missing look at the error message.

User avatar

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

Re: Image Upload

Post by dmzx »

First post updated.

User avatar

ivailo95
Users
Users
Posts: 919
Joined: 02 Feb 2018, 12:04
    Windows 7 Firefox

Re: Image Upload

Post by ivailo95 »

Which file need to change to set new size of mb upload?

User avatar

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

Re: Image Upload

Post by martin »

Can set size in acp but depends on your limits in php.ini file.

User avatar

ivailo95
Users
Users
Posts: 919
Joined: 02 Feb 2018, 12:04
    Windows 7 Firefox

Re: Image Upload

Post by ivailo95 »

martin wrote: 17 Nov 2019, 04:03 Can set size in acp but depends on your limits in php.ini file.
yea,i know but want to change limit in php,ini file

User avatar

g0lang
Users
Users
Posts: 3
Joined: 16 Nov 2019, 15:34
    Linux Firefox

Re: Image Upload

Post by g0lang »

Thanks for the wonderfull extension.

I made some update to the code, would you merge my PR in github ?

Code: Select all

https://github-dot-com/dmzx/Image-Upload/pull/7
1. nginx compatible
rename "files" dir to "img-files" since we have nginx rules which deny access to files dir
(please ref to

Code: Select all

https://github-dot-com/phpbb/area51-phpbb3/blob/master/phpBB/docs/nginx.sample.conf#L65
)

2. files saved in sub-dir like img-files/user_id/xx/xx/foooo.jpg

3. optimized some code

User avatar

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

Re: Image Upload

Post by dmzx »

g0lang wrote: 21 Nov 2019, 08:05 thanks for the wonderfull extension.

I made some update to the code, would you merge my PR in github ?

Code: Select all

https://github-dot-com/dmzx/Image-Upload/pull/7
1. nginx compatible
rename "files" dir to "img-files" since we have nginx rules which deny access to files dir
(please ref to

Code: Select all

https://github-dot-com/phpbb/area51-phpbb3/blob/master/phpBB/docs/nginx.sample.conf#L65
)

2. files saved in sub-dir like img-files/user_id/xx/xx/foooo.jpg

3. optimized some code
I will take a look at the PR, first impression its a good idea. :thumbup:

User avatar

g0lang
Users
Users
Posts: 3
Joined: 16 Nov 2019, 15:34
    Linux Firefox

Re: Image Upload

Post by g0lang »

dmzx wrote: 21 Nov 2019, 08:53 Did check the PR, the folder is not deleted when you delete the image. Did not have time to check the rmdir but will look into it.
Did you want to keep the folders?
I think ti's too heavy for removing the sub-dir when user delete images.

maybe a better solution is to create a cron job to do the cleaning.

Post Reply Previous topicNext topic