On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • 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
    • 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
      • Hi Bogdan,

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

        Thanks,
        Steve
        • 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
          • 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
            • Hello Steve,

              I am glad I could help!

              Bogdan

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