Post by bgeno » Sun Jul 14, 2013 12:39 am

hi, i've uptaded my opencart to 1.5.5.1 and now appears this error message:

Warning: strpos() [function.strpos]: Empty delimiter in /homepages/33/r46754333/htdocs/OpenCart/catalog/controller/common/header.php on line 158

i'm also using sellya theme, but as i've seen in other forums is not a template problem, i've located messages from other users with the same problem, but they havent solved this issue.

thanks.

Active Member

Posts

Joined
Sat Sep 10, 2011 5:43 am

Post by bgeno » Mon Jul 15, 2013 8:08 am

Hi, anybody has the same problem?

thanks.

Active Member

Posts

Joined
Sat Sep 10, 2011 5:43 am

Post by bgeno » Tue Jul 16, 2013 5:54 am

hi, i've commented this part of code, and error has dissapeared, but i dont know if it can cause big problems

// Daniel's robot detector
// $status = true;

// if (isset($this->request->server['HTTP_USER_AGENT'])) {
// $robots = explode("\n", trim($this->config->get('config_robots')));
//
// foreach ($robots as $robot) {
// if (strpos($this->request->server['HTTP_USER_AGENT'], trim($robot)) !== false) {
// $status = false;
//
// break;
// }
// }
// }

Active Member

Posts

Joined
Sat Sep 10, 2011 5:43 am

Post by hebiki » Wed Dec 11, 2013 4:54 am

tried this..it worked. thank you!

not sure what that function is used for, hopefully it doesnt break anything else on the site.

New member

Posts

Joined
Sun Oct 10, 2010 4:00 pm
Who is online

Users browsing this forum: Amazon [Bot] and 19 guests