WebsiteBaker Community Forum (upd)

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: i2Paq on May 04, 2010, 03:19:52 PM

Title: Error in serverlog -> Undefined index: path in
Post by: i2Paq 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:


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!