BLOG:CMS :: Support Forum

Support Forum for BLOG:CMS

You are not logged in.

#1 30.04.2005 13:32

pelotillero
newbie...
Registered: 30.04.2005
Posts: 1

Empty haystack in

Hi, after fresh installation all go well except gallery. In the index opf the gallery always have the next errorr :

Warning: mb_strrpos() [function.mb-strrpos]: Empty haystack in mywebroot/blog/photo/includes/singapore.class.php on line 202

i dont have any idea of how solve it. Thank for redme and sorry form my english.

Offline

 

#2 04.03.2006 18:32

finder
newbie...
Registered: 04.03.2006
Posts: 1

Re: Empty haystack in

I had the same problem and I made the following change in photo/includes/singapore.class.php:

lines 202-205 are:

$this->gallery->parentName = urldecode(substr($this->gallery->parent,strrpos($this->gallery->parent,"/")+1));
    if($this->gallery->parentName == "")
      $this->gallery->parentName = $this->config->gallery_name;

I changed them to:

if($this->gallery->parent == ""){
     $this->gallery->parentName = $this->config->gallery_name;
}else{
     $this->gallery->parentName = urldecode(substr($this->gallery->parent,strrpos($this->gallery->parent,"/")+1));
}

That did the trick for me

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

TOPlist