fontis / australia-mage2

Fontis Australia extension for Magento 2
Open Software License 3.0
11 stars 18 forks source link

Cannot install #1

Closed ozgeekmum closed 7 years ago

ozgeekmum commented 8 years ago

Heyo,

Not having much luck installing this. Copied the files into app/code/Fontis/Australia Ran the magento setup:upgrade but failing with [Magento\Framework\Exception\LocalizedException]
Source class "\Fontis\CustomerGroupAccess\AccessCheck" for "Fontis\Customer
GroupAccess\AccessCheckFactory" generation does not exist.

This completely kills my local site - can't do any cli commands any more, or even login to the backend. Manually deleted all cache, pub/static.
No luck.

This was a vanilla Magento2 instance. Had used this deployment approach on two other branches with no problems.

Any suggestions?

chnorton commented 8 years ago

Have you tried installing the extension through Composer? Magento 2 has specifically been designed for extensions to be installed (and updated) through Composer:

http://devdocs.magento.com/guides/v2.0/extension-dev-guide/intro/intro-composer.html

More information about how to install via Composer can be found on our website:

https://www.fontis.com.au/composer-faq

Could you try installing through Composer and let me know if you're still running into this issue?

olibode commented 8 years ago

Hi, I'm unable to install using composer on Magento 2.1 because of a dependency issues.

Problem 1

Magento 2.1 composer.json is "magento/module-checkout": "100.1.0",

sanker2008 commented 8 years ago

After runing command: composer require fontis/australia-mage2

I got these:

[InvalidArgumentException]
Could not find package fontis/australia-mage2 at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability

After runing command: composer update

I got these:

Do not run Composer as root/super user! See https://getcomposer.org/root for details Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

  • The requested package magento/module-checkout could not be found in any version, there may be a typo in the package name. Problem 2
  • The requested package magento/module-directory could not be found in any version, there may be a typo in the package name. Problem 3
  • The requested package magento/module-payment could not be found in any version, there may be a typo in the package name. Problem 4
  • The requested package magento/module-store could not be found in any version, there may be a typo in the package name. Problem 5
  • The requested package magento/framework could not be found in any version, there may be a typo in the package name. Problem 6
  • Installation request for fontis/customergroupaccess-mage2 1.0.* -> satisfiable by fontis/customergroupaccess-mage2[1.0.0].
  • fontis/customergroupaccess-mage2 1.0.0 requires magento/framework 100.* -> no matching package found.

Potential causes:

Any help?

sanker2008 commented 8 years ago

Copy the code to: app/code/Fontis/Australia app/code/Fontis/CustomerGroupAccess

then I successed runing: php bin/magento setup:upgrade the extension installed! But I got error report when I open the cart page or checkout page:

a:4:{i:0;s:37:"Object DOMDocument should be created.";i:1;s:13792:"#0 /var/www/html/mt2/200/vendor/magento/framework/View/Element/UiComponent/Config/Reader.php(95): Magento\Framework\View\Element\UiComponent\Config\DomMerger->getDom()

1 /var/www/html/mt2/200/vendor/magento/module-ui/Model/Manager.php(261): Magento\Framework\View\Element\UiComponent\Config\Reader->read()

... .. .

brendanbell commented 8 years ago

Hi,

Is this package compatible with Magento ver. 2.1.2

Regards Brendan

kartguru commented 8 years ago

I too have really struggled to get this up and running. Has anyone successfully overcome some of these issues?

Cheers

lloydhazlett commented 8 years ago

@olibode @sanker2008 @brendanbell @kartguru Thank you all for letting us know of the problems you've encountered while installing the extension. I can confirm that we have identified a compatibility issue specifically with Magento 2.1 and we plan to release an update that should address it very soon.

chnorton commented 7 years ago

@olibode @sanker2008 @brendanbell @kartguru We've just pushed a new version, which updates the Composer module dependencies and should address the installation issue. Please give it a shot and let us know if there are any other problems.

brendanbell commented 7 years ago

Hi Chris,

Thanks for the update. I have the following magento version 2.1.2

I have run from shell the following composer require fontis/australia

this returned the following

`Using version ^3.1 for fontis/australia ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev)

I then ran the following php magento setup:upgrade

However I cannot see in the module list Fontis.

My question is this: I created an account on fontis, do I need to update the composer.json file to reflect the "Authorization: Token xxx-xxxx-xxxxxxxxx--xxx-x-x-x-x"

thanks again for your work on this extension

Brendan

chnorton commented 7 years ago

@brendanbell Yes, you will need to add the Authorization config into your composer.json file. You will also need to add the Magento 2 version of the Australia extension to your account to get access to it. After this you will be able to view the documentation for installing and setting it up.

The main thing is that the correct command to add it would be composer require fontis/australia-mage2.

Hope that helps!

brendanbell commented 7 years ago

Hi Chris,

  1. Updated composer.json file (see attached text file)
  2. Ran composer update
  3. Placed an order for the fontis extension
  4. ran composer require fontis/australia-mage2

Received the following error:

[InvalidArgumentException] Could not find package fontis/australia-mage2 at any version for your minimum-stability (alpha). Check the package spelling or your minimum-stability

composer.txt

chnorton commented 7 years ago

@brendanbell This looks to have been an issue on our end - would you mind trying again? You should be able to run composer require fontis/australia-mage2 now and have it pick up that the extension is available.

kartguru commented 7 years ago

It appears to be working now for me though I haven't completed my dev site to process any orders.

Thanks for your help @chnorton and team