Jump to content
thirty bees forum

Apache error log.


Havouza

Recommended Posts

Hi!

We have this constantly in the apache error log. It does not seem to affect anything but I would like to know what it is about

[Thu Jul 14 12:32:22.843114 2022] [proxy_fcgi:error] [pid 1733] [client 185.191.171.15:37366] AH01071: Got error 'PHP message: PHP Warning:  Creating default object from empty value in /home/jv74/public_html/cache/smarty/compile/87/a4/f5/87a4f5b16ef3376726317ad2fb0f52169b9043ca_0.file.blockcart.tpl.php on line 256'
 

Link to comment
Share on other sites

  • 1 year later...

Hello,
i am now on TB 1.5.1  and found out that i have similar error and warnings in the Collect PHP Logs -module.  Can anybody help me with this?

Message:
Creating default object from empty value

Location:
themes/mytheme/modules/blockcart/blockcart.tpl
cache/smarty/compile/c2/57/b6/c257b667c290ca77a08882d2c39bf5666fe5b736_0.file.blockcart.tpl.php line 257

STACKTRACE
#0  cache/smarty/compile/c2/57/b6/c257b667c290ca77a08882d2c39bf5666fe5b736_0.file.blockcart.tpl.php(257)
#1  vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66190867043c08_90187307(Smarty_Custom_Template#1)
#2  vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Smarty_Custom_Template#1)
#3  vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Smarty_Custom_Template#1)
#4  vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 0)
#5  vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Smarty_Custom_Template#1, null, null, null, 0)
#6  classes/smarty/SmartyCustom.php(554): Smarty_Internal_TemplateBase->fetch(null, null, null, null)
#7  classes/smarty/SmartyCustom.php(532): Smarty_Custom_Template->fetchWithRetries(null, null, null, null)
#8  classes/module/Module.php(2992): Smarty_Custom_Template->fetch()
#9  modules/blockcart/blockcart.php(251): ModuleCore->display("/home/123xyz/public_html/modules/blockcart/blockcart.php", "blockcart.tpl")
#10 modules/blockcart/blockcart.php(485): BlockCart->hookRightColumn(array(4))
#11 classes/Hook.php(833): BlockCart->hookTop(array(4))
#12 classes/Hook.php(545): HookCore::coreCallHook(BlockCart#1, "hooktop", array(3))
#13 classes/Hook.php(372): HookCore::execWithoutCache("displayTop", array(3), null, false, true, false, null)
#14 classes/Hook.php(242): HookCore::exec("displayTop", array(0) [], null)
#15 classes/controller/FrontController.php(332): HookCore::displayHook("displayTop")
#16 controllers/front/HistoryController.php(82): FrontControllerCore->initContent()
#17 classes/controller/Controller.php(209): HistoryControllerCore->initContent()
#18 classes/controller/FrontController.php(264): ControllerCore->run()
#19 classes/Dispatcher.php(851): FrontControllerCore->run()
#20 index.php(33): DispatcherCore->dispatch()


I have made changes in the  theme/modules/blockcart/crossselling.tpl as follows  (begins in line 42):
                    {*
                    *    {if $orderProduct.show_price == 1 AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}
                    *        <span class="price_display">
                    *            <span class="price">{convertPrice price=$orderProduct.displayed_price}</span>
                    *        </span>
                    *    {/if}
                    *}

This is to hide the product price in cross selling block in the cart.  It works with this change above.  Without these changes, the shop shows price also
when you do not want to show it  (seems to be a bug from old PS time).  (it is about the CUSTOMERS WHO BOUGHT THIS PRODUCT ALSO BOUGHT ...  on product site and also in cart).

Do i have to change something in the   theme/modules/blockcart/blockcart.tpl  maybe?  Is this the reason for the error?

I am a little bit nervous because it says in the error something about Hooks... and i cant really handle with this.

thank you

Edited by DRMasterChief
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...