WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Error in serverlog -> Undefined index: path in
(1/1)
i2Paq:
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: ---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);
--- End code ---
Thanks in advance!
Navigation
[0] Message Index
Go to full version