Question Error message at the bottom

GK User
Sun May 29, 2011 11:51 am
Get this message on the bottom.

Notice: Uninitialized string offset: 0 in /var/www/vhosts/midt-i-trafikken.no/httpdocs/templates/gk_musicity/lib/gk.framework.php on line 600

Besides that template seems to work fine.
User avatar
Junior Boarder

GK User
Mon May 30, 2011 11:17 pm
I'm getting this too
User avatar
Fresh Boarder

teitbite
Wed Jun 01, 2011 12:40 pm
Hi

Please try to change the showing error level to None in global settings for server.
User avatar
Moderator

GK User
Wed Jun 01, 2011 7:33 pm
This did not resolve the issue.
User avatar
Junior Boarder

GK User
Wed Jun 01, 2011 7:38 pm
What are your php settings? maybe your settings are ( show errors = on ) to your server that's why you still see this error.
User avatar
Expert Boarder

teitbite
Wed Jun 01, 2011 8:52 pm
Hi

Yes this is the second step of doing it :) If disabling it in the joomla panel is not helping than You need to set it to OFF in php.ini file.
User avatar
Moderator

GK User
Thu Jun 02, 2011 7:21 am
In PHP setting display error =OFF, Only Log error is =ON

I run several sites usig gavick but this is the only one showing this error. All sites are on same server also.
User avatar
Junior Boarder

GK User
Thu Jun 02, 2011 11:54 am
Add this to /gk_musicity/index.php of the template

// run the framework
ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_WARNING); /* this overide the error message
$tpl = new GKTemplate($this, $GK_TEMPLATE_MODULE_STYLES);
User avatar
Fresh Boarder

GK User
Thu Jun 02, 2011 4:43 pm
turning error reporting off in my php.ini solved this
User avatar
Fresh Boarder

teitbite
Fri Jun 03, 2011 2:54 pm
Hi

Great to hear it :)
User avatar
Moderator

GK User
Thu Jun 30, 2011 8:50 pm
The problem is in template index

<?php

/**
*
* Main file
*
* @version 1.0.0
* @package Gavern Framework
* @copyright Copyright (C) 2010 - 2011 GavickPro. All rights reserved.
*
*/

// No direct access.
defined('_JEXEC') or die;
// enable showing errors in PHP
ini_set('error_reporting', E_ALL);
ini_set('display_errors','On');

// include framework classes and files
require_once('lib/framework/gk.const.php');
require_once('lib/framework/gk.parser.php');
require_once('lib/gk.framework.php');
// run the framework
$tpl = new GKTemplate($this, $GK_TEMPLATE_MODULE_STYLES);

/* End of the file - index.php */


CHANGE TO

<?php

/**
*
* Main file
*
* @version 1.0.0
* @package Gavern Framework
* @copyright Copyright (C) 2010 - 2011 GavickPro. All rights reserved.
*
*/

// No direct access.
defined('_JEXEC') or die;
// enable showing errors in PHP
ini_set('error_reporting', off);
ini_set('display_errors','off');

// include framework classes and files
require_once('lib/framework/gk.const.php');
require_once('lib/framework/gk.parser.php');
require_once('lib/gk.framework.php');
// run the framework
$tpl = new GKTemplate($this, $GK_TEMPLATE_MODULE_STYLES);

/* End of the file - index.php */
User avatar
Junior Boarder


cron