Getting Notice Undefined Variable on every page of my websit

Professional Jomal template designed to be easily adaptable to all kinds of business
GK User
Wed Aug 22, 2012 6:30 am
I am getting the below error when i m clicking to any submenu can anyone suggest me whats the problemand what is the solution.


Error which is showing up is:::

( ! ) Notice: Undefined variable: gkContent in C:\wamp\www\gk_corporate2_quickstart_J25\templates\gk_corporate2\layouts\blocks\main.php on line 42
Call Stack
# Time Memory Function Location
1 0.0011 690616 {main}( ) ..\index.php:0
2 0.3554 15335760 JSite->render( ) ..\index.php:48
3 0.3558 15336640 JDocumentHTML->parse( ) ..\application.php:259
4 0.3558 15336640 JDocumentHTML->_fetchTemplate( ) ..\html.php:414
5 0.3561 15337200 JDocumentHTML->_loadTemplate( ) ..\html.php:591
6 0.3567 15384632 require( 'C:\wamp\www\gk_corporate2_quickstart_J25\templates\gk_corporate2\index.php' ) ..\html.php:531
7 0.3624 15990216 GKTemplate->__construct( ) ..\index.php:24
8 0.3717 16606496 GKTemplate->getLayout( ) ..\gk.framework.php:76
9 0.3729 16641496 include( 'C:\wamp\www\gk_corporate2_quickstart_J25\templates\gk_corporate2\layouts\default.php' ) ..\gk.framework.php:182
10 0.5483 17229320 GKTemplate->loadBlock( ) ..\default.php:59
11 0.5495 17324840 include( 'C:\wamp\www\gk_corporate2_quickstart_J25\templates\gk_corporate2\layouts\blocks\main.php' ) ..\gk.framework.php:220
style=width:>
( ! ) Notice: Undefined variable: gkComponentWrap in C:\wamp\www\gk_corporate2_quickstart_J25\templates\gk_corporate2\layouts\blocks\main.php on line 62
Call Stack
# Time Memory Function Location
1 0.0011 690616 {main}( ) ..\index.php:0
2 0.3554 15335760 JSite->render( ) ..\index.php:48
3 0.3558 15336640 JDocumentHTML->parse( ) ..\application.php:259
4 0.3558 15336640 JDocumentHTML->_fetchTemplate( ) ..\html.php:414
5 0.3561 15337200 JDocumentHTML->_loadTemplate( ) ..\html.php:591
6 0.3567 15384632 require( 'C:\wamp\www\gk_corporate2_quickstart_J25\templates\gk_corporate2\index.php' ) ..\html.php:531
7 0.3624 15990216 GKTemplate->__construct( ) ..\index.php:24
8 0.3717 16606496 GKTemplate->getLayout( ) ..\gk.framework.php:76
9 0.3729 16641496 include( 'C:\wamp\www\gk_corporate2_quickstart_J25\templates\gk_corporate2\layouts\default.php' ) ..\gk.framework.php:182
10 0.5483 17229320 GKTemplate->loadBlock( ) ..\default.php:59
11 0.5495 17324840 include( 'C:\wamp\www\gk_corporate2_quickstart_J25\templates\gk_corporate2\layouts\blocks\main.php' ) ..\gk.framework.php:220
style=width:>

( ! ) Notice: Undefined offset: 0 in C:\wamp\www\gk_corporate2_quickstart_J25\templates\gk_corporate2\html\com_content\article\default.php on line 42
Call Stack
# Time Memory Function Location
1 0.0011 690616 {main}( ) ..\index.php:0
2 0.2482 12262728 JSite->dispatch( ) ..\index.php:42
3 0.2524 12293704 JComponentHelper::renderComponent( ) ..\application.php:197
4 0.2601 12393904 JComponentHelper::executeComponent( ) ..\helper.php:351
5 0.2607 12442784 require_once( 'C:\wamp\www\gk_corporate2_quickstart_J25\components\com_content\content.php' ) ..\helper.php:383
6 0.2695 13031856 JController->execute( ) ..\content.php:16
7 0.2695 13031936 ContentController->display( ) ..\controller.php:760
8 0.2713 13036936 JController->display( ) ..\controller.php:74
9 0.2837 14013832 ContentViewArticle->display( ) ..\controller.php:721
10 0.3381 15281992 JView->display( ) ..\view.html.php:146
11 0.3381 15281992 JView->loadTemplate( ) ..\view.php:205
12 0.3422 15640784 include( 'C:\wamp\www\gk_corporate2_quickstart_J25\templates\gk_corporate2\html\com_content\article\default.php' ) .
User avatar
Fresh Boarder

teitbite
Wed Aug 22, 2012 1:10 pm
Hi

Those are not errors but warnings. Some can be caused by wamp itself. And there is no tell if this messages will display on a live server. Or it can be caused by old php version. What php version are you using ?
User avatar
Moderator

GK User
Thu Aug 23, 2012 1:23 am
I am using PHP version 5.3.4
User avatar
Fresh Boarder

teitbite
Thu Aug 23, 2012 3:04 pm
Hi

So it's probably from wamp itself. Please disable showing errors in joomla global configuration for server. And if it will be happening on a live server please come back to me.
User avatar
Moderator

GK User
Sun Aug 26, 2012 5:52 am
teitbite wrote:Hi

So it's probably from wamp itself. Please disable showing errors in joomla global configuration for server. And if it will be happening on a live server please come back to me.

Hi,
Thanks you were right it was problem with wamp I installed on live server and its working properly now
Thanks Heaps....
User avatar
Fresh Boarder

GK User
Tue Aug 28, 2012 5:27 am
Hi,
I have added articles on menus it work fines when i first open it but as soon as i refresh page the article appears twice one below other You can check on http://www.konsulteqtest.com.au and by clicking any menu item i.e. any submenu in Products, Consulting, Careers.
and clicking refresh and scrolling down....
Thanks
User avatar
Fresh Boarder

teitbite
Tue Aug 28, 2012 10:23 am
Hi

This issue is related with specific server settings, please check if it's displaying like that when all cache is disabled and if yes, than please send me ftp access. I'll fix it so no server reconfiguration will be needed.
User avatar
Moderator

GK User
Wed Aug 29, 2012 2:44 am
User avatar
Fresh Boarder

teitbite
Wed Aug 29, 2012 11:24 am
Hi

I can see images. Try clear cache of a website and browser maby.
User avatar
Moderator

GK User
Thu Aug 30, 2012 3:25 am
teitbite wrote:Hi

I can see images. Try clear cache of a website and browser maby.

No its not working tried this many times but still same and tried in friends laptops office other desktops but still same problem.
User avatar
Fresh Boarder

GK User
Thu Aug 30, 2012 8:34 am
Its working fine now thanks
User avatar
Fresh Boarder

teitbite
Thu Aug 30, 2012 11:39 am
Hi

Ok. No problem, glad I could help.
User avatar
Moderator


cron