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

development mode enable throws fatal error #35

Open
michalbundyra opened this issue Jan 10, 2020 · 5 comments
Open

development mode enable throws fatal error #35

michalbundyra opened this issue Jan 10, 2020 · 5 comments

Comments

@michalbundyra
Copy link
Member

Running the latest version of Apigility (1.3.2), if I disable development mode, the server just returns 500 errors for both the admin panel and any http reqeusts to the API. When trying to re-enable development mode, php throws a fatal error and the API still won't respond.

It seems like a path was hardcoded in:

$ php public/index.php development enable 
PHP Warning:  require_once(/home/matthew/sandbox/zf-apigility-skeleton-1.3.2/module/Application/Module.php): failed to open stream: No such file or directory in [...]/vendor/zendframework/zend-loader/src/ModuleAutoloader.php on line 147
PHP Fatal error:  require_once(): Failed opening required '/home/matthew/sandbox/zf-apigility-skeleton-1.3.2/module/Application/Module.php' (include_path='.:/usr/local/share/pear') in [...]/vendor/zendframework/zend-loader/src/ModuleAutoloader.php on line 147

Originally posted by @NickClaywell at zfcampus/zf-apigility#154

@michalbundyra
Copy link
Member Author

I'm in the same situation, follow exactly what was in the tutorial in https://apigility.org/documentation/modules/zf-development-mode site

UPDATE
I had the same problem, this is the cache on the date folder, it is seeking a path that does not exist, just delete the folder cache date that will work
/home/matthew/sandbox/zf-apigility-skeleton-1.3.2/module/Application/Module.php'


Originally posted by @jerfeson at zfcampus/zf-apigility#154 (comment)

@michalbundyra
Copy link
Member Author

Also you can rename manual development.config.php.dist to development.config.php from config folder and development mode will be enabled.


Originally posted by @zbintiosul at zfcampus/zf-apigility#154 (comment)

@michalbundyra
Copy link
Member Author

This disable maintenance mode, but it does not solve the problem he reported.


Originally posted by @jerfeson at zfcampus/zf-apigility#154 (comment)

@michalbundyra
Copy link
Member Author

To solve clean the files in data/cache


Originally posted by @lucianoreis at zfcampus/zf-apigility#154 (comment)

@michalbundyra
Copy link
Member Author

in config/development.config.php comment this line

//'ZF\Apigility\Welcome',


Originally posted by @ghost at zfcampus/zf-apigility#154 (comment)

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

1 participant