Possible hikashop issue

  • Posts: 244
  • Thank you received: 2
  • Hikashop Essential
6 months 2 weeks ago #355885

-- url of the page with the problem -- : www.beeswaxcandleshop.com/home/newsletters/archive/listing.html
-- HikaShop version -- : 5.0.0
-- Joomla version -- : 4.3.4
-- PHP version -- : 8.0.3
-- Error-message(debug-mod must be tuned on) -- : in /home/customer/www/beeswaxcandleshop.com/public_html/plugins/system/hikashopuser/hikashopuser.php (line 201)

$db->setQuery($query);
$terms_article = (int)$db->loadResult();
if($article->id != $terms_article)
return true;
$params->set('show_page_heading',false);
}
public function onAfterCartSave(&$cart) {
if(!HIKASHOP_J30) return;

plgSystemHikashopuser->onPrepareContent(object(stdClass), '', 0) in /home/customer/www/beeswaxcandleshop.com/public_html/plugins/system/hikashopuser/hikashopuser.php (line 181)
plgSystemHikashopuser->onContentPrepare('com_content.article', object(stdClass), '', 0) in /home/customer/www/beeswaxcandleshop.com/public_html/administrator/components/com_hikashop/pluginCompatJ4.php (line 48)
in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/vendor/joomla/event/src/Dispatcher.php -> __call (line 486)
Dispatcher->dispatch('onContentPrepare', object(Event)) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Application/EventAware.php (line 111)
WebApplication->triggerEvent('onContentPrepare', array('com_content.article', object(stdClass), '', 0)) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/HTML/Helpers/Content.php (line 50)
Content::prepare(' Tips for Burning Pillars and Other Large Candles This is from our "Beeswax Candle Card" that is included in every order shipped. Why Beeswax? Beeswax was one of the first ingredients used for making candles; recognized since ancient Roman times---and subsequently by many other civilizations--for its effective aromatic burning properties. (Beeswax burns very slowly and smells deliciously sweet.) Other waxes were tried as an alternative to beeswax. Tallow, the fat rendered from cattle or sheep was messy, didn\'t burn long and had an offensive odor. Waxes from sperm whales & vegetables were tried and were somewhat better. In the mid 1800\'s paraffin, a by-product of crude oil was discovered. Most paraffin waxes burn at a lower temperature than beeswax and are used for most mass produced candles that are sold today. Beeswax is made from the nectar of flowers! The honeybees produce beeswax from wax glands on the sides of their body and use it to create "cells" to store their honey in. Its color may vary from white to yellow or brown. It possesses a subtle aroma, the fragrance of honey ingrained with the other scents present in a bee hive. The demand for beeswax exceeds the supply in most years. For this reason, it is expensive. On the average, eight pounds of honey are consumed by the bees for each pound of wax made by the colony. A large amount of the available beeswax is used in cosmetics and in many waxes and polishes. What is the dusty substance on the surface of many beeswax candles? The dusty looking substance on the surface of the candles is called “bloom”. It is a naturally occuring substance on all beeswax candles after they have been aged for a period of time. It is desired by many people as it gives the candle a very “antique” look and only beeswax will develop it. If desired, it may be rubbed off with a soft cloth or removed with the gentle use of a hair dryer. Tips for Burning Pillars and Other Large Candles Particularly for their first burn, candles are supposed to burn for at least one hour per inch of container diameter. So, if you bought a new candle that is 3 inches in diameter, you should burn your candle for at least 3 hours (though not more than 4 at a time) or until the well created by the flame extends to within 1/4" of the sides of the candle.. Wax has a memory, so you want to burn your candle so the melted wax spreads all the way out to the edge of your container. That way, when you burn your candle the next time, it will remember to melt all the way out to the sides. Short burns of one to two hours at a time will cause your candle to repeatedly heat in just the center of the candle with each burn, causing it to only burn straight down the middle. Since the flame burns in the center, it starts to develop that pool with each ignition. Keep the wicks trimmed to 1/4". The longer the wick, the higher the flame which will cause the flame to smoke. Any time smoking occurs, exinguish the candle, and trim the wick to 1/4". It is safe to re-light the candle also; the excess heat or the weight of the wick tipping to one side may deform the candle. Keep all debris out of the well of the candle. Match sticks or parts of the burned wick that fall into the candle well can "clog" the wick and cause it to burn inefficiently, or catch on fire. We try different wicks in all of our candles to get the best results, but some candles may not be burned as long as others at one time. Cylindrical pillars or very large pillars such as our Large Ball, Cut Glass, 4 inch wide pillars, or Large 2 Wick pillars may be burned for longer periods. We have burned these for 3-5 hours or more at a time. Somewhat irregular in shape pillars such as our Hexagonal pillar (4 1/2 inch or 9 inch) or Heart Pillars should only be burned for 2-3 hours at a time. Very irregular shaped pillars such as our Rose, Bethlehem, Angels should only be burned for 1-2 hour at a time. Some people do not burn the very decorative pillars at all (Baby Bear, Pilgrims, etc) The thing to keep in mind for any pillar is to not let the pool of wax overflow the sides! Pillars should be "hugged" as they are burned. Any pillar will tend to burn down and create a deep cavity in the center of the pillar. When the pillar has burned for a while and the wax is softer, try gently folding in the sides toward the flame. This "hugging" will cause the wax on the sides of the pillar to be consumed. Do not do too much at once or the flame will be drowned out. Keep the wick straight up. Sometimes we have found (recently when burning a Heart Pillar) that if the wick is sticking out at angle the pool of wax will be off-centered causing the candle to possibly leak. I just pushed the wick upright with a pencil. Relighting Pillars - Sometimes a pillar can be difficult to relight and it is helpfull to scrape out a small area around the wick (1/2 inch or so) before lighting. Enjoy Your Candles!', '', 'com_content.article') in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/HTML/HTMLHelper.php (line 292)
HTMLHelper::call(array('Joomla\\CMS\\HTML\\Helpers\\Content', 'prepare'), array(' Tips for Burning Pillars and Other Large Candles This is from our "Beeswax Candle Card" that is included in every order shipped. Why Beeswax? Beeswax was one of the first ingredients used for making candles; recognized since ancient Roman times---and subsequently by many other civilizations--for its effective aromatic burning properties. (Beeswax burns very slowly and smells deliciously sweet.) Other waxes were tried as an alternative to beeswax. Tallow, the fat rendered from cattle or sheep was messy, didn\'t burn long and had an offensive odor. Waxes from sperm whales & vegetables were tried and were somewhat better. In the mid 1800\'s paraffin, a by-product of crude oil was discovered. Most paraffin waxes burn at a lower temperature than beeswax and are used for most mass produced candles that are sold today. Beeswax is made from the nectar of flowers! The honeybees produce beeswax from wax glands on the sides of their body and use it to create "cells" to store their honey in. Its color may vary from white to yellow or brown. It possesses a subtle aroma, the fragrance of honey ingrained with the other scents present in a bee hive. The demand for beeswax exceeds the supply in most years. For this reason, it is expensive. On the average, eight pounds of honey are consumed by the bees for each pound of wax made by the colony. A large amount of the available beeswax is used in cosmetics and in many waxes and polishes. What is the dusty substance on the surface of many beeswax candles? The dusty looking substance on the surface of the candles is called “bloom”. It is a naturally occuring substance on all beeswax candles after they have been aged for a period of time. It is desired by many people as it gives the candle a very “antique” look and only beeswax will develop it. If desired, it may be rubbed off with a soft cloth or removed with the gentle use of a hair dryer. Tips for Burning Pillars and Other Large Candles Particularly for their first burn, candles are supposed to burn for at least one hour per inch of container diameter. So, if you bought a new candle that is 3 inches in diameter, you should burn your candle for at least 3 hours (though not more than 4 at a time) or until the well created by the flame extends to within 1/4" of the sides of the candle.. Wax has a memory, so you want to burn your candle so the melted wax spreads all the way out to the edge of your container. That way, when you burn your candle the next time, it will remember to melt all the way out to the sides. Short burns of one to two hours at a time will cause your candle to repeatedly heat in just the center of the candle with each burn, causing it to only burn straight down the middle. Since the flame burns in the center, it starts to develop that pool with each ignition. Keep the wicks trimmed to 1/4". The longer the wick, the higher the flame which will cause the flame to smoke. Any time smoking occurs, exinguish the candle, and trim the wick to 1/4". It is safe to re-light the candle also; the excess heat or the weight of the wick tipping to one side may deform the candle. Keep all debris out of the well of the candle. Match sticks or parts of the burned wick that fall into the candle well can "clog" the wick and cause it to burn inefficiently, or catch on fire. We try different wicks in all of our candles to get the best results, but some candles may not be burned as long as others at one time. Cylindrical pillars or very large pillars such as our Large Ball, Cut Glass, 4 inch wide pillars, or Large 2 Wick pillars may be burned for longer periods. We have burned these for 3-5 hours or more at a time. Somewhat irregular in shape pillars such as our Hexagonal pillar (4 1/2 inch or 9 inch) or Heart Pillars should only be burned for 2-3 hours at a time. Very irregular shaped pillars such as our Rose, Bethlehem, Angels should only be burned for 1-2 hour at a time. Some people do not burn the very decorative pillars at all (Baby Bear, Pilgrims, etc) The thing to keep in mind for any pillar is to not let the pool of wax overflow the sides! Pillars should be "hugged" as they are burned. Any pillar will tend to burn down and create a deep cavity in the center of the pillar. When the pillar has burned for a while and the wax is softer, try gently folding in the sides toward the flame. This "hugging" will cause the wax on the sides of the pillar to be consumed. Do not do too much at once or the flame will be drowned out. Keep the wick straight up. Sometimes we have found (recently when burning a Heart Pillar) that if the wick is sticking out at angle the pool of wax will be off-centered causing the candle to possibly leak. I just pushed the wick upright with a pencil. Relighting Pillars - Sometimes a pillar can be difficult to relight and it is helpfull to scrape out a small area around the wick (1/2 inch or so) before lighting. Enjoy Your Candles!', '', 'com_content.article')) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/HTML/HTMLHelper.php (line 128)
HTMLHelper::_('jhtml.content.prepare', ' Tips for Burning Pillars and Other Large Candles This is from our "Beeswax Candle Card" that is included in every order shipped. Why Beeswax? Beeswax was one of the first ingredients used for making candles; recognized since ancient Roman times---and subsequently by many other civilizations--for its effective aromatic burning properties. (Beeswax burns very slowly and smells deliciously sweet.) Other waxes were tried as an alternative to beeswax. Tallow, the fat rendered from cattle or sheep was messy, didn\'t burn long and had an offensive odor. Waxes from sperm whales & vegetables were tried and were somewhat better. In the mid 1800\'s paraffin, a by-product of crude oil was discovered. Most paraffin waxes burn at a lower temperature than beeswax and are used for most mass produced candles that are sold today. Beeswax is made from the nectar of flowers! The honeybees produce beeswax from wax glands on the sides of their body and use it to create "cells" to store their honey in. Its color may vary from white to yellow or brown. It possesses a subtle aroma, the fragrance of honey ingrained with the other scents present in a bee hive. The demand for beeswax exceeds the supply in most years. For this reason, it is expensive. On the average, eight pounds of honey are consumed by the bees for each pound of wax made by the colony. A large amount of the available beeswax is used in cosmetics and in many waxes and polishes. What is the dusty substance on the surface of many beeswax candles? The dusty looking substance on the surface of the candles is called “bloom”. It is a naturally occuring substance on all beeswax candles after they have been aged for a period of time. It is desired by many people as it gives the candle a very “antique” look and only beeswax will develop it. If desired, it may be rubbed off with a soft cloth or removed with the gentle use of a hair dryer. Tips for Burning Pillars and Other Large Candles Particularly for their first burn, candles are supposed to burn for at least one hour per inch of container diameter. So, if you bought a new candle that is 3 inches in diameter, you should burn your candle for at least 3 hours (though not more than 4 at a time) or until the well created by the flame extends to within 1/4" of the sides of the candle.. Wax has a memory, so you want to burn your candle so the melted wax spreads all the way out to the edge of your container. That way, when you burn your candle the next time, it will remember to melt all the way out to the sides. Short burns of one to two hours at a time will cause your candle to repeatedly heat in just the center of the candle with each burn, causing it to only burn straight down the middle. Since the flame burns in the center, it starts to develop that pool with each ignition. Keep the wicks trimmed to 1/4". The longer the wick, the higher the flame which will cause the flame to smoke. Any time smoking occurs, exinguish the candle, and trim the wick to 1/4". It is safe to re-light the candle also; the excess heat or the weight of the wick tipping to one side may deform the candle. Keep all debris out of the well of the candle. Match sticks or parts of the burned wick that fall into the candle well can "clog" the wick and cause it to burn inefficiently, or catch on fire. We try different wicks in all of our candles to get the best results, but some candles may not be burned as long as others at one time. Cylindrical pillars or very large pillars such as our Large Ball, Cut Glass, 4 inch wide pillars, or Large 2 Wick pillars may be burned for longer periods. We have burned these for 3-5 hours or more at a time. Somewhat irregular in shape pillars such as our Hexagonal pillar (4 1/2 inch or 9 inch) or Heart Pillars should only be burned for 2-3 hours at a time. Very irregular shaped pillars such as our Rose, Bethlehem, Angels should only be burned for 1-2 hour at a time. Some people do not burn the very decorative pillars at all (Baby Bear, Pilgrims, etc) The thing to keep in mind for any pillar is to not let the pool of wax overflow the sides! Pillars should be "hugged" as they are burned. Any pillar will tend to burn down and create a deep cavity in the center of the pillar. When the pillar has burned for a while and the wax is softer, try gently folding in the sides toward the flame. This "hugging" will cause the wax on the sides of the pillar to be consumed. Do not do too much at once or the flame will be drowned out. Keep the wick straight up. Sometimes we have found (recently when burning a Heart Pillar) that if the wick is sticking out at angle the pool of wax will be off-centered causing the candle to possibly leak. I just pushed the wick upright with a pencil. Relighting Pillars - Sometimes a pillar can be difficult to relight and it is helpfull to scrape out a small area around the wick (1/2 inch or so) before lighting. Enjoy Your Candles!', '', 'com_content.article') in /home/customer/www/beeswaxcandleshop.com/public_html/plugins/everything_in_everyway/article/article.php (line 109)
PlgEverything_in_everywayArticle->onShackToolboxDisplay('everything_in_everyway.article', 158, object(Registry)) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Plugin/CMSPlugin.php (line 284)
in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/vendor/joomla/event/src/Dispatcher.php -> Joomla\CMS\Plugin\{closure} (line 486)
Dispatcher->dispatch('onShackToolboxDisplay', object(Event)) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Application/EventAware.php (line 111)
WebApplication->triggerEvent('onShackToolboxDisplay', array('everything_in_everyway.article', 158, object(Registry))) in /home/customer/www/beeswaxcandleshop.com/public_html/modules/mod_pwebbox/mod_pwebbox.php (line 66)
include('/home/customer/www/beeswaxcandleshop.com/public_html/modules/mod_pwebbox/mod_pwebbox.php') in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Dispatcher/ModuleDispatcher.php (line 52)
ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}('/home/customer/www/beeswaxcandleshop.com/public_html/modules/mod_pwebbox/mod_pwebbox.php', null) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Dispatcher/ModuleDispatcher.php (line 55)
ModuleDispatcher->dispatch() in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Helper/ModuleHelper.php (line 281)
ModuleHelper::renderRawModule(object(stdClass), object(Registry), array('name' => 'debug')) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Helper/ModuleHelper.php (line 161)
ModuleHelper::renderModule(object(stdClass), array('name' => 'debug')) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Document/Renderer/Html/ModuleRenderer.php (line 99)
ModuleRenderer->render(object(stdClass), array('name' => 'debug'), null) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Document/Renderer/Html/ModulesRenderer.php (line 50)
ModulesRenderer->render('debug', array('name' => 'debug'), null) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Document/HtmlDocument.php (line 566)
HtmlDocument->getBuffer('modules', 'debug', array('name' => 'debug')) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Document/HtmlDocument.php (line 853)
HtmlDocument->_renderTemplate() in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Document/HtmlDocument.php (line 638)
HtmlDocument->render(false, array('template' => 'rt_orion', 'directory' => '/home/customer/www/beeswaxcandleshop.com/public_html/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Document/ErrorDocument.php (line 139)
ErrorDocument->render(false, array('template' => 'rt_orion', 'directory' => '/home/customer/www/beeswaxcandleshop.com/public_html/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Error/Renderer/HtmlRenderer.php (line 78)
HtmlRenderer->render(object(Error)) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Exception/ExceptionHandler.php (line 126)
ExceptionHandler::render(object(Error)) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Exception/ExceptionHandler.php (line 72)
ExceptionHandler::handleException(object(Error)) in /home/customer/www/beeswaxcandleshop.com/public_html/libraries/src/Application/CMSApplication.php (line 322)
CMSApplication->execute() in /home/customer/www/beeswaxcandleshop.com/public_html/includes/app.php (line 61)
require_once('/home/customer/www/beeswaxcandleshop.com/public_html/includes/app.php') in /home/customer/www/beeswaxcandleshop.com/public_html/index.php (line 32)
Error

Call to a member function set() on string

I have acymailing installed and am working with them on an issue of a link on this page: www.beeswaxcandleshop.com/home/newsletters/archive/listing.html --- Clicking on the "Farm is closed" link is supposed to open up the email ---- I was told to put debug on and send them the link with the error.

I am contacting you since there are many references to hikashop in the error message and maybe you would have some input. Orders on site seem to go through just fine right now.

Thanks in advance - Bill

File Attachment:

File Name: acyerror-after5.0.txt
File Size:25 KB

Attachments:

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

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
6 months 2 weeks ago #355890

Hi,

Here is what that debug data says:
On the page of the error, there is a module called mod_pwebbox which displays itself.
When doing so, it triggers the event onShackToolboxDisplay with the parameters 'everything_in_everyway.article' and the id 158
This is caught by a plugin of the group "everything_in_everyway" and of the folder "article".
It triggers an event onContentPrepare with the parameters 'com_content.article', an object (which I suppose is the data of a Joomla article) and the parameter $params being empty.
This should normally not happen. The $params parameter is supposed to contain a object with parameters about the display of the joomla article:
docs.joomla.org/Plugin/Events/Content
The HikaShop main plugin catches it and sees that the article data has the same id as the id of the Joomla article selected in the settings of HikaShop and forces the heading to not be displayed by setting a parameter in $params.
However, since $params is not provided, it crashes.

So the issue is two folds:
- The plugin of the group "everything_in_everyway" and of the folder "article" should pass a $params object. Not doing this goes against the Joomla API.
- The HikaShop main plugin should check that the $params is not empty before using it. But this is more of a protection to avoid things which should normally not happen.

What you can do is to actually delete the code:

	public function onContentPrepare($context, &$article, &$params, $limitstart = 0) {
		if($context == 'com_content.article')
			$this->onPrepareContent($article, $params, $limitstart);
	}

	public function onPrepareContent(&$article, &$params, $limitstart) {
		$app = JFactory::getApplication();

		if(version_compare(JVERSION,'3.0','>='))
			$tmpl = $app->input->getCmd('tmpl', '');
		else
			$tmpl = JRequest::getCmd('tmpl', '');
		if($tmpl != 'component')
			return true;

		$db = JFactory::getDBO();
		$query = 'SELECT config_value FROM #__hikashop_config WHERE config_namekey = ' . $db->Quote('checkout_terms');
		$db->setQuery($query);
		$terms_article = (int)$db->loadResult();
		if($article->id != $terms_article)
			return true;

		$params->set('show_page_heading',false);
	}
from the plugins/system/hikashopuser/hikashopuser.php
The code there to set the page heading is something we were using with the old checkout of HikaShop in HikaShop 1.x and 2.x.
This checkout is not available anymore in HikaShop and thus this code doesn't serve any purpose anymore.
We'll be removing it in the next version of HikaShop. That will avoid potential problems in the future.

Last edit: 6 months 2 weeks ago by nicolas.
The following user(s) said Thank You: bigfoot

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

  • Posts: 244
  • Thank you received: 2
  • Hikashop Essential
6 months 2 weeks ago #355910

Thank you - it worked!

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

  • Posts: 244
  • Thank you received: 2
  • Hikashop Essential
6 months 2 weeks ago #355945

I am back again because after deleting the above code, my stripe plugin does not work - I get to the card info field, hit submit ang get this error:
Invalid string: {:"0"=>"This email address is being protected from spambots. You need JavaScript enabled to view it."}

???

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

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
6 months 2 weeks ago #355949

Hi,

You need to update your Stripe connect plugin:
www.hikashop.com/forum/payment-methods/9...-working/351528.html

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

Time to create page: 0.067 seconds
Powered by Kunena Forum