[GH-ISSUE #159] Zend_Controller_Action_Exception on fresh installation #126

Closed
opened 2026-02-26 09:36:06 +03:00 by kerem · 11 comments
Owner

Originally created by @dmitrydonskih on GitHub (Nov 8, 2015).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/159

Hello, I've faced such error on a fresh installation of ViMbAdmin:

Fatal error: Uncaught exception 'Zend_Controller_Action_Exception' with message 'ViewRenderer initialization failed: retrieved view base path is empty' in /opt/vimbadmin/vendor/zendframework/zendframework1/library/Zend/Controller/Action/Helper/ViewRenderer.php:475 Stack trace: #0 /opt/vimbadmin/vendor/zendframework/zendframework1/library/Zend/Controller/Action/Helper/ViewRenderer.php(516): Zend_Controller_Action_Helper_ViewRenderer->initView() #1 /opt/vimbadmin/vendor/zendframework/zendframework1/library/Zend/Controller/Action/HelperBroker.php(253): Zend_Controller_Action_Helper_ViewRenderer->init() #2 /opt/vimbadmin/vendor/zendframework/zendframework1/library/Zend/Controller/Action.php(132): Zend_Controller_Action_HelperBroker->__construct(Object(ErrorController)) #3 /opt/vimbadmin/vendor/opensolutions/oss-framework/src/OSS/Controller/Action.php(119): Zend_Controller_Action->__construct(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http), Array) #4 /opt/vimbadmin/library/ViMbAdmin/Controller/Actio in /opt/vimbadmin/vendor/zendframework/zendframework1/library/Zend/Controller/Plugin/Broker.php on line 336

CentOS 6.6, fresh git-2.6.3, composer -1.0-dev, php-5.4.45, nginx.
I've downloaded tarball vimbadmin-3.0.12, installed with composer (all ok), setup database (schema validation ok), set file permissions on var/, copy-edit application.ini from *.dist, copy .htaccess from *.dist, test it with php -S lo:8080 -t public/ and get an error... What have I missed?

Originally created by @dmitrydonskih on GitHub (Nov 8, 2015). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/159 Hello, I've faced such error on a fresh installation of ViMbAdmin: > Fatal error: Uncaught exception 'Zend_Controller_Action_Exception' with message 'ViewRenderer initialization failed: retrieved view base path is empty' in /opt/vimbadmin/vendor/zendframework/zendframework1/library/Zend/Controller/Action/Helper/ViewRenderer.php:475 Stack trace: #0 /opt/vimbadmin/vendor/zendframework/zendframework1/library/Zend/Controller/Action/Helper/ViewRenderer.php(516): Zend_Controller_Action_Helper_ViewRenderer->initView() #1 /opt/vimbadmin/vendor/zendframework/zendframework1/library/Zend/Controller/Action/HelperBroker.php(253): Zend_Controller_Action_Helper_ViewRenderer->init() #2 /opt/vimbadmin/vendor/zendframework/zendframework1/library/Zend/Controller/Action.php(132): Zend_Controller_Action_HelperBroker->__construct(Object(ErrorController)) #3 /opt/vimbadmin/vendor/opensolutions/oss-framework/src/OSS/Controller/Action.php(119): Zend_Controller_Action->__construct(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http), Array) #4 /opt/vimbadmin/library/ViMbAdmin/Controller/Actio in /opt/vimbadmin/vendor/zendframework/zendframework1/library/Zend/Controller/Plugin/Broker.php on line 336 CentOS 6.6, fresh git-2.6.3, composer -1.0-dev, php-5.4.45, nginx. I've downloaded tarball `vimbadmin-3.0.12`, installed with composer (all ok), setup database (schema validation ok), set file permissions on `var/`, copy-edit `application.ini` from *.dist, copy `.htaccess` from *.dist, test it with `php -S lo:8080 -t public/` and get an error... What have I missed?
kerem closed this issue 2026-02-26 09:36:06 +03:00
Author
Owner

@syslino commented on GitHub (Dec 1, 2015):

+1

<!-- gh-comment-id:160927996 --> @syslino commented on GitHub (Dec 1, 2015): +1
Author
Owner

@lexpierce commented on GitHub (Jan 21, 2016):

+1

<!-- gh-comment-id:173503916 --> @lexpierce commented on GitHub (Jan 21, 2016): +1
Author
Owner

@hassansin commented on GitHub (Jan 22, 2016):

Same for me.

<!-- gh-comment-id:173819911 --> @hassansin commented on GitHub (Jan 22, 2016): Same for me.
Author
Owner

@barryo commented on GitHub (Jan 22, 2016):

Folks - I have done an install from scratch following the official instrauctions and I cannot recreate the above.

I note that PHP5.4 is mentioned above which is end of life.

Is anyone using a newer version? My test was on 7.0.

<!-- gh-comment-id:173963793 --> @barryo commented on GitHub (Jan 22, 2016): Folks - I have done an install from scratch following [the official instrauctions](https://github.com/opensolutions/ViMbAdmin/wiki/Installation) and I cannot recreate the above. I note that PHP5.4 is mentioned above which is end of life. Is anyone using a newer version? My test was on 7.0.
Author
Owner

@nckbnv commented on GitHub (Jan 22, 2016):

It's not because of the php version, I've installed php 5.6 after seeing this with the default 5.4.16 on CentOS 7 and the error was still there.

After taking a closer look I saw the following error:
[Fri Jan 22 13:10:17 2016] PHP Fatal error: Uncaught exception 'Zend_Filter_Exception' with message 'The given encoding 'ISO-8859-1' is not supported by mbstring' in /var/www/vimbadmin/vendor/zendframework/zendframework1/library/Zend/Filter/StringToLower.php:97
After installing the php-mbstring rpm the error went away.

I've tried a few things simultaneously at the time, therefore I can't be sure that was what solved it, but you can give it a try.

<!-- gh-comment-id:174029219 --> @nckbnv commented on GitHub (Jan 22, 2016): It's not because of the php version, I've installed php 5.6 after seeing this with the default 5.4.16 on CentOS 7 and the error was still there. After taking a closer look I saw the following error: `[Fri Jan 22 13:10:17 2016] PHP Fatal error: Uncaught exception 'Zend_Filter_Exception' with message 'The given encoding 'ISO-8859-1' is not supported by mbstring' in /var/www/vimbadmin/vendor/zendframework/zendframework1/library/Zend/Filter/StringToLower.php:97` After installing the `php-mbstring` rpm the error went away. I've tried a few things simultaneously at the time, therefore I can't be sure that was what solved it, but you can give it a try.
Author
Owner

@barryo commented on GitHub (Jan 22, 2016):

I tend to always have mbstring installed. @hassansin / @lexpierce / @LNQ / @dmitrydonskih - can any of you confirm if installing mbstring (and restarting apache / the PHP web server helps)?

<!-- gh-comment-id:174033319 --> @barryo commented on GitHub (Jan 22, 2016): I tend to always have mbstring installed. @hassansin / @lexpierce / @LNQ / @dmitrydonskih - can any of you confirm if installing mbstring (and restarting apache / the PHP web server helps)?
Author
Owner

@dmitrydonskih commented on GitHub (Jan 22, 2016):

Looks like YES, it worked for me.
+php54w-mbstring
+php54w-pear
+php54w-pecl-memcache
+php54w-pecl-memcached
did the job.

<!-- gh-comment-id:174045020 --> @dmitrydonskih commented on GitHub (Jan 22, 2016): Looks like YES, it worked for me. +php54w-mbstring +php54w-pear +php54w-pecl-memcache +php54w-pecl-memcached did the job.
Author
Owner

@barryo commented on GitHub (Jan 22, 2016):

Great - added a note in the documentation. Thanks!

<!-- gh-comment-id:174046285 --> @barryo commented on GitHub (Jan 22, 2016): Great - added a note in the documentation. Thanks!
Author
Owner

@hassansin commented on GitHub (Jan 22, 2016):

Yup, enabling mbstring did the trick!

<!-- gh-comment-id:174064719 --> @hassansin commented on GitHub (Jan 22, 2016): Yup, enabling `mbstring` did the trick!
Author
Owner

@lexpierce commented on GitHub (Jan 22, 2016):

Fixed here. Thanks!

<!-- gh-comment-id:174070212 --> @lexpierce commented on GitHub (Jan 22, 2016): Fixed here. Thanks!
Author
Owner

@hassansin commented on GitHub (Jan 22, 2016):

And if running with docker official php image, you need both 'mbstring' and 'gettext' extensions:

RUN docker-php-ext-install  mbstring  gettext
<!-- gh-comment-id:174078273 --> @hassansin commented on GitHub (Jan 22, 2016): And if running with docker official php image, you need both 'mbstring' and 'gettext' extensions: ``` RUN docker-php-ext-install mbstring gettext ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#126
No description provided.