Module PHP Notice: Undefined variable SOLVED

  • Topic Author
  • Visitor
  • Visitor
14 years 4 days ago - 14 years 3 days ago #1855 by
Hi,

For this notices :
Code:
[26-apr-2010 09:54:26] PHP Notice: Undefined variable: picpaddingbot in /home/content/08/5750108/html/modules/mod_geommunity/tmpl/default.php on line 142 [26-apr-2010 09:54:26] PHP Notice: Undefined variable: myscores in /home/content/08/5750108/html/modules/mod_geommunity/tmpl/default.php on line 403 [26-apr-2010 09:54:26] PHP Notice: Undefined variable: kuneposts in /home/content/08/5750108/html/modules/mod_geommunity/tmpl/default.php on line 403 [26-apr-2010 09:54:26] PHP Notice: Undefined variable: kunekarma in /home/content/08/5750108/html/modules/mod_geommunity/tmpl/default.php on line 403 [26-apr-2010 09:54:26] PHP Notice: Undefined variable: cf1 in /home/content/08/5750108/html/modules/mod_geommunity/tmpl/default.php on line 404 [26-apr-2010 09:54:26] PHP Notice: Undefined variable: cf2 in /home/content/08/5750108/html/modules/mod_geommunity/tmpl/default.php on line 404 [26-apr-2010 09:54:26] PHP Notice: Undefined variable: cf3 in /home/content/08/5750108/html/modules/mod_geommunity/tmpl/default.php on line 404 [26-apr-2010 09:54:26] PHP Notice: Undefined variable: cf4 in /home/content/08/5750108/html/modules/mod_geommunity/tmpl/default.php on line 404 [26-apr-2010 09:54:26] PHP Notice: Undefined variable: cf5 in /home/content/08/5750108/html/modules/mod_geommunity/tmpl/default.php on line 405

In modules/mod_geommunity/tmpl/default.php I added these bold lines after line 64:

foreach($markers as $marker){
$infodivheight= 50;
$auppoints = '';
$jsuppoints = '';
$friends = '';
$mystatus='';
$myscores=''; /* added */
$kuneposts=''; /*added */
$kunekarma=''; /* added */
$cf1=''; /* added */
$cf2=''; /* added */
$cf3=''; /* added */
$cf4=''; /* added */
$cf5=''; /* added */
$picpaddingbot=''; /* added */

$player='';
$playerwidth='';
$playerheight='';


and it seems to go well

If you think it is ok maybe you will update your code too else if you think these lines breaks somthing else please tell me to delete them....
Last edit: 14 years 3 days ago by .

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

More
14 years 1 day ago #1881 by nordmograph
it doesn't break anything, I should have added these for hosts showing notices ;) I will add these to the file. Thanks

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

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

Time to create page: 0.309 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.