Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Fatal error: Call to undefined function: strripos() in /www/busin !!!!help!!!!  (Read 6891 times)

0 Members and 1 Guest are viewing this topic.

Tjnashster

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27

please help every time you click on a picture all you get is Fatal error: Call to undefined function: strripos() in /www/business/8821/tom/plugins/remove_modify/codebase.php on line 11

what can i do to stop this >?????
« Last Edit: May 29, 2008, 06:56:53 pm by Joachim Müller »
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D

Its a problem with the "remove_modify" plugin, remove it and that should stop the problem.
Logged
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Tjnashster

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27

cheers was worried i had broken it badly then !!!!
Logged

Veronica

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: se
  • Offline Offline
  • Posts: 106
  • Coppermine 1.5.22

strripos() is a PHP 5 function only
You probably have an old version of PHP 4 installed
Upgrade to PHP 5 will remove your
Call to undefined function: strripos() in .......
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de

Workaround as suggested in http://www.php.net/manual/en/function.strripos.php:
Code: [Select]
<?php

if(!function_exists("stripos")){
    function 
stripos(  $str$needle$offset 0  ){
        return 
strpos(  strtolower$str ), strtolower$needle ), $offset  );
    }
/* endfunction stripos */
}/* endfunction exists stripos */

if(!function_exists("strripos")){
    function 
strripos(  $haystack$needle$offset 0  ) {
        if(  !
is_string$needle )  )$needle chr(  intval$needle )  );
        if(  
$offset 0  ){
            
$temp_cut strrev(  substr$haystack0abs($offset) )  );
        }
        else{
            
$temp_cut strrev(    substr(   $haystack0max(  ( strlen($haystack) - $offset ), 0  )   )    );
        }
        if(   (  
$found stripos$temp_cutstrrev($needle) )  ) === FALSE   )return FALSE;
        
$pos = (   strlen(  $haystack  ) - (  $found $offset strlen$needle )  )   );
        return 
$pos;
    }
/* endfunction strripos */
}/* endfunction exists strripos */
?>
Logged

Tjnashster

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27

ok thanks for all your help
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.