Welcome to Justanswer.com, my name is Dustin.I'm sorry to hear about the issue you are having, I will do my best to help you resolve it.
If its saying there is no paper in the tray, you may just need to replace the tray
Though, you may also need to replace the pickup roller assembly, that actually grabs the paper from the bottom tray.
Here is a guide for a similar printer that shows you how to replace it. https://www.ifixit.com/Guide/Disassembling+HP+Photosmart+c3180+Feed+Roller+Assembly+Removal/6990
With that being said, Id make sure that you have the correct paper tray selected in your printer settings first. As it may simply be looking for paper from the wrong tray or input. ( such as its looking for paper from the adf, rather then the tray )
Also, keep in mind you can get a used model of the same printer for around 50$ http://amzn.to/2aXVThP
And that could be a more economical option then repairing the printer.. If you have further questions, let me know.
I strive to provide great service, and greatly appreciate a 5 star rating clicked and submitted when you are satisfied.. I always answer follow up questions.Dustin S.Senior Technician and Network Switching Systems Operator / Maintainer.