Comments (7)
It looks like you aren't running the latest version of DVWA
This is line 77 along with context and that line is not going to throw the error you are seeing.
70
71 session_set_cookie_params([
72 'lifetime' => $maxlifetime,
73 'path' => '/',
74 'domain' => $domain,
75 'secure' => $secure,
76 'httponly' => $httponly,
77 'samesite' => $samesite
78 ]);
79
80 session_start();
81
Get the latest version of the app from this repo and try again.
from dvwa.
I tried two ways to download latest version , one for downloading code zip , one for git clone ,
the following picture shows how i git clone
and then i copy it into apache2 and restart apache2
but it shows the same error
the following picture shows /var/www/html/DVWA/dvwa/includes/dvwaPage.inc.php
btw, i don't understand why it can report this error either :(
it seems there is no array to string in line 77
from dvwa.
Let's just check that you are looking at the right file. Edit /var/www/html/DVWA/dvwa/includes/dvwaPage.inc.php
and insert three lines of empty comments at the top of the file.
If the report is coming from this file, then the error should move to line 80, if it stays at 77 then something else is going wrong.
from dvwa.
i insert four blank at the top
and it shows in line 81 now
from dvwa.
Got it, I think you might be running a version of PHP earlier than 7.3, can you check.
The definition of session_set_cookie_params
changed from taking individual parameters to being able to take an array with named parameters from 7.3:
https://www.php.net/session_set_cookie_params
Version 7.2 reached end of life in 2020 so I'll count this as an unsupported version and ask you to upgrade to a newer version of php.
from dvwa.
I see.
My linux is ubuntu18.04 and apt-get only supply php7.2
i'll upgrade my system to 20.04 and try again
anyway ,thank you very much for your answering
from dvwa.
Problem solved.
from dvwa.
Related Issues (20)
- Problem in starting DVWA site HOT 7
- Installation Script for Debian HOT 6
- Container image 312293e does not connect to the database HOT 6
- Debian script install - MySQL HOT 2
- My issue HOT 4
- httponly HOT 10
- Login Fail issue
- DVWA ping not working HOT 3
- error whilst running SQL Injection (Low)
- When clicking on "Create / Reset Database" - only a blank page appears. HOT 8
- Access denied for created user to access DVWA in MariaDB after clicking on CREATE / RESET database in setup.php main page HOT 3
- commend injection in PING HOT 3
- Login page redirects to setup.php HOT 5
- bkank page with http://127.0.0.1/dvwa/setup.php# HOT 3
- CSRF doesn't really make sense HOT 4
- DVWA Post Installation Issue HOT 45
- "vulnerability" should be "vulnerabilities" on `index.php` HOT 1
- can't setup .. get error HOT 2
- Error loading page -- connection refused HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dvwa.