Jump to content

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


Zohaib-fk

Recommended Posts

,Hi,

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" 

 

if(!file_exists(_PS_IMG_DIR_.$dir.$image_name))
{
  $this->errors[] = $this->l('An error occurred while uploading the image.Please try again');
  return;
}

 

Any solution to this issue?

PrestaShop Tutorials Videos [How to do Tasks]

 

error.png

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