Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I just have a problem #318

Closed
cormansa opened this issue Feb 2, 2023 · 7 comments
Closed

I just have a problem #318

cormansa opened this issue Feb 2, 2023 · 7 comments

Comments

@cormansa
Copy link

cormansa commented Feb 2, 2023

The file exist in the specified path and right are good :
-rw-r-----. 1 root apache 745 Feb 2 13:36 /mnt/www/bascule/application/views/scripts/error/error.phtml

so I don't know where is the problem (zf 1.22)

Uncaught Zend_View_Exception: script 'error/error.phtml' not found in path (/mnt/www/bascule/application/views/scripts/:./views/scripts/) in /mnt/www/lib/zf1-future-release-1.22.0/library/Zend/View/Abstract.php:986 Stack trace: #0 /mnt/www/lib/zf1-future-release-1.22.0/library/Zend/View/Abstract.php(882): Zend_View_Abstract->_script('error/error.pht...') #1 /mnt/www/lib/zf1-future-release-1.22.0/library/Zend/Controller/Action/Helper/ViewRenderer.php(910): Zend_View_Abstract->render('error/error.pht...') #2 /mnt/www/lib/zf1-future-release-1.22.0/library/Zend/Controller/Action/Helper/ViewRenderer.php(931): Zend_Controller_Action_Helper_ViewRenderer->renderScript('error/error.pht...', NULL) #3 /mnt/www/lib/zf1-future-release-1.22.0/library/Zend/Controller/Action/Helper/ViewRenderer.php(970): Zend_Controller_Action_Helper_ViewRenderer->render() #4 /mnt/www/lib/zf1-future-release-1.22.0/library/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch() #5 /mnt/www/lib/ in /mnt/www/lib/zf1-future-release-1.22.0/library/Zend/Controller/Plugin/Broker.php on line 335

@glensc
Copy link
Collaborator

glensc commented Feb 2, 2023

@cormansa edit your bug report and put pastes to markdown code fence

@hungtrinh
Copy link

@cormansa

Above file privileges it's ok if you use apache web sever (not nginx)

Quick fix please try this first: chmod +r /mnt/www/bascule/application/views/scripts/error/error.phtml
if not ok so may be your problem, it's something like that https://www.svnlabs.com/blogs/centos-7-selinux-apache-php-writeaccess-permission/

@glensc
Copy link
Collaborator

glensc commented Feb 7, 2023

you may also need to check every parent directory of the file

  1. /mnt/www/bascule/application/views/scripts/error
  2. /mnt/www/bascule/application/views/scripts
  3. /mnt/www/bascule/application/views
  4. ...and so on

best to check is to sudo to target user, i.e apache:

sudo -u apache head -n1 /mnt/www/bascule/application/views/scripts/error/error.phtml

check first what your webserver user is with ps -ef

@cormansa
Copy link
Author

cormansa commented Feb 7, 2023 via email

@cormansa
Copy link
Author

cormansa commented Feb 7, 2023 via email

@glensc
Copy link
Collaborator

glensc commented Feb 7, 2023

@cormansa. can you edit your posts to remove cruft from emails?

and seems you totally omitted my reply:

and post terminal output of the commands if you want to show proof the file is readable for webserver user.

@cormansa
Copy link
Author

cormansa commented Feb 7, 2023

It’s work…

Your comment #318 help me.

thank you and I'm happy that someone continue to maintain zf1

@cormansa cormansa closed this as completed Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants