We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27210
    • 158 Posts
    The global find works but then when i attempt the global relace i get this error:

    Fatal error: Call to undefined function: str_ireplace() in /home3/signcarv/public_html/ezdacc/assets/modules/docfinder/functions.php on line 722

    This is the code that gives the error:

    		// take care of case _in_sensitive searches and do the PHP string replace
    		if($searchOptions['case_sensitive']) $searchFieldStringReplaced=str_replace($searchString, $replaceString, $searchFieldString);
    		else $searchFieldStringReplaced=str_ireplace($searchString, $replaceString, $searchFieldString);
    
    		$searchFieldStringReplaced=mysql_real_escape_string($searchFieldStringReplaced);
    


    Thank you for your help!
    Steve
      • 3785
      • 143 Posts
      Hi Steve,

      sorry for my late reply, I missed the notification of you post.

      Concerning the error you where reporting: it seems that you are still running PHP 4, but Doc Finder runs only in PHP 5 properly. So to solve the issue, just update to PHP 5, which I would recommend for many other reasons anyway.

      Thanks,
      Bogdan
        Medianotions – Studio für Webdesign
        http://www.medianotions.de
        • 27210
        • 158 Posts
        Hi Bogdan,

        I think i am running version 5 (please see attached).

        Thanks,
        Steve
          • 3785
          • 143 Posts
          Hi Steve,

          I am sorry, but there is only a MySQL version information inside that screenshot. To see which PHP version you are running (and many other details about the installed PHP) please create a file on your server, for example phpinfo.php and write inside:
          <?php phpinfo(); ?>

          Then run this small script by opening it with you browser.

          Thanks,
          Bogdan
            Medianotions – Studio für Webdesign
            http://www.medianotions.de
            • 27210
            • 158 Posts
            Hi Bogdan,

            You are correct - i was running version 4 - thanks for being patient with my lack of PHP knowledge.

            I upgraded the server to PHP 5 and Doc Finder works perfectly!

            Thanks again,
            Steve
              • 3785
              • 143 Posts
              Hello Steve,

              I am glad I could help!

              Bogdan

                Medianotions – Studio für Webdesign
                http://www.medianotions.de