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

An alias "speckcatalog_db" was requested but no service could be found #39

Closed
dipakdotyadav opened this issue Mar 21, 2014 · 3 comments
Closed

Comments

@dipakdotyadav
Copy link

i was able to setup/install speckcommerce successfully on my local system the tables were created as well, but after completion when i browse the project it gives below error.

"An alias "speckcatalog_db" was requested but no service could be found."

please suggest.

@lukeocodes
Copy link

I get this same error.

@shipleyr
Copy link
Contributor

'speckcatalog_db' is a service alias defined in https://github.com/speckcommerce/SpeckCatalog/blob/master/config/services/servicemanager.php#L44. The only place it's called is in an initializer just below. I wouldn't mind guessing that the actual problem is that a database config file has not been created in your autoload directory. In the directory config/autoload create a file called 'database.config.php' and put the below in it...

<?php
/**
 * Database connection parameters.
 */
return array(
    'db' => array(
        'dsn'       => 'mysql:dbname=<<DB_NAME>>;host=<<DB_HOST>>',
        'username'  => '<<DB_USERNAME>>',
        'password'  => '<<DB_PASSWORD>>',
    ),
);

*obviously replacing the <<>> bits with actual values and try it again.

@lukeocodes
Copy link

Exactly what I needed, thanks mate!

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