(on Wednesday, 04 March 2009, 08:51 PM -0800):
> Any idea what I broke to cause all of these errors to start showing up?
>
> All I'm doing is calling an empty action on a controller and the view
> just has the text "hello?".
>
> Thanks,
>
> Ed
>
>
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(Zend/Dojo/View/Helper/Doctype.php) [<a
> href='function.fopen'>function.fopen</a>]: failed to open stream: No
> such file or directory
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(/www/vhosts/local.domain.com/application/views/helpers/Doctype.php)
> [<a href='function.fopen'>function.fopen</a>]: failed to open stream:
> No such file or directory
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(./views/helpers/Doctype.php) [<a
> href='function.fopen'>function.fopen</a>]: failed to open stream: No
> such file or directory
Actually, looking more closely at the messages, I can see what's going
on right here... and nothing broke.
The PluginLoader, which is used by Zend_View to locate helpers, iterates
over the various paths attached to it, and does an isReadable check for
the class file on each include path until it finds the one that works.
Inside Zend_Loader, we reset the include_path briefly, and then use
fopen() to search against it -- fopen() tries to open the file against
the include_path, which is faster than iterating over all include paths.
However... fopen(), in addition to returning false on failure, also
emits an E_WARNING. We suppress that -- but if you are logging errors,
they'll still show up in the error log.
Does the layout script still render? or are you perhaps using the new
"scream" extension (which suppresses... error suppression)?
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(Zend/Dojo/View/Helper/HeadTitle.php) [<a
> href='function.fopen'>function.fopen</a>]: failed to open stream: No
> such file or directory
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(/www/vhosts/local.domain.com/application/views/helpers/HeadTitle.php)
> [<a href='function.fopen'>function.fopen</a>]: failed to open stream:
> No such file or directory
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(./views/helpers/HeadTitle.php) [<a
> href='function.fopen'>function.fopen</a>]: failed to open stream: No
> such file or directory
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(Zend/Dojo/View/Helper/HeadScript.php) [<a
> href='function.fopen'>function.fopen</a>]: failed to open stream: No
> such file or directory
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(/www/vhosts/local.domain.com/application/views/helpers/HeadScript.php)
> [<a href='function.fopen'>function.fopen</a>]: failed to open stream:
> No such file or directory
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(./views/helpers/HeadScript.php) [<a
> href='function.fopen'>function.fopen</a>]: failed to open stream: No
> such file or directory
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(Zend/Dojo/View/Helper/HeadStyle.php) [<a
> href='function.fopen'>function.fopen</a>]: failed to open stream: No
> such file or directory
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(/www/vhosts/local.domain.com/application/views/helpers/HeadStyle.php)
> [<a href='function.fopen'>function.fopen</a>]: failed to open stream:
> No such file or directory
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(./views/helpers/HeadStyle.php) [<a
> href='function.fopen'>function.fopen</a>]: failed to open stream: No
> such file or directory
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(Zend/Dojo/View/Helper/Layout.php) [<a
> href='function.fopen'>function.fopen</a>]: failed to open stream: No
> such file or directory
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(/www/vhosts/local.domain.com/application/views/helpers/Layout.php)
> [<a href='function.fopen'>function.fopen</a>]: failed to open stream:
> No such file or directory
> Debug Warning: /domain.com/library/Zend/Loader.php line 165 -
> fopen(./views/helpers/Layout.php) [<a
> href='function.fopen'>function.fopen</a>]: failed to open stream: No
> such file or directory
>
--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论