Keyword

Error on Save with K2 and php 7.1.x

More
6 years 10 months ago - 6 years 10 months ago #162157 by John
I changed my php version to 7.1.5
After that when ever i Save or Save & Close (in backend) an item i get an error.
"An error has occurred.
0 Call to undefined function iconv()
"

Item is saved correctly from what i can see but i get the error every time.

FYI: i first saw this issue on Chronoforms (solved on an update) it had something to do with the Safe Save (settings that Chronoforms has) and the max_input_vars that i had to increase to 15000.
Last edit: 6 years 10 months ago by John.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #162165 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error on Save with K2 and php 7.1.x
Hello,

This is a com_finder issue, which version of K2 are you using?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
6 years 10 months ago - 6 years 10 months ago #162168 by John
Replied by John on topic Error on Save with K2 and php 7.1.x
Hello Krikor,

I just found out that it is only happening on 1 of my sites from 5-6 that use K2 all others are saving fine.
All sites have K2 v2.7.2 Dev Build (github.com/getk2/k2)

The only difference that i can remember about the problematic site is that i had upgraded to Dev Build on version K2 2.7.0 (i did update to K2 v2.7.2 Dev Build since then).
Plus that i have changed to 3 letters sql querries (don't know if it's relative).
Last edit: 6 years 10 months ago by John.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #162170 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error on Save with K2 and php 7.1.x
Try updating to 2.8.0 DEV (same URL).
If that does not work, try reverting the changes in the queries.

PS. In the problematic site :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
6 years 10 months ago #162172 by John
Replied by John on topic Error on Save with K2 and php 7.1.x
I updated to v2.8 but i still get the error.
I can't revent the query changes as that important to me.
i might have to learn to live with it.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #162180 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error on Save with K2 and php 7.1.x
Can you disable the indexing plugin (com_finder) and try again?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
6 years 10 months ago - 6 years 10 months ago #162184 by John
Replied by John on topic Error on Save with K2 and php 7.1.x
If i rename the folder: /administrator/com_finder i get a blank page and if i enable Error Reporting i can see the following errors:

Warning: require_once(/home/*******/public_html/administrator/components/com_finder/helpers/indexer/adapter.php): failed to open stream: No such file or directory in /home/*******/public_html/plugins/finder/k2/k2.php on line 15

Fatal error: require_once(): Failed opening required '/home/*******/public_html/administrator/components/com_finder/helpers/indexer/adapter.php' (include_path='.:/opt/cpanel/ea-php71/root/usr/share/pear') in /home/*******/public_html/plugins/finder/k2/k2.php on line 15

Last edit: 6 years 10 months ago by John.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #162229 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error on Save with K2 and php 7.1.x
Is the file /public_html/administrator/components/com_finder/helpers/indexer/adapter.php' present and accessible?

This is a core file of Joomla!
github.com/joomla/joomla-cms/blob/staging/administrator/components/com_finder/helpers/indexer/adapter.php

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
6 years 10 months ago #162287 by John
Replied by John on topic Error on Save with K2 and php 7.1.x
Hello Krikor, you lost me with your latest post...

You told me to "disable the indexing plugin (com_finder)" but i could not find any plugin with that name so i renamed the folder /public_html/administrator/components/com_finder so NO the file that you are asking "adapter.php" could not be present.

After renaming back to original value the folder /public_html/administrator/components/com_finder the file you mentioned is once again present and accessible.

Please give more info if you wanted me to do something else with the "disable the indexing plugin (com_finder)"

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #162295 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error on Save with K2 and php 7.1.x
My bad, com_fiinder is the component, I mean the plugin.
Renaming the component will most likely break some functionality.

The plugin can cause issues but the error log points to a different direction (missing file).

Now... Is the file /public_html/administrator/components/com_finder/helpers/indexer/adapter.php' present and accessible?

The adapter.php is the missing file.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum