Keyword

Call to undefined function iconv()

  • Michael M. Kadrie
  • Michael M. Kadrie's Avatar Topic Author
  • Offline
  • New Member
More
1 week 5 days ago #172513 by Michael M. Kadrie
Michael M. Kadrie created the topic: Call to undefined function iconv()
I am getting this error that I never got before. We just moved the site to a different server - both hosted with GoDaddy and using CPanel. Both sites are on PHP 7.0. Both sites are on Joomla 3.9.8. Both sites are on K2 2.9.0.
But on the new server, I get the Call to undefined error. I found another item in the forum about this but it was unrelated to my issue. But it still lead me to the fact that it could be a finder issue. I went into "plugins/finder/k2" and renamed this folder and the error went away. So then I re-uploaded the folder in case something happened with the transfer process. Still get the error. I've re-installed K2 and that didn't help. So I'm not sure if this is a PHP or Server issue. But why would changing that k2 finder folder fix the error and everything seems to be working properly. Is that folder even needed? If it is, what else could go wrong with that disabled?
Thanks for any help you can provide.

Please Log in or Create an account to join the conversation.

  • Michael M. Kadrie
  • Michael M. Kadrie's Avatar Topic Author
  • Offline
  • New Member
More
1 week 5 days ago #172514 by Michael M. Kadrie
Michael M. Kadrie replied the topic: Call to undefined function iconv()
This was the article that I found. But they were on PHP 7.1 AND when I tried the disable the com_finder that didn't work. Only disabling the k2 finder helped.
www.joomlaworks.net/forum/k2-en/47847-error-on-save-with-k2-and-php-7-1-x

Please Log in or Create an account to join the conversation.

  • Michael M. Kadrie
  • Michael M. Kadrie's Avatar Topic Author
  • Offline
  • New Member
More
1 week 5 days ago #172515 by Michael M. Kadrie
Michael M. Kadrie replied the topic: Call to undefined function iconv()
I may have found the problem. The iconv PHP Extension is not installed, however the server only makes this available for 7.1 and up. The site won't work on PHP 7.1 because it's on Gantry 4 and upgrading to Gantry 5 would be tough because of how customized the site is. So not sure what to do.

Please Log in or Create an account to join the conversation.

  • Michael M. Kadrie
  • Michael M. Kadrie's Avatar Topic Author
  • Offline
  • New Member
More
1 week 5 days ago #172516 by Michael M. Kadrie
Michael M. Kadrie replied the topic: Call to undefined function iconv()
Sorry for all the quick posts but I'm hoping this helps someone else. I was able to install iconv through Terminal on the server and now it's working properly. So if you are on PHP 7.0 and having this problem, look to see if iconv is installed in your PHP extensions.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 5 days ago #172526 by Fotis
Fotis replied the topic: Call to undefined function iconv()
What would possibly help others is if you included the entire error message :)

If it was just the K2 plugin for Smart Search, you could just disable the plugin too, no need to rename it.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

Moderators: william white

Powered by Kunena Forum