Error message when saving

  • Posts: 3
  • Thank you received: 0
11 years 10 months ago #84073

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

Last edit: 11 years 10 months ago by zouk.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 10 months ago #84293

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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 3
  • Thank you received: 0
11 years 10 months ago #84393

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;
}

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 10 months ago #84396

Hi,

The "problem" is that the template does not support anymore the "success" message.

$alert = array('error' => 'alert-error', 'warning' => '', 'notice' => 'alert-info', 'message' => 'alert-success');
So you can remove the commentary and just add the "success" in the list like this:
$alert = array('error' => 'alert-error', 'warning' => '', 'notice' => 'alert-info', 'message' => 'alert-success', 'success' => 'alert-success');
Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 3
  • Thank you received: 0
11 years 10 months ago #84475

Got you. Thank you Jerome!

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

Time to create page: 0.061 seconds
Powered by Kunena Forum