Hi
I am having an issue with the Home Inventory app.
I have entered several items into Home Inventory fine, but now i am trying to add images (.JPG).
I just get a message "Cannot upload file!"
This is the same for existing items and new items.
Any suggestions?
Many thanks
Roger
Home Inventory pictures
Re: Home Inventory pictures
There was an issue with the initial install script that has since been fixed. If you've entered a bunch of items and don't want to reinstall I can explain how to fix it.
If you don't want to reinstall.
If you don't want to reinstall.
Re: Home Inventory pictures
hmmm ... that's no good.
what do the error logs have to say?
probably in /var/hda/web-apps/homeinv/logs/error_log
---
update - never mind, mciv to the rescue with actual info
what do the error logs have to say?
probably in /var/hda/web-apps/homeinv/logs/error_log
---
update - never mind, mciv to the rescue with actual info
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1
-
- Posts: 17
- Joined: Mon May 04, 2009 2:18 pm
Re: Home Inventory pictures
Hi
Yes i would not mind attempting fixing, if i can avoid reinstalling the app.
There is nothing like a real issue for getting in under the hood and getting your hands dirty and learning.
I have checked the logs and this appears to be the relevant line
[Mon May 04 22:32:49 2009] [error] [client 192.168.1.40] PHP Warning: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/php7ZKmNN' to '/var/hda/web-apps/homeinv/html/htdocs/images/items/mig.JPG' in /var/hda/web-apps/homeinv/html/environment.php on line 134, referer: http://homeinv/editPicture.php?id=17
Many thanks
Yes i would not mind attempting fixing, if i can avoid reinstalling the app.
There is nothing like a real issue for getting in under the hood and getting your hands dirty and learning.
I have checked the logs and this appears to be the relevant line
[Mon May 04 22:32:49 2009] [error] [client 192.168.1.40] PHP Warning: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/php7ZKmNN' to '/var/hda/web-apps/homeinv/html/htdocs/images/items/mig.JPG' in /var/hda/web-apps/homeinv/html/environment.php on line 134, referer: http://homeinv/editPicture.php?id=17
Many thanks
Re: Home Inventory pictures
The file in question is environment.php . Assuming you are having the problem I believe you are having which is a path issue you will need to go to line 125.
You should see
The fix is to simply remove htdocs so the lines reads as follows
If this doesn't fix the problem let us know.
You should see
Code: Select all
$dir_name = SITE_PATH . "htdocs/images/$sDest/";
Code: Select all
$dir_name = SITE_PATH . "images/$sDest/";
-
- Posts: 17
- Joined: Mon May 04, 2009 2:18 pm
Re: Home Inventory pictures
That was the problem and that has fixed it.
Much quicker and easier than re installing the app.
Many thanks for a quick and working fix, and a great application that is Amahi Home Server.
For those that find this post looking to fix their own Homeinv app the file is located at
/var/hda/web-apps/homeinv/html
Cheers
Roger
Much quicker and easier than re installing the app.
Many thanks for a quick and working fix, and a great application that is Amahi Home Server.
For those that find this post looking to fix their own Homeinv app the file is located at
/var/hda/web-apps/homeinv/html
Cheers
Roger
Who is online
Users browsing this forum: No registered users and 3 guests