Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-01-2008, 11:37 PM
Junior Member
 
Join Date: Apr 2008
Posts: 2
Default New File Upload (sftp) causes "not found in path"

I am fairly new to Zend Framework. We have been using it fairly successfully, but since we moved to a new Linux server (was on windows - no comments please) we are having issues when we add a new file, specifically a new view file.

The error is of the type:

Fatal error: Uncaught exception 'Zend_View_Exception' with message 'script 'travel/index.phtml' not found in path (application/views/scripts/)'...

This file is there, and is referenced correctly by the controller. If we change the owner of the file to www-data, it works. When we upload the file, it is uploaded as portadmin user in the portedit group (these is a user/group we created). The www-data user is also in the portedit group as far as I can tell.

If I load a file in our Public folder not controlled by Zend, it works just fine without changing the owner.

So my question is, does ZF require the files to have www-data as the owner? If not, ny other ideas as to what may be going on?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-02-2008, 11:35 PM
Junior Member
 
Join Date: Apr 2008
Posts: 2
Default Additional Info

The ownership in actuality does not appear to be defendant on the files, but on the file directory, so if the files are owned by portedit but the view/scripts directory is www-data, then the page works fine.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-03-2008, 07:06 AM
Junior Member
 
Join Date: Apr 2008
Posts: 28
Default

Quote:
Originally Posted by litmusbox View Post
The ownership in actuality does not appear to be defendant on the files, but on the file directory, so if the files are owned by portedit but the view/scripts directory is www-data, then the page works fine.
Try putting index.phtml as Index.phtml. I had a similar problem a few days ago. Worked locally fine (running it locally on windows with XAMPP installed), but when i put it on a linux server it didn't work. I think all your filenames are supposed to start with a capital letter?

Try it.. it might work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 03:13 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

No, only controller and model files are supposed to be capitalized. View scripts should be lowercase.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:28 AM.