Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File upload throws tempnam() error #316

Closed
mxx-lxg opened this issue Jun 12, 2019 · 2 comments
Closed

File upload throws tempnam() error #316

mxx-lxg opened this issue Jun 12, 2019 · 2 comments
Assignees
Labels

Comments

@mxx-lxg
Copy link

mxx-lxg commented Jun 12, 2019

What steps will reproduce the problem?

Upload a file using the file browser / open the file browser.

What is the expected result?

Uploaded files should appear in the file browser and in public_html/storage.

What do you get instead? (A Screenshot can help us a lot!)

Uploading a file causes an error 500 to be returned by the data-files call.

code: 8 file: "/Applications/XAMPP/xamppfiles/htdocs/thatproject/vendor/luyadev/luya-module-admin/src/storage/BaseFileSystemStorage.php" line: 674 message: "tempnam(): file created in the system's temporary directory" name: "PHP Notice"

Uploaded files appear in public_html/storage, but not in the file browser.

LUYA Check ouput (run this script and post the result: luyacheck.php)

1: [ini_get('short_open_tag')] '1' 2: [ini_get('error_reporting')] '22527' 3: [phpversion()] '7.1.28' 4: [php_ini_loaded_file()] '/Applications/XAMPP/xamppfiles/etc/php.ini' 5: [php_sapi_name()] 'cgi-fcgi' 6: [isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : unknown] 'PhpStorm 2018.3.6'
Had to comment out apache_get_modules(), because it threw an undefined error.

Additional infos

Q A
LUYA Version 1.0 (admin module 1.2)
PHP Version 7.1
Platform XAMPP
Operating system OSX 10.14
@nadar nadar transferred this issue from luyadev/luya Jun 12, 2019
@nadar
Copy link
Member

nadar commented Jun 12, 2019

Yes indeed, this appears since php 7.1. Here is a good description of the same "problem": Glavin001/atom-beautify#1108 (comment)

I am going to oppress notice messages of tempnam with "@".

A temporary fix would be to use php 7.0 or change the error reporting level.

@nadar nadar self-assigned this Jun 12, 2019
@nadar nadar added the bug label Jun 12, 2019
@mxx-lxg
Copy link
Author

mxx-lxg commented Jun 12, 2019

Thanks, gonna try a different level.

@nadar nadar closed this as completed in 2228c2b Jun 12, 2019
nadar added a commit that referenced this issue Jun 12, 2019
slowfox089 pushed a commit to slowfox089/luya-module-admin that referenced this issue Dec 10, 2020
slowfox089 pushed a commit to slowfox089/luya-module-admin that referenced this issue Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants