Jump to content

error message in back-office - Only variables should be passed by reference


Recommended Posts


I am checking condition in my module and showing error.

There is warning popup is coming as per attach image when error condition execute.

"Only variables should be passed by reference" 


  $this->errors[] = $this->l('An error occurred while uploading the image.Please try again');


Any solution to this issue?

PrestaShop Tutorials Videos [How to do Tasks]



Edited by Zohaib-fk
Post Updated (see edit history)
Link to comment
Share on other sites

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...