Hi,
I cannot access the store front from admin (or directly) even if I put sate “on” (active)
“Service is temporely unavaible”
Hi,
I cannot access the store front from admin (or directly) even if I put sate “on” (active)
“Service is temporely unavaible”
Check your storefront url in settings
Or Delete or rename the var/cache folder
Try to check page source code (Ctrl + U). If you have any error, the reason will be displayed at the bottom of the source code
Thanks ecomlabs,
I found this, but it doesn’t says much to me. I am bad in coding…
Error at
app/functions/fn.common.php, line: 6275
URL is ok, but without http or www.
I coudn’t rename cache folder. Is it safe to remove it copletely?
6275 if ($value % $step) {
$ceil = ceil($value / $step) * $step;
} else {
$ceil = $value;
}
Is it something wrong with the code?
I managed ti remane the folder, but the problem persist.
DivisionByZeroError
Message
Modulo by zero
Error at
app/functions/fn.common.php, line: 6275
Backtrace
File:app/functions/fn.products.php
Line:912
Function:fn_ceil_to_step
File:app/functions/fn.products.php
Line:856
Function:fn_get_product_qty_content
File:app/Tygh/BlockManager/Block.php
Line:996
Function:fn_gather_additional_products_data
File:app/Tygh/BlockManager/RenderManager.php
Line:810
Function:getItems
File:app/Tygh/BlockManager/RenderManager.php
Line:666
Function:getValue
File:app/Tygh/BlockManager/RenderManager.php
Line:493
Function:renderBlockContent
File:app/Tygh/BlockManager/RenderManager.php
Line:415
Function:renderBlock
File:app/Tygh/BlockManager/RenderManager.php
Line:373
Function:renderBlocks
File:app/Tygh/BlockManager/RenderManager.php
Line:230
Function:renderGrid
File:app/Tygh/BlockManager/RenderManager.php
Line:200
Function:renderGrids
File:app/Tygh/BlockManager/RenderManager.php
Line:164
Function:_renderContainer
File:app/functions/smarty_plugins/function.render_location.php
Line:52
Function:render
File:var/cache/templates/bright_theme/836498e7956086610d8b120fca0c8a38d231df47_2.tygh.index.tpl.php
Line:166
Function:smarty_function_render_location
File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php
Line:123
Function:content_67bed2c072ec18_91351265
File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php
Line:114
Function:getRenderedTemplateCode
File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php
Line:217
Function:render
File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php
Line:238
Function:render
File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php
Line:116
Function:_execute
File:app/Tygh/SmartyEngine/Core.php
Line:81
Function:fetch
File:app/functions/fn.control.php
Line:637
Function:fetch
File:index.php
Line:19
Function:fn_dispatch
I went to my host and made databases and files recovery and everithing is working now.
Thanks for helping!
But are you updated now?
Other than the formatting, I don’t see anything wrong with your code. Here is the complete function.
/**
* Rounds a value up with a given step
*
* @param int $value
* @param int $step
* @return int Rounded value
*/
function fn_ceil_to_step($value, $step)
{
$ceil = false;
if (empty($step) && !empty($value)) {
$ceil = $value;
} elseif (!empty($value) && !empty($step)) {
if ($value % $step) {
$ceil = ceil($value / $step) * $step;
} else {
$ceil = $value;
}
}
return $ceil;
}
Thanks!
Yes, I have latest version of cs.cart