TOPIC:

Non-static method CrBcHelpers::addToPriceMap() cannot be called statically 1 month 4 weeks ago #277914

  • Gerhard5656's Avatar Topic Author
  • Gerhard5656
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 36
  • Thanks: 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

Please Log in or Create an account to join the conversation.

Non-static method CrBcHelpers::addToPriceMap() cannot be called statically 1 month 4 weeks ago #277915

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11658
  • Karma: 3
  • Thanks: 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

Please Log in or Create an account to join the conversation.

Non-static method CrBcHelpers::addToPriceMap() cannot be called statically 1 month 4 weeks ago #277916

  • Gerhard5656's Avatar Topic Author
  • Gerhard5656
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 36
  • Thanks: 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

Please Log in or Create an account to join the conversation.

Non-static method CrBcHelpers::addToPriceMap() cannot be called statically 1 month 4 weeks ago #277917

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11658
  • Karma: 3
  • Thanks: 757
Hi,

I will check it and come back to you

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Non-static method CrBcHelpers::addToPriceMap() cannot be called statically 1 month 4 weeks ago #277918

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11658
  • Karma: 3
  • Thanks: 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

Please Log in or Create an account to join the conversation.

Non-static method CrBcHelpers::addToPriceMap() cannot be called statically 1 month 4 weeks ago #277928

  • Gerhard5656's Avatar Topic Author
  • Gerhard5656
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 36
  • Thanks: 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

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!