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

Issue when compiling site #6

Closed
9SL9 opened this issue Feb 25, 2016 · 24 comments
Closed

Issue when compiling site #6

9SL9 opened this issue Feb 25, 2016 · 24 comments

Comments

@9SL9
Copy link

9SL9 commented Feb 25, 2016

I just followed your instructions to install this app. The installation appears to go ok except I'm getting the following error when running: magenta setup:di:compile

I'm now unable to use my site (white screen on admin login). Any ideas???????

Errors during compilation:
MagePal\GmailSmtpApp\Controller\Adminhtml\Test\Index
Extra parameters passed to parent construct: $dataHelper. File: /var/www/html/magento/app/code/MagePal/GmailSmtpApp/Controller/Adminhtml/Test/Index.php
MagePal\GmailSmtpApp\Block\Adminhtml\System\Config\TestButton
Incorrect dependency in class MagePal\GmailSmtpApp\Block\Adminhtml\System\Config\TestButton in /var/www/html/magento/app/code/MagePal/GmailSmtpApp/Block/Adminhtml/System/Config/TestButton.php
\Magento\Framework\UrlInterface already exists in context object
Total Errors Count: 2
Errors during compilation:
MagePal\GmailSmtpApp\Controller\Adminhtml\Test\Index
Extra parameters passed to parent construct: $dataHelper. File: /var/www/html/magento/app/code/MagePal/GmailSmtpApp/Controller/Adminhtml/Test/Index.php
MagePal\GmailSmtpApp\Block\Adminhtml\System\Config\TestButton
Incorrect dependency in class MagePal\GmailSmtpApp\Block\Adminhtml\System\Config\TestButton in /var/www/html/magento/app/code/MagePal/GmailSmtpApp/Block/Adminhtml/System/Config/TestButton.php
\Magento\Framework\UrlInterface already exists in context object
Total Errors Count: 2
Errors during compilation:
MagePal\GmailSmtpApp\Controller\Adminhtml\Test\Index
Extra parameters passed to parent construct: $dataHelper. File: /var/www/html/magento/app/code/MagePal/GmailSmtpApp/Controller/Adminhtml/Test/Index.php
MagePal\GmailSmtpApp\Block\Adminhtml\System\Config\TestButton
Incorrect dependency in class MagePal\GmailSmtpApp\Block\Adminhtml\System\Config\TestButton in /var/www/html/magento/app/code/MagePal/GmailSmtpApp/Block/Adminhtml/System/Config/TestButton.php
\Magento\Framework\UrlInterface already exists in context object
Total Errors Count: 2

@srenon
Copy link
Contributor

srenon commented Feb 25, 2016

I'm reviewing this.

To get the site backup and running what happen if you run bin/magento setup:upgrade

@9SL9
Copy link
Author

9SL9 commented Feb 25, 2016

I just tried your suggestion. The command runs and completes successfully but still no login.

@srenon
Copy link
Contributor

srenon commented Feb 25, 2016

Try flush cache bin/magento cache:flush

@9SL9
Copy link
Author

9SL9 commented Feb 25, 2016

Tried that, still no luck. See here for an error from my log which I'm getting since my failed install:

http://magento.stackexchange.com/questions/103374/white-admin-login-screen-on-magento-2

@9SL9
Copy link
Author

9SL9 commented Feb 25, 2016

My white screen issue is now fixed..

@srenon
Copy link
Contributor

srenon commented Feb 25, 2016

What method fixed it?

@9SL9
Copy link
Author

9SL9 commented Feb 25, 2016

fixing ownership on var

@srenon
Copy link
Contributor

srenon commented Feb 25, 2016

ok.... R.S = srenon

@9SL9
Copy link
Author

9SL9 commented Feb 25, 2016

:)

@9SL9
Copy link
Author

9SL9 commented Feb 25, 2016

But do we still have an issue with your app? I'm hesitant to try it again..

@srenon
Copy link
Contributor

srenon commented Feb 25, 2016

Yes... I'm trying to figure what the errors and fix them

srenon added a commit that referenced this issue Feb 25, 2016
@srenon
Copy link
Contributor

