• Priority: 0
  • Status: Closed
  • Theme: Venedor
  • Assigned To: No-one
  • Private: No
  • Open Date: 27.01.17, 13:00
  • Opened by: Alex
  • Closed by: Marek
  • Closed on: 05.08.17, 18:46
  • Reason: Closed
  • Comment: Glad to help!

Ticket #10187 - ven2.3 pk_instafeed base_uri error

In customer’s site with the https there is an error when enter in module configuration:

Fatal error in module file :/classes/shop/ShopUrl.php:
Uncaught Error: Using $this when not in object context in /classes/shop/ShopUrl.php:89 Stack trace: #0 /modules/pk_instafeed/pk_instafeed.php(556): ShopUrlCore::getBaseURI() #1 /modules/pk_instafeed/pk_instafeed.php(169): pk_instafeed→renderForm() #2 /controllers/admin/AdminModulesController.php(867): pk_instafeed→getContent() #3 /controllers/admin/AdminModulesController.php(1116): AdminModulesControllerCore→postProcessCallback() #4 /classes/controller/Controller.php(178): AdminModulesControllerCore→postProcess() #5 /classes/Dispatcher.php(367): ControllerCore→run() #6

FIX:
file modules\pk_instafeed\pk_instafeed.php
change code

$bkimg = ShopUrl::getBaseURI()."/modules".$this->name."/img/instabg_".$this->context->shop->id.".jpg";

to

  $bkimg = __PS_BASE_URI__."/modules".$this->name."/img/instabg_".$this->context->shop->id.".jpg";

Comments

No comments yet