WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Error in serverlog -> Undefined index: path in
  • Print
Pages: [1]   Go Down

Author Topic: Error in serverlog -> Undefined index: path in  (Read 3909 times)

Offline i2Paq

  • Posts: 524
  • Gender: Male
  • Tempelier, on bare feet!
Error in serverlog -> Undefined index: path in
« on: May 04, 2010, 03:19:52 PM »
I have an error in the index.php of my template and I cannot find why it is doing this.
My guess is that it has always been there but it is time to solve it.

The complete error is;

PHP notice: Undefined index: path in /var/site/templates/template/index.php on line 115

Here are the lines 113 to 118 which belong together:

Code: [Select]
113 // Get language page link
114 $parse_wb_url = parse_url(WB_URL);
115 $set = $parse_wb_url['path'];
116 $actual = $_SERVER['REQUEST_URI'];
117 $pageslen = strlen(PAGES_DIRECTORY);
118 $language_link = substr(str_replace($set, '', $actual), $pageslen, 3);

Thanks in advance!
Logged
Opensource is my life, but then elsewhere.

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Error in serverlog -> Undefined index: path in
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2