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

PHP Fatal error: Uncaught Error: Call to a member function getRealPath() on null in /system/library/Extension/ExtensionBase.php:96 #213

Open
arnisjuraga opened this issue Aug 13, 2018 · 5 comments

Comments

@arnisjuraga
Copy link
Contributor

Latest 84c0a81,
if I have any Extensions in /extensions/ folder, then login into Admin triggers an error:

PHP Fatal error:  Uncaught Error: Call to a member function getRealPath() on null in /system/library/Extension/ExtensionBase.php:96

because $this->extensionItem->path is UNDEFINIED

@prhost
Copy link
Contributor

prhost commented Aug 14, 2018

need more information about your extension, execute dump the variable $this->extensionItem in line 96

https://github.com/copona/copona/blob/master/system/library/Extension/ExtensionBase.php#L96

@arnisjuraga
Copy link
Contributor Author

arnisjuraga commented Aug 14, 2018

The problem appears for every extension, not only this one:

/public_html/system/library/Extension/ExtensionBase.php:96:
object(Copona\System\Library\Extension\ExtensionItem)[35]
  public 'name' => string 'Swedbank' (length=8)
  public 'vendor' => string 'IndeedPro' (length=9)
  public 'namespace' => string 'Extension\IndeedPro\Swedbank' (length=28)
  public 'instance' => 
    object(Extension\Indeedpro\Swedbank\Extension)[29]
      protected 'extensionItem' => 
        &object(Copona\System\Library\Extension\ExtensionItem)[35]
      protected 'registry' => 
        object(Registry)[5]
          protected 'resolved' => 
            array (size=9)
              ...
          protected 'bindings' => 
            array (size=11)
              ...
          protected 'methodBindings' => 
            array (size=0)
              ...
          protected 'instances' => 
            array (size=25)
              ...
          protected 'aliases' => 
            array (size=0)
              ...
          protected 'abstractAliases' => 
            array (size=0)
              ...
          protected 'extenders' => 
            array (size=0)
              ...
          protected 'tags' => 
            array (size=0)
              ...
          protected 'buildStack' => 
            array (size=0)
              ...
          protected 'with' => 
            array (size=0)
              ...
          public 'contextual' => 
            array (size=0)
              ...
          protected 'reboundCallbacks' => 
            array (size=0)
              ...
          protected 'globalResolvingCallbacks' => 
            array (size=0)
              ...
          protected 'globalAfterResolvingCallbacks' => 
            array (size=0)
              ...
          protected 'resolvingCallbacks' => 
            array (size=0)
              ...
          protected 'afterResolvingCallbacks' => 
            array (size=0)
              ...
  public 'files' => 
    array (size=18)
      0 => string '/public_html/extensions/IndeedPro/Swedbank/logger.php' (length=85)
      1 => string '/public_html/extensions/IndeedPro/Swedbank/composer.json' (length=88)
      2 => string '/public_html/extensions/IndeedPro/Swedbank/catalog/controller/extension/payment/swedbank_portal.php' (length=131)
      3 => string '/public_html/extensions/IndeedPro/Swedbank/catalog/model/extension/payment/swedbank_portal.php' (length=126)
      4 => string '/public_html/extensions/IndeedPro/Swedbank/catalog/view/theme/default/img/sw.png' (length=112)
      5 => string '/public_html/extensions/IndeedPro/Swedbank/catalog/view/theme/default/template/extension/payment/swedbank_portal.tpl' (length=148)
      6 => string '/public_html/extensions/IndeedPro/Swedbank/catalog/view/theme/default/template/extension/payment/swedbank_portal_repromolive.tpl' (length=160)
      7 => string '/public_html/extensions/IndeedPro/Swedbank/catalog/language/lv-lv/extension/payment/swedbank_portal.php' (length=135)
      8 => string '/public_html/extensions/IndeedPro/Swedbank/catalog/language/en-gb/extension/payment/swedbank_portal.php' (length=135)
      9 => string '/public_html/extensions/IndeedPro/Swedbank/catalog/language/ru-ru/extension/payment/swedbank_portal.php' (length=135)
      10 => string '/public_html/extensions/IndeedPro/Swedbank/callback.php' (length=87)
      11 => string '/public_html/extensions/IndeedPro/Swedbank/composer.lock' (length=88)
      12 => string '/public_html/extensions/IndeedPro/Swedbank/admin/controller/extension/payment/swedbank_portal.php' (length=129)
      13 => string '/public_html/extensions/IndeedPro/Swedbank/admin/view/template/extension/payment/swedbank_portal.tpl' (length=132)
      14 => string '/public_html/extensions/IndeedPro/Swedbank/admin/language/lv-lv/extension/payment/swedbank_portal.php' (length=133)
      15 => string '/public_html/extensions/IndeedPro/Swedbank/admin/language/en-gb/extension/payment/swedbank_portal.php' (length=133)
      16 => string '/public_html/extensions/IndeedPro/Swedbank/admin/language/ru-ru/extension/payment/swedbank_portal.php' (length=133)
      17 => string '/public_html/extensions/IndeedPro/Swedbank/Extension.php' (length=88)

@prhost
Copy link
Contributor

prhost commented Aug 23, 2018

need to teste the adaptations I've made, I'm out of time, sorry

@konorws
Copy link
Contributor

konorws commented Oct 25, 2018

@arnisjuraga I can see this problem. Only I need information that needs to be done to reproduce the error.

@prhost
Copy link
Contributor

prhost commented Oct 29, 2018

@konorws similar problem #214

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

3 participants