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

PHP Strict Standards: Only variables should be passed by reference #1

Closed
ken-muturi opened this issue Aug 10, 2016 · 1 comment
Closed
Labels

Comments

@ken-muturi
Copy link

so-l047:disco-php Beloved$ php disco db-restore-structure

PHP Strict Standards: Only variables should be passed by reference in /Users/Beloved/Sites/PHP/disco-php/vendor/discophp/framework/core/classes/App.class.php on line 150

Strict Standards: Only variables should be passed by reference in /Users/Beloved/Sites/PHP/disco-php/vendor/discophp/framework/core/classes/App.class.php on line 150
PHP Fatal error: Uncaught exception 'Exception' with message 'Config key DEV_MODE does not exist!' in /Users/Beloved/Sites/PHP/disco-php/vendor/discophp/framework/core/classes/App.class.php:317
Stack trace:
#0 /Users/Beloved/Sites/PHP/disco-php/vendor/discophp/framework/core/classes/App.class.php(177): Disco\classes\App->config('DEV_MODE')
#1 /Users/Beloved/Sites/PHP/disco-php/vendor/discophp/framework/core/classes/App.class.php(123): Disco\classes\App->__construct(NULL, NULL)
#2 /Users/Beloved/Sites/PHP/disco-php/disco(10): Disco\classes\App::instance()
#3 {main}

thrown in /Users/Beloved/Sites/PHP/disco-php/vendor/discophp/framework/core/classes/App.class.php on line 317

Fatal error: Uncaught exception 'Exception' with message 'Config key DEV_MODE does not exist!' in /Users/Beloved/Sites/PHP/disco-php/vendor/discophp/framework/core/classes/App.class.php:317
Stack trace:
#0 /Users/Beloved/Sites/PHP/disco-php/vendor/discophp/framework/core/classes/App.class.php(177): Disco\classes\App->config('DEV_MODE')
#1 /Users/Beloved/Sites/PHP/disco-php/vendor/discophp/framework/core/classes/App.class.php(123): Disco\classes\App->__construct(NULL, NULL)
#2 /Users/Beloved/Sites/PHP/disco-php/disco(10): Disco\classes\App::instance()
#3 {main}

thrown in /Users/Beloved/Sites/PHP/disco-php/vendor/discophp/framework/core/classes/App.class.php on line 317

@jbhamilton
Copy link
Collaborator

jbhamilton commented Aug 10, 2016

What version is this on? The stand alone disco executable was deprecated as of version 3.0.0 and the CLI syntax now works like:
php public/index.php db-restore 'app/db/' 'YOUR_STRUCTURE_FILE'
See http://discophp.com/docs/command-line-interface for more information on the CLI.

It appears your using a project wrapper that was for versions pre 3.0.0 and a version of the framework that is 3.0.0 or later. You're using at least using version 3.0.2 as this is when exceptions starting being thrown when accessing config keys that don't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants