Home Inventory pictures

Rogerrally
Posts: 17
Joined: Mon May 04, 2009 2:18 pm

Home Inventory pictures

Postby Rogerrally » Mon May 04, 2009 2:24 pm

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

mciv
Posts: 70
Joined: Mon Feb 02, 2009 9:52 am
Location: Augusta, ME

Re: Home Inventory pictures

Postby mciv » Mon May 04, 2009 8:03 pm

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.

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Home Inventory pictures

Postby cpg » Mon May 04, 2009 8:17 pm

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 :)
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

Rogerrally
Posts: 17
Joined: Mon May 04, 2009 2:18 pm

Re: Home Inventory pictures

Postby Rogerrally » Wed May 06, 2009 1:48 pm

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

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

mciv
Posts: 70
Joined: Mon Feb 02, 2009 9:52 am
Location: Augusta, ME

Re: Home Inventory pictures

Postby mciv » Thu May 07, 2009 7:25 am

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

Code: Select all

$dir_name = SITE_PATH . "htdocs/images/$sDest/";
The fix is to simply remove htdocs so the lines reads as follows

Code: Select all

$dir_name = SITE_PATH . "images/$sDest/";
If this doesn't fix the problem let us know.

Rogerrally
Posts: 17
Joined: Mon May 04, 2009 2:18 pm

Re: Home Inventory pictures

Postby Rogerrally » Thu May 07, 2009 11:17 am

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

Who is online

Users browsing this forum: No registered users and 25 guests