The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Undefined Variable
#4
daniele.polencic Wrote:
ccagle8 Wrote:does the same thing happen when you have fancy urls turned ON?
It works with fancy urls turned on.

Thank You

Pole

The "bug" is here:

Code:
if ($PRETTYURLS == '1') {
                        if ($parent != '') {$parent = tsl($parent); }
                        if ($slug == 'index' ) { $slugs = ''; } else { $slugs = $slug; }
                        $url = $SITEURL . @$parent . $slugs;
                    } else {
                        $url = $SITEURL .'index.php?id='.$slugs;
                    }

And I changed it to:

Code:
if ($slug == 'index' ) { $slugs = ''; } else { $slugs = $slug; }
if ($PRETTYURLS == '1') {
                        if ($parent != '') {$parent = tsl($parent); }
                        $url = $SITEURL . @$parent . $slugs;
                    } else {
                        $url = $SITEURL .'index.php?id='.$slugs;
                    }

And it works. Thank you

Pole
Reply


Messages In This Thread
Undefined Variable - by daniele.polencic - 2010-02-04, 03:55:42
Undefined Variable - by ccagle8 - 2010-02-04, 10:49:50
Undefined Variable - by daniele.polencic - 2010-02-04, 19:26:39
Undefined Variable - by daniele.polencic - 2010-02-07, 04:20:23
Undefined Variable - by ccagle8 - 2010-02-07, 04:43:09
Undefined Variable - by colmag - 2010-08-16, 23:55:35
Undefined Variable - by Zegnåt - 2010-08-18, 02:42:33



Users browsing this thread: 2 Guest(s)