Elijah23 Posted August 30, 2012 Posted August 30, 2012 Hello, anyone who might know how to fix this, could you please help me?.. I have this PHP script used for my flux cp which is coded by gerome, <?php if($_GET['module'] == 'main' OR empty($_GET['module'])): ?> But I'm getting error and showing this logs: Undefined index: module in /home/user/public_html/themes/designno3/header.php on line 217 I'm really confused cause I don't get error using the CP in my computer but putting this in a live site gives me this error.. Thanks!.. Quote
Ajjwidjdneidjenw Posted August 30, 2012 Posted August 30, 2012 Check if the PHP your webhost is using the right version. Does your webhost have Cpanel? Quote
Jupeto Posted August 30, 2012 Posted August 30, 2012 (edited) Try using pipelines ( || ) instead <?php if($_GET['module'] == 'main' || empty($_GET['module'])): ?> Edited August 30, 2012 by Jupeto Quote
Elijah23 Posted September 1, 2012 Author Posted September 1, 2012 Try using pipelines ( || ) instead <?php if($_GET['module'] == 'main' || empty($_GET['module'])): ?> Still the same error.. sorry for the late reply.. Quote
jhonix Posted September 2, 2012 Posted September 2, 2012 try to post here the whole script...you are having some problems with the values...check line 217 and post it here please...thnx Quote
KeyWorld Posted September 4, 2012 Posted September 4, 2012 You have to check if $_GET['module'] is defined BEFORE checking its value. <?php if( empty($_GET['module']) || $_GET['module'] == 'main' ): ?> Quote
Elijah23 Posted September 4, 2012 Author Posted September 4, 2012 i'll check the codes again to find where it was defined, Quote
jhonix Posted September 4, 2012 Posted September 4, 2012 You have to check if $_GET['module'] is defined BEFORE checking its value. <?php if( empty($_GET['module']) || $_GET['module'] == 'main' ): ?> he is right.... i think module doesn't have any value or haven't been declared before that statement of yours... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.