How to fix 'File(/tmp) is not within the allowed path' error?

Hello all. When i upload data and image i get following error. but after error data recorded in database and image to folder as well. How to prevent this error? is_writable(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/futurizm/data:.)

This is a warning so you get the message but the files gets saved.

To solve it you need to modify your open_basedir settings -