You are here:  » Undefined index: h2 and Undefined variable: lastBreadcrumb


Undefined index: h2 and Undefined variable: lastBreadcrumb

Submitted by MiTU on Thu, 2020-12-17 23:57 in

I am getting 2 notices, Notice: Undefined index: h2 and Undefined variable: lastBreadcrumb. Both are comming from search.php when I use query like Tiny and Big: Grandpa's Leftovers. Problems are characters like : and ' , I am getting those notices + breadcrumb not showing for that search query but I am getting search result for that query.

Any idea what could be the problem? Or I am missing something lols :)

Submitted by support on Fri, 2020-12-18 08:37

Hi,

The characters shouldn't be causing a problem and search.php should be setting the values but I know you've been using the script for several years now, please could you email me your search.php and html/breadcrumbs.php and I'll check that out for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by MiTU on Fri, 2020-12-18 17:04

Tested on WAMP and XAMPP, same problem. Tested with original search.php and banner.php and few other php files, same problem. Made new and fresh installation of PT and got the same problem. Thinking that problem is with localhost, WAMP and XAMPP. Maybe something connected to configuration or who knows :)

Ah well, will check for the problem when I go live in a few days (I hope).

Will reply here if everything goes good on the live server :)