1

I'm currently modifying a converted Magento 1.9 module to be used for Magento-2 but i keep getting this error:

Object DOMDocument should be created

It happens every time I try to access the login page.

I put the module in a GitHub project found here.

If anyone can tell me what normally causes this error that'd be great.

system.log stack:

[2016-11-10 12:01:21] main.CRITICAL: Class Inchoo\SocialConnect\Model\Google\Client does not exist [] []
[2016-11-10 12:01:21] main.CRITICAL: Invalid block type: Inchoo\SocialConnect\Block\Login [] []
[2016-11-10 12:01:21] main.CRITICAL: Class Inchoo\SocialConnect\Model\Google\Client does not exist [] []
[2016-11-10 12:01:21] main.CRITICAL: Invalid block type: Inchoo\SocialConnect\Block\Google\Button [] []
[2016-11-10 12:01:21] main.CRITICAL: Class Inchoo\SocialConnect\Model\Facebook\Client does not exist [] []
[2016-11-10 12:01:21] main.CRITICAL: Invalid block type: Inchoo\SocialConnect\Block\Facebook\Button [] []
[2016-11-10 12:01:21] main.CRITICAL: Class Inchoo\SocialConnect\Model\Twitter\Client does not exist [] []
[2016-11-10 12:01:21] main.CRITICAL: Invalid block type: Inchoo\SocialConnect\Block\Twitter\Button [] []
[2016-11-10 12:01:21] main.CRITICAL: Class Inchoo\SocialConnect\Model\Pixelpin\Client does not exist [] []
[2016-11-10 12:01:21] main.CRITICAL: Invalid block type: Inchoo\SocialConnect\Block\Pixelpin\Button [] []
8
  • You need to deploy the content using setup:static-content:deploy command It will generate files in var/genaration folder. It will remove this error i think and remove contents in var/generation, var/cache before deploying contents. Nov 10 '16 at 10:50
  • Which file and which line are you getting the error ? Nov 10 '16 at 10:51
  • @NitinPawar I do that everytime i update the module
    – Callum
    Nov 10 '16 at 10:53
  • @RaphaelatDigitalPianism The error doesn't say much, i'll edit the question with the error log
    – Callum
    Nov 10 '16 at 10:53
  • @NitinPawar In fact i haven't been removing the contents in var/generation and var cache, i'll try that now
    – Callum
    Nov 10 '16 at 11:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.