Re: Fatal error: Cannot redeclare str_contains() Reply #15 – June 08, 2021, 01:51:21 PM Quote from: ayilmaz – June 08, 2021, 12:07:14 AMhello swisscharles you need to comments line 524 {} after it will workThanks ayilmaz. Everything working now!Does anybody know about any unwanted side effects when commenting said line out? Quote Selected Last Edit: June 08, 2021, 02:13:30 PM by SwissCharles
Re: Fatal error: Cannot redeclare str_contains() Reply #16 – August 01, 2021, 11:13:05 AM There is a new function in PHP 8 with the name str_contains. here you can see https://php.watch/versions/8.0/str_containsfor this reason, it shows the error, just rename it something "my_str_contains" Quote Selected
Re: Fatal error: Cannot redeclare str_contains() Reply #17 – October 24, 2021, 07:29:17 PM Quote from: nesarnori – August 01, 2021, 11:13:05 AMThere is a new function in PHP 8 with the name str_contains. here you can see https://php.watch/versions/8.0/str_containsfor this reason, it shows the error, just rename it something "my_str_contains"That works perfect. Thank you very much. Quote Selected
Re: Fatal error: Cannot redeclare str_contains() Reply #18 – June 14, 2022, 11:09:33 AM Achei essa solução nesse site:https://www.putraritoyan.top/2021/05/source-code-aplikasi-pencatatan-surat.htmlkemudian baris code pada baris 524 function str_contains($needle, $haystack){ return strpos($haystack, $needle) !== false;}dirubah menjadi error_reporting(0);if (strpos($haystack, $needle) !== false) { echo ''; } Quote Selected
Re: Fatal error: Cannot redeclare str_contains() Reply #19 – October 05, 2023, 05:24:35 AM function str_contains($needle, $haystack){ return strpos($haystack, $needle) !== false;}Change this code error_reporting(0);if (strpos($haystack, $needle) !== false) { echo '';} Quote Selected
Re: Fatal error: Cannot redeclare str_contains() Reply #20 – May 19, 2024, 08:47:01 PM YES Same issue was here today and commenting that peice of code solved the issue ..Thank You So Much Twolsey Quote from: twolsey – March 02, 2021, 05:33:14 PMFor now, I have commented out the code and it seems to work for the time being, but definitely need a fix long term. Quote Selected