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

'PHP message: PHP Notice: Undefined index: files in /var/www/ipv4/upload/index.php on line 5PHP message: PHP Notice: Trying to access array offset on value of type bool in /var/www/ipv4/upload/index.php on line 23PHP message: PHP Notice: Trying to access array offset on value of type bool in /var/www/ipv4/upload/index.php on line 28' #25

Open
catharsis71 opened this issue Jun 13, 2021 · 0 comments

Comments

@catharsis71
Copy link

I did the following to try to get this working:

  1. Created a directory /upload/ on my web server.

  2. Copied upload.php (renamed to index.php) into my /upload/ directory

  3. Copied class.uploader.php into my /upload/ directory

  4. Edited index.php (renamed from upload.php) so that instead of referencing '../src/class.uploader.php' it referenced './class.uploader.php'

  5. Created a "/upload/uploads" subdirectory for uploads to go into and set www-data as the owner

However when I browse to /upload/ I just get a blank / 0-byte response, and the following error appears in my Apache log:

[Sun Jun 13 11:40:31.416720 2021] [proxy_fcgi:error] [pid 594484:tid 139774164084480] [client X.X.X.X:61610] AH01071: Got error 'PHP message: PHP Notice:  Undefined index: files in /var/www/ipv4/upload/index.php on line 5PHP message: PHP Notice:  Trying to access array offset on value of type bool in /var/www/ipv4/upload/index.php on line 23PHP message: PHP Notice:  Trying to access array offset on value of type bool in /var/www/ipv4/upload/index.php on line 28'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant