cancel
Showing results for 
Search instead for 
Did you mean: 

Magento Compile Error - Ioncube Loader

Magento Compile Error - Ioncube Loader

Hello,


We have developed a custom module then we encoded using ioncube, but we can't compile the code. Log shows: "PHP Fatal error: Declaration of Stacx\S3\Model\Store\Store\Interceptor::getBaseUrl($type, $secure) must be compatible with Magento\Framework\Url\ScopeInterface::getBaseUrl($type = '', $secure = NULL) in /var/www/magento/generated/code/Stacx/S3/Model/Store/Store/Interceptor.php on line 7"

 

Magento 2.2.3
PHP 7.1.18

 

Any suggestions?

Thanks!

2 REPLIES 2

Re: Magento Compile Error - Ioncube Loader

Plz share your php file to debug your issue.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Magento Compile Error - Ioncube Loader

Hello Rakesh,

 

Line 7 is 

 

class Interceptor extends \Amistacx\S3Rocket\Model\Store\Store implements \Magento\Framework\Interception\InterceptorInterface

 

Updated: After numerous tests. We don't know why magento is creating an Interceptor with the wrong function declaration. Should be created function public function getBaseUrl($type = null, $secure = null), but has been creating public function getBaseUrl($type , $secure ) instead

 

The entire file:

 

Thanks!

 

A.I