[GH-ISSUE #93] vimbadmin 3.x - unable to create database tables #70

Closed
opened 2026-02-26 09:35:37 +03:00 by kerem · 8 comments
Owner

Originally created by @wdetter on GitHub (Jun 10, 2014).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/93

Hi everybody,

trying to set up latest version from git, stuck during creation of tables:

root@mail:/var/www/vimbadmin# ./bin/doctrine2-cli.php orm:schema-tool:create
PHP Notice: Undefined index: doctrine2 in /var/www/vimbadmin/bin/utils.inc on line 80
PHP Notice: Undefined index: doctrine2cache in /var/www/vimbadmin/vendor/opensolutions/oss-framework/src/OSS/Resource/Doctrine2.php on line 88
ERROR: Doctrine2 requires Doctrine2Cache to have been already bootstrapped

Regards,
Werner

Originally created by @wdetter on GitHub (Jun 10, 2014). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/93 Hi everybody, trying to set up latest version from git, stuck during creation of tables: root@mail:/var/www/vimbadmin# ./bin/doctrine2-cli.php orm:schema-tool:create PHP Notice: Undefined index: doctrine2 in /var/www/vimbadmin/bin/utils.inc on line 80 PHP Notice: Undefined index: doctrine2cache in /var/www/vimbadmin/vendor/opensolutions/oss-framework/src/OSS/Resource/Doctrine2.php on line 88 ERROR: Doctrine2 requires Doctrine2Cache to have been already bootstrapped Regards, Werner
kerem closed this issue 2026-02-26 09:35:37 +03:00
Author
Owner

@barryo commented on GitHub (Jun 10, 2014):

Please follow the installation instructions. The above looks like you have no database configuration:

https://github.com/opensolutions/ViMbAdmin/wiki/Installation#configuration

Closing for now - please reply if this isn't your issue.

<!-- gh-comment-id:45637305 --> @barryo commented on GitHub (Jun 10, 2014): Please follow the installation instructions. The above looks like you have no database configuration: https://github.com/opensolutions/ViMbAdmin/wiki/Installation#configuration Closing for now - please reply if this isn't your issue.
Author
Owner

@wdetter commented on GitHub (Jun 10, 2014):

Well, that's exactly what I did :)

<!-- gh-comment-id:45637411 --> @wdetter commented on GitHub (Jun 10, 2014): Well, that's exactly what I did :)
Author
Owner

@barryo commented on GitHub (Jun 10, 2014):

You missed something:

PHP Notice: Undefined index: doctrine2 in /var/www/vimbadmin/bin/utils.inc on line 80

which is:

$plugin = new OSS_Resource_Doctrine2( $config['doctrine2'] );

Did you copy application.ini.dist to application.ini ?

Either way, please go back and review each step. I have successfully installed the latest version (as have others) without issue...

<!-- gh-comment-id:45637787 --> @barryo commented on GitHub (Jun 10, 2014): You missed something: > PHP Notice: Undefined index: doctrine2 in /var/www/vimbadmin/bin/utils.inc on line 80 which is: ``` php $plugin = new OSS_Resource_Doctrine2( $config['doctrine2'] ); ``` Did you copy `application.ini.dist` to `application.ini` ? Either way, please go back and review each step. I have successfully installed the latest version (as have others) without issue...
Author
Owner

@wdetter commented on GitHub (Jun 10, 2014):

I've searched around and found that I've got an old doctrine connection string (from vimbadmin2) in the application.ini. My bad :)

Thanks and regards,
Werner

<!-- gh-comment-id:45638284 --> @wdetter commented on GitHub (Jun 10, 2014): I've searched around and found that I've got an old doctrine connection string (from vimbadmin2) in the application.ini. My bad :) Thanks and regards, Werner
Author
Owner

@barryo commented on GitHub (Jun 10, 2014):

😄

<!-- gh-comment-id:45638321 --> @barryo commented on GitHub (Jun 10, 2014): :smile:
Author
Owner

@wdetter commented on GitHub (Jun 10, 2014):

👍

<!-- gh-comment-id:45638589 --> @wdetter commented on GitHub (Jun 10, 2014): :+1:
Author
Owner

@fandisus commented on GitHub (Jul 16, 2019):

Hi. I am on ubuntu 18.04, with PHP 7.3.7, MySQL 5.7.26. I followed the instruction, but end up with some warning and "could not find driver" error messages.

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /srv/vimbadmin/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2640

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /srv/vimbadmin/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2640

[Doctrine\DBAL\Exception\DriverException]
An exception occured in driver: could not find driver

[Doctrine\DBAL\Driver\PDOException]
could not find driver

[PDOException]
could not find driver

orm:schema-tool:create [--dump-sql]

Got suggestion?

<!-- gh-comment-id:511877892 --> @fandisus commented on GitHub (Jul 16, 2019): Hi. I am on ubuntu 18.04, with PHP 7.3.7, MySQL 5.7.26. I followed the instruction, but end up with some warning and "could not find driver" error messages. > PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /srv/vimbadmin/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2640 > > Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /srv/vimbadmin/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2640 > > > [Doctrine\DBAL\Exception\DriverException] > An exception occured in driver: could not find driver > > > > [Doctrine\DBAL\Driver\PDOException] > could not find driver > > > > [PDOException] > could not find driver > > > orm:schema-tool:create [--dump-sql] > Got suggestion?
Author
Owner

@barryo commented on GitHub (Jul 17, 2019):

@fandisus - this looks like you don't have php-mysql installed.

<!-- gh-comment-id:512457074 --> @barryo commented on GitHub (Jul 17, 2019): @fandisus - this looks like you don't have php-mysql installed.
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#70
No description provided.