Post by opensab677 » Wed May 02, 2018 6:32 pm

I get this error in Oc 3.0.2
PHP Notice: Undefined index: route in ...../catalog/controller/extension/captcha/google.php on line 11
any suggestions?
thanks

New member

Posts

Joined
Mon Sep 04, 2017 7:54 pm

Post by Johnathan » Thu May 03, 2018 1:35 am

It's a bug in OpenCart 3.0.2.0, which happens on the home page when you load the main domain (because there's no "route" in the URL). You should be able to fix it with this edit:

Code: Select all

IN:
/catalog/controller/extension/captcha/google.php

REPLACE:
$data['route'] = $this->request->get['route'];

WITH:
$data['route'] = (isset($this->request->get['route'])) ? $this->request->get['route'] : '';

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by opensab677 » Fri May 04, 2018 1:24 pm

Solved! Thanks

New member

Posts

Joined
Mon Sep 04, 2017 7:54 pm
Who is online

Users browsing this forum: adycobra2003, JNeuhoff and 418 guests