srenon commented Feb 25, 2016

Download the latest and try again

@9SL9
Copy link
Author

9SL9 commented Feb 25, 2016

White admin login after installing..

@srenon
Copy link
Contributor

srenon commented Feb 25, 2016

Did you do bin/magento setup:upgrade

@9SL9
Copy link
Author

9SL9 commented Feb 25, 2016

yes

@srenon
Copy link
Contributor

srenon commented Feb 25, 2016

  1. Check your error log
  2. Delete your var/di

Which method did you use to install the module (manual or composer)?

@9SL9
Copy link
Author

9SL9 commented Feb 25, 2016

Just tried again from scratch using manual and same outcome. Deleted var/di

here's some output:
The following modules have been enabled:

  • MagePal_GmailSmtpApp

To make sure that the enabled modules are properly registered, run 'setup:upgrade'.
Cache cleared successfully.
Generated classes cleared successfully. Please re-run Magento compile command
Generated static view files cleared successfully.

php -f bin/magento setup:upgrade
Cache cleared successfully
File system cleanup:
/var/www/html/magento/var/generation/Composer
/var/www/html/magento/var/generation/Magento
/var/www/html/magento/var/generation/Symfony
The directory '/var/www/html/magento/var/di/' doesn't exist - skipping cleanup
Updating modules:
Schema creation/updates:
...
...
Please re-run Magento compile command
bin/magento setup:di:compile
Compilation was started.
Interception cache generation... 7/7 [============================] 100% 3 mins 371.5 MiBB5 MiB
Generated code and dependency injection configuration successfully.


unable to login..

@9SL9
Copy link
Author

9SL9 commented Feb 25, 2016

How do I enable logging/which log do I look in?

@srenon
Copy link
Contributor

srenon commented Feb 25, 2016

  1. Does it work without compile?
  2. Try to isolate the issue by deleting MagePal_GmailSmtpApp (move it to a different location) and re-run setup
  3. What is the output of bin/magento deploy:mode:show
  4. Take a look at your apache log and magento log at var/log (ie tail -f var/log/*)

@9SL9
Copy link
Author

9SL9 commented Feb 25, 2016

From my apache.log - the following occurs after installing your app and after trying to login as admin (with blank screen)

[Thu Feb 25 16:23:42.552648 2016] [:error] [pid 1597] [client 60.231.62.82:50292] PHP Fatal error: Uncaught exception 'Magento\Framework\Exception\LocalizedException' with message 'Can't create directory /var/www/html/magento/var/generation/Magento/Framework/App/ResourceConnection/.' in /var/www/html/magento/vendor/magento/framework/Code/Generator.php:103\nStack trace:\n#0 /var/www/html/magento/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\Framewo...')\n#1 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Magento\Framewo...')\n#2 [internal function]: spl_autoload_call('Magento\Framewo...')\n#3 /var/www/html/magento/vendor/magento/framework/Code/Reader/ClassReader.php(19): ReflectionClass->__construct('Magento\Framewo...')\n#4 /var/www/html/magento/vendor/magento/framework/ObjectManager/Definition/Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\Framewo...')\n#5 /var/www/html/magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(71): Magento\Framework\ObjectManager\ in /var/www/html/magento/vendor/magento/framework/Code/Generator.php on line 103

@srenon
Copy link
Contributor

srenon commented Feb 25, 2016

That is a permission issue again /var/www/html/magento/var/

@9SL9
Copy link
Author

9SL9 commented Feb 25, 2016

Ok that is fixed. But now I'm getting the following error when trying to send a test email:

5.7.9 Please log in with your web browser and then try again. Learn more at 5.7.9 https://support.google.com/mail/answer/78754 144sm14500496pfa.83 - smtp

I've followed the instructions on that page but still getting this error. correct password checked etc...

@srenon
Copy link
Contributor

srenon commented Feb 25, 2016

Did you follow option number 2 https://support.google.com/accounts/answer/6010255

@9SL9
Copy link
Author

9SL9 commented Feb 29, 2016

It appears to be working now...Thanks.

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

2 participants