Bienvenido, Invitado
Recordarme

TEMA:

Non-static method CrBcHelpers::addToPriceMap() cannot be called statically 1 mes 4 semanas antes #277914

  • Avatar de Gerhard5656 Autor del tema
  • Gerhard5656
  • Fuera de línea
  • Junior Breezer
  • Junior Breezer
  • Mensajes: 36
  • Gracias recibidas: 0
Hi

I get the following error code when editing a product

Non-static method CrBcHelpers::addToPriceMap() cannot be called statically

After that, I do not see the product any more

wkrgds

Gerhard

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Non-static method CrBcHelpers::addToPriceMap() cannot be called statically 1 mes 4 semanas antes #277915

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderator
  • Moderator
  • Mensajes: 11658
  • Karma: 3
  • Gracias recibidas: 757
Hi,

please go to System->Global configuration->System->Debug System->set to Yes, and then tell me in which line of code and path of that error

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Non-static method CrBcHelpers::addToPriceMap() cannot be called statically 1 mes 4 semanas antes #277916

  • Avatar de Gerhard5656 Autor del tema
  • Gerhard5656
  • Fuera de línea
  • Junior Breezer
  • Junior Breezer
  • Mensajes: 36
  • Gracias recibidas: 0
Es ist ein Fehler aufgetreten!
0 Non-static method CrBcHelpers::addToPriceMap() cannot be called statically
/homepages/26/d270805284/htdocs/sum/administrator/components/com_breezingcommerce/models/product.php:756
Call stack
# Function Location
1 () JROOT/administrator/components/com_breezingcommerce/models/product.php:756
2 BreezingcommerceModelProduct->store() JROOT/administrator/components/com_breezingcommerce/controllers/products.php:170
3 BreezingcommerceControllerProducts->save() JROOT/administrator/components/com_breezingcommerce/controllers/products.php:164
4 BreezingcommerceControllerProducts->apply() JROOT/libraries/src/MVC/Controller/BaseController.php:702
5 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_breezingcommerce/breezingcommerce.php:130
6 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
7 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
8 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:101
9 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:159
10 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:225
11 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/index.php:51

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Non-static method CrBcHelpers::addToPriceMap() cannot be called statically 1 mes 4 semanas antes #277917

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderator
  • Moderator
  • Mensajes: 11658
  • Karma: 3
  • Gracias recibidas: 757
Hi,

I will check it and come back to you

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Non-static method CrBcHelpers::addToPriceMap() cannot be called statically 1 mes 4 semanas antes #277918

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderator
  • Moderator
  • Mensajes: 11658
  • Karma: 3
  • Gracias recibidas: 757
Hi,

please go to:
/homepages/26/d270805284/htdocs/sum/administrator/components/com_breezingcommerce/models/product.php
in line 756 you will see:
        CrBcHelpers::addToPriceMap($product_id, $data['producttaxclass_id']);
please replace it with:
(new CrBcHelpers)->addToPriceMap($product_id, $data['producttaxclass_id']);

Let me know the result

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Non-static method CrBcHelpers::addToPriceMap() cannot be called statically 1 mes 4 semanas antes #277928

  • Avatar de Gerhard5656 Autor del tema
  • Gerhard5656
  • Fuera de línea
  • Junior Breezer
  • Junior Breezer
  • Mensajes: 36
  • Gracias recibidas: 0
Sorry
0 Non-static method CrBcHelpers::addToPriceMap() cannot be called statically
/homepages/26/d270805284/htdocs/sum/administrator/components/com_breezingcommerce/models/product.php:756
Call stack
# Function Location
1 () JROOT/administrator/components/com_breezingcommerce/models/product.php:756
2 BreezingcommerceModelProduct->store() JROOT/administrator/components/com_breezingcommerce/controllers/products.php:170
3 BreezingcommerceControllerProducts->save() JROOT/administrator/components/com_breezingcommerce/controllers/products.php:164
4 BreezingcommerceControllerProducts->apply() JROOT/libraries/src/MVC/Controller/BaseController.php:702
5 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_breezingcommerce/breezingcommerce.php:130
6 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
7 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
8 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:101
9 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:159
10 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:225
11 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/index.php:51

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

  • Página:
  • 1
  • 2
  • 3
Tiempo de carga de la página: 0.051 segundos