Skip to content

[BUG] Magento 2 system configuration tab broken #151

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

Closed
aleksandrosadchiy opened this issue Mar 4, 2018 · 1 comment
Closed

[BUG] Magento 2 system configuration tab broken #151

aleksandrosadchiy opened this issue Mar 4, 2018 · 1 comment

Comments

@aleksandrosadchiy
Copy link

aleksandrosadchiy commented Mar 4, 2018

Bug:

1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Failed to check Service details.

Exception #0 (Magento\Framework\Exception\LocalizedException): Failed to check Service details.
#0 /var/www/html/vendor/fastly/magento2/Model/Config/Backend/ListAcl.php(48): Fastly\Cdn\Model\Api->checkServiceDetails()
#1 /var/www/html/vendor/magento/module-config/Model/Config/Structure/Element/Field.php(458): Fastly\Cdn\Model\Config\Backend\ListAcl->toOptionArray(true)
#2 /var/www/html/vendor/magento/module-config/Model/Config/Structure/Element/Field.php(376): Magento\Config\Model\Config\Structure\Element\Field->_getOptionsFromSourceModel(Object(Fastly\Cdn\Model\Config\Backend\ListAcl))

Added in since 1.2.43 by @tnikcevs
fastly/magento2/Model/Api.php

`

public function checkServiceDetails($test = false, $serviceId = null, $apiKey = null)
    {
        if (!$test) {
            $uri = rtrim($this->_getApiServiceUri(), '/');
            $result = $this->_fetch($uri);
        } else {
            $uri = $this->config->getApiEndpoint() . 'service/' . $serviceId;
            $result = $this->_fetch($uri, \Zend_Http_Client::GET, null, true, $apiKey);
        }

        if (!$result) {
            throw new LocalizedException(__('Failed to check Service details.'));
        }

        return $result;
    }

`
additional check breaks tab

Added by:
f7ee285

@vvuksan
Copy link
Contributor

vvuksan commented Mar 6, 2018

Fixed in #152

@vvuksan vvuksan closed this as completed Mar 6, 2018
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