Jump to content

Recommended Posts

Posted
Strict standards: Only variables should be passed by reference in C:\wamp64\www\oop_php_login_projectfiles\models\m_auth.php on line 30
what does the above mean
# Time Memory Function Location
1 0.0010 251576 {main}( ) ...\login.php:0
2 0.0180 288400 Auth->validateLogin( ) ...\login.php:21

login.php

m_auth.php

Posted

Hi,

This has to do with the version of PHP. 

You should paste the PHP code in question, like the 5-10 lines around the error, not the whole page.

That said, and not having looked at the code, it is probably because the code is passing in a function result, as the argument, into another function. So you fix this by creating a variable out of the function call, and pass the variable into the function. 

Stef

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...