Fatal error: Call to undefined function: str_ireplace() 10 years 1 month ago #1

  • Mychol Scully
  • Localtime: 07:56
  • Europe/Bucharest
  • Posts: 9
Fatal error: Call to undefined function: str_ireplace() in /homepages/**/**********/htdocs/*************/administrator/components/com_hotornot/models/image.php on line 379

This error appears when approving images in admin. It does NOT appear when un-approving them.

I have set PHP5 using my .htaccess file.

What's UP?!
The administrator has disabled public write access.

Re: Fatal error: Call to undefined function: str_ireplace() 10 years 1 month ago #2

  • Alexandru
  • Alexandru's Avatar
  • Senior Developer
  • Bucharest
  • Localtime: 07:56
  • Europe/Bucharest
  • Posts: 4676
Hello!

Please edit:
- [Joomla dir]/administrator/components/com_hotornot/models/image.php and change lines:
379 from
$subject = str_ireplace($search, $replace, $subject);
to
$subject = str_replace($search, $replace, $subject);

and 380 from
$message = str_ireplace($search, $replace, $message);
to
$message = str_replace($search, $replace, $message);

- [Joomla dir]/components/com_hotornot/models/comment.php and change lines:
114 from
$subject = str_ireplace($search, $replace, $subject);
to
$subject = str_replace($search, $replace, $subject);

and 115 from
$message = str_ireplace($search, $replace, $message);
to
$message = str_replace($search, $replace, $message);

Just make sure that the notification messages and subjects contain the replacement tags exactly as written in the legend box (don't change the letter case).
thePHPfactory Customer Support
The administrator has disabled public write access.