- Posts: 3
- Thank you received: 0
Error message when saving
13 years 8 months ago - 13 years 8 months ago #84073
by zouk
Error message when saving was created by zouk
Hi
Before buying the commercial version, I am evaluating the free version Hikashop with Joomla 3.0. I encountered the following error whenever clicking "Save" button in Hikashop extension. Is that just the debug message or something wrong with the program? Thanks.
( ! ) SCREAM: Error suppression ignored for
( ! ) Notice: Undefined index: success in C:\wamp\www\joomla30\administrator\templates\isis\html\message.php on line 22
Call Stack
# Time Memory Function Location
1 0.0007 433824 {main}( ) ..\index.php:0
2 0.7108 14375104 JAdministrator->render( ) ..\index.php:60
3 0.7309 14660328 JDocumentHTML->render( ) ..\application.php:207
4 0.7309 14660328 JDocumentHTML->_renderTemplate( ) ..\html.php:462
5 0.9128 15297000 JDocumentHTML->getBuffer( ) ..\html.php:682
6 0.9138 15321184 JDocumentRendererMessage->render( ) ..\html.php:399
7 0.9146 15330032 renderMessage( ) ..\message.php:49
Before buying the commercial version, I am evaluating the free version Hikashop with Joomla 3.0. I encountered the following error whenever clicking "Save" button in Hikashop extension. Is that just the debug message or something wrong with the program? Thanks.
( ! ) SCREAM: Error suppression ignored for
( ! ) Notice: Undefined index: success in C:\wamp\www\joomla30\administrator\templates\isis\html\message.php on line 22
Call Stack
# Time Memory Function Location
1 0.0007 433824 {main}( ) ..\index.php:0
2 0.7108 14375104 JAdministrator->render( ) ..\index.php:60
3 0.7309 14660328 JDocumentHTML->render( ) ..\application.php:207
4 0.7309 14660328 JDocumentHTML->_renderTemplate( ) ..\html.php:462
5 0.9128 15297000 JDocumentHTML->getBuffer( ) ..\html.php:682
6 0.9138 15321184 JDocumentRendererMessage->render( ) ..\html.php:399
7 0.9146 15330032 renderMessage( ) ..\message.php:49
Last edit: 13 years 8 months ago by zouk.
Please Log in or Create an account to join the conversation.
13 years 8 months ago #84293
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Error message when saving
Hi,
What did you tried to save ?
You have this message because your PHP debug settings are pretty high but it's just a notice message.
It does not have any negative impact except the message display.
With more information about the view which generate the message, we would be able to make a little fix.
But don't worry, what you tried to save has been correctly saved.
Regards,
What did you tried to save ?
You have this message because your PHP debug settings are pretty high but it's just a notice message.
It does not have any negative impact except the message display.
With more information about the view which generate the message, we would be able to make a little fix.
But don't worry, what you tried to save has been correctly saved.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
13 years 8 months ago #84393
by zouk
Replied by zouk on topic Error message when saving
I remarked this line the messages gone.
// $buffer .= '<div class="alert ' . $alert[$type]. '">';
as below
===========================
<?php
/**
* @package Joomla.Administrator
* @subpackage Template.Isis
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
function renderMessage($msgList)
{
$buffer = null;
$buffer .= "\n<div id=\"system-message-container\">";
$alert = array('error' => 'alert-error', 'warning' => '', 'notice' => 'alert-info', 'message' => 'alert-success');
if (is_array($msgList))
{
foreach ($msgList as $type => $msgs)
{
// $buffer .= '<div class="alert ' . $alert[$type]. '">';
$buffer .= "\n<h4 class=\"alert-heading\">" . JText::_($type) . "</h4>";
if (count($msgs))
{
foreach ($msgs as $msg)
{
$buffer .= "\n\t\t<p>" . $msg . "</p>";
}
}
$buffer .= "\n</div>";
}
}
$buffer .= "\n</div>";
return $buffer;
}
// $buffer .= '<div class="alert ' . $alert[$type]. '">';
as below
===========================
<?php
/**
* @package Joomla.Administrator
* @subpackage Template.Isis
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
function renderMessage($msgList)
{
$buffer = null;
$buffer .= "\n<div id=\"system-message-container\">";
$alert = array('error' => 'alert-error', 'warning' => '', 'notice' => 'alert-info', 'message' => 'alert-success');
if (is_array($msgList))
{
foreach ($msgList as $type => $msgs)
{
// $buffer .= '<div class="alert ' . $alert[$type]. '">';
$buffer .= "\n<h4 class=\"alert-heading\">" . JText::_($type) . "</h4>";
if (count($msgs))
{
foreach ($msgs as $msg)
{
$buffer .= "\n\t\t<p>" . $msg . "</p>";
}
}
$buffer .= "\n</div>";
}
}
$buffer .= "\n</div>";
return $buffer;
}
Please Log in or Create an account to join the conversation.
13 years 8 months ago #84396
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Error message when saving
Hi,
The "problem" is that the template does not support anymore the "success" message.
So you can remove the commentary and just add the "success" in the list like this:
Regards,
The "problem" is that the template does not support anymore the "success" message.
Code:
$alert = array('error' => 'alert-error', 'warning' => '', 'notice' => 'alert-info', 'message' => 'alert-success');
Code:
$alert = array('error' => 'alert-error', 'warning' => '', 'notice' => 'alert-info', 'message' => 'alert-success', 'success' => 'alert-success');
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
13 years 8 months ago #84475
by zouk
Replied by zouk on topic Error message when saving
Got you. Thank you Jerome!
Please Log in or Create an account to join the conversation.
Time to create page: 0.246 seconds