Recent Topics

Feature Request: Move /tmp/ within b2evolution folder (b2e: 6.8.10)

Started by on Jul 26, 2017 – Contents updated: Jan 31, 2018

Jul 26, 2017 07:20    

extract from error.log:


[Tue Jul 25 18:37:48 2017] [error] [client myIP] PHP Warning:  getimagesize() [<a href='function.getimagesize'>function.getimagesize</a>]: open_basedir restriction in effect. File(/tmp/phpAZkAhs) is not within the allowed path(s): (/var/www/) in /var/www/www.example.com/com/inc/files/model/_file.funcs.php on line 1494, referer: http://www.example.com/com/admin.php?blog=1&mode=upload&ctrl=files&ajax_request=1&fm_mode=file_select&field_name=notification_logo_file_ID&root=shared_0&path=logos%2F
[Tue Jul 25 18:37:48 2017] [error] [client myIP] PHP Warning:  getimagesize(/tmp/phpAZkAhs) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: Operation not permitted in /var/www/www.example.com/com/inc/files/model/_file.funcs.php on line 1494, referer: http://www.example.com/com/admin.php?blog=1&mode=upload&ctrl=files&ajax_request=1&fm_mode=file_select&field_name=notification_logo_file_ID&root=shared_0&path=logos%2F
[Tue Jul 25 18:37:48 2017] [error] [client myIP] PHP Warning:  move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: open_basedir restriction in effect. File(/tmp/phpAZkAhs) is not within the allowed path(s): (/var/www/) in /var/www/www.example.com/com/inc/files/model/_file.funcs.php on line 1551, referer: http://www.example.com/com/admin.php?blog=1&mode=upload&ctrl=files&ajax_request=1&fm_mode=file_select&field_name=notification_logo_file_ID&root=shared_0&path=logos%2F
[Tue Jul 25 18:37:48 2017] [error] [client myIP] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/www.example.com/com/inc/files/model/_file.funcs.php:1494) in /var/www/www.example.com/com/inc/_core/_misc.funcs.php on line 6710, referer: http://www.example.com/com/admin.php?blog=1&mode=upload&ctrl=files&ajax_request=1&fm_mode=file_select&field_name=notification_logo_file_ID&root=shared_0&path=logos%2F
[Tue Jul 25 18:37:48 2017] [error] [client myIP] b2evolution error: Headers have already been sent in _file.funcs.php on line 1494.Cannot redirect. in /var/www/www.example.com/com/inc/_core/_template.funcs.php at line 295 / REQUEST_URI:  /com/admin.php / HTTP_REFERER: http://www.example.com/com/admin.php?blog=1&mode=upload&ctrl=files&ajax_request=1&fm_mode=file_select&field_name=notification_logo_file_ID&root=shared_0&path=logos%2F, referer: http://www.example.com/com/admin.php?blog=1&mode=upload&ctrl=files&ajax_request=1&fm_mode=file_select&field_name=notification_logo_file_ID&root=shared_0&path=logos%2F

Jul 27, 2017 08:03

@fplanque wrote earlier:

Who is your webhost?

I am happy with our server settings (running TYPO3, Zen-Cart, FUDforum, Oxid eSales, Piwik) and I don't want our hoster to change any of them.

Question is, if you can create a /tmp within /b2evolution and link there, so b2evolution uses it's own /tmp folder.

Thanks.

Jul 27, 2017 10:08

I won't take an hour to investigate your issue if you can't take 5 seconds to type in the name of your webhost.

I need to know if we have a test server there, if we have had one at any time in the past, or if we can get one.

Jul 27, 2017 10:23

@fplanque wrote earlier:

I won't take an hour to investigate your issue if you can't take 5 seconds to type in the name of your webhost.


Sorry.
here we go: http://www.zadar.net/ but I think it won't be helping much.

I would not like to ask them to modify the server settings, as I am happy with the status quo.

Thanks.

Nov 07, 2017 19:02

I have to bring this up again.
Currently using 6.9.3

I was trying to upload a picture (BackEnd + Skin background). It didn't finish and I interrupted this task.
Then a quick look within the server log folder. The error.log "exploded": 8.3GB within no time!

Could you pls take action and use/create an tmp/ folder within the b2evolution install path!

Thank you.


[Tue Nov 07 18:09:37 2017] [error] [client myIP] PHP Warning:  fopen() [<a href='function.fopen'>function.fopen</a>]: open_basedir restriction in effect. File(/tmp/phpWoi40n) is not within the allowed path(s): (/var/www/) in /var/www/www.myHP/com/htsrv/upload_handler.php on line 219, referer: http://www.myHP/com/admin.php?ctrl=files&mode=upload&field_name=edit_skin_11_set_header_custom_bg&file_type=image&ajax_request=1&iframe_name=&fm_mode=file_select
[Tue Nov 07 18:09:37 2017] [error] [client myIP] PHP Warning:  fopen(/tmp/phpWoi40n) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Operation not permitted in /var/www/www.myHP/com/htsrv/upload_handler.php on line 219, referer: http://www.myHP/com/admin.php?ctrl=files&mode=upload&field_name=edit_skin_11_set_header_custom_bg&file_type=image&ajax_request=1&iframe_name=&fm_mode=file_select
[Tue Nov 07 18:09:37 2017] [error] [client myIP] PHP Warning:  fseek() expects parameter 1 to be resource, boolean given in /var/www/www.myHP/com/htsrv/upload_handler.php on line 220, referer: http://www.myHP/com/admin.php?ctrl=files&mode=upload&field_name=edit_skin_11_set_header_custom_bg&file_type=image&ajax_request=1&iframe_name=&fm_mode=file_select
[Tue Nov 07 18:09:37 2017] [error] [client myIP] PHP Warning:  feof() expects parameter 1 to be resource, boolean given in /var/www/www.myHP/com/htsrv/upload_handler.php on line 226, referer: http://www.myHP/com/admin.php?ctrl=files&mode=upload&field_name=edit_skin_11_set_header_custom_bg&file_type=image&ajax_request=1&iframe_name=&fm_mode=file_select
[Tue Nov 07 18:09:37 2017] [error] [client myIP] PHP Warning:  fread() expects parameter 1 to be resource, boolean given in /var/www/www.myHP/com/htsrv/upload_handler.php on line 234, referer: http://www.myHP/com/admin.php?ctrl=files&mode=upload&field_name=edit_skin_11_set_header_custom_bg&file_type=image&ajax_request=1&iframe_name=&fm_mode=file_select
[Tue Nov 07 18:09:37 2017] [error] [client myIP] PHP Warning:  feof() expects parameter 1 to be resource, boolean given in /var/www/www.myHP/com/htsrv/upload_handler.php on line 226, referer: http://www.myHP/com/admin.php?ctrl=files&mode=upload&field_name=edit_skin_11_set_header_custom_bg&file_type=image&ajax_request=1&iframe_name=&fm_mode=file_select

Jan 22, 2018 11:14

I am sorry that I've caused "some action" here with this topic.

Our hoster did some investigating and found the source of the problem.
It has/had nothing to do with b2e - b2e just displayed it.
Now he is just asking why it didn't have any effect on any other of our installations... :D

Thanks so far - and once again: sorry!

Jan 31, 2018 02:19

ok, thanks for the update because we did not see how to fix this in B2evolution.


Form is loading...

blogging tool – This forum is powered by b2evolution CMS, a complete engine for your website.