Author Topic: PHP Fatal error: Call to undefined function get_input_value() in ....  (Read 8387 times)

Offline GotNoClue

  • Newbie
  • *
  • Posts: 6
I just upgraded from 0.9.5 to latest.  No errors shown during upgrade in ssh.  Now when I try to connect to webpage I get an error 500 and the following error shows in roundcube log file:

PHP Fatal error:  Call to undefined function get_input_value() in /public_html/webmail_rc/plugins/db_version/db_version.php on line 15

In the website log files I see this error:

PHP Parse error:  syntax error, unexpected ':' in /public_html/webmail_rc/index.php on line 85

I tried to run the update just in case something did not copy over right but says target location is up-to-date.


Offline alec

  • Hero Member
  • *****
  • Posts: 1,363
Re: PHP Fatal error: Call to undefined function get_input_value() in ....
« Reply #1 on: January 24, 2018, 03:05:26 AM »
Just disable db_version plugin. Looks it's outdated.

Offline GotNoClue

  • Newbie
  • *
  • Posts: 6
Re: PHP Fatal error: Call to undefined function get_input_value() in ....
« Reply #2 on: January 24, 2018, 08:54:38 AM »
db_version plugin was not enabled.  I removed all plugins to make sure they are not causing the issue and do not see any errors in the roundcube error log now but still getting the error message 500 trying to access the logon page.


In the website log files I see this error:

PHP Parse error:  syntax error, unexpected ':' in /public_html/webmail_rc/index.php on line 85

Offline alec

  • Hero Member
  • *****
  • Posts: 1,363
Re: PHP Fatal error: Call to undefined function get_input_value() in ....
« Reply #3 on: January 24, 2018, 09:35:42 AM »
Looks like you're using some ancient PHP version. Did you check latest Roundcube requirements?

Offline GotNoClue

  • Newbie
  • *
  • Posts: 6
Re: PHP Fatal error: Call to undefined function get_input_value() in ....
« Reply #4 on: January 24, 2018, 09:51:15 AM »
Yes the server requirements show:

Apache, Lighttpd, Nginx, Cherokee or Hiawatha web server
PHP Version 5.4 or greater
MySQL, PostgreSQL, SQLite, MSSQL or Oracle database
SMTP server and IMAP server with IMAP4 rev1 support


My server has:

Apache - 2.2.34
PHP - 5.6.32
MySQL - 5.6.32-78.1
Perl - 5.24.1

Offline GotNoClue

  • Newbie
  • *
  • Posts: 6
Re: PHP Fatal error: Call to undefined function get_input_value() in ....
« Reply #5 on: January 24, 2018, 10:50:10 AM »
So it does seem I am running an older version of PHP than what the host provider is telling me.

Current PHP version: 5.2.17

I will check with the host provider to get this resolved and follow back up once PHP has been upgraded.

Offline GotNoClue

  • Newbie
  • *
  • Posts: 6
Re: PHP Fatal error: Call to undefined function get_input_value() in ....
« Reply #6 on: January 24, 2018, 02:52:02 PM »
updated to version 5.6.32 and verified but still same error showing in log.

PHP Parse error:  syntax error, unexpected ':' in /public_html/webmail_rc/index.php on line 85


any other suggestions?

Offline GotNoClue

  • Newbie
  • *
  • Posts: 6
Re: PHP Fatal error: Call to undefined function get_input_value() in ....
« Reply #7 on: January 24, 2018, 04:44:39 PM »
alec,

Thank you for you input which help to resolve the issue.


Removed plugin_manager from plugins list in main.inc.php
Upgraded PHP from 5.2.17 to 5.6.32
updated .htaccess on root

Not sure why I was still getting errors and unable to access the site after they were originally changed but now I am in (maybe due to cache issue on system who knows)

This topic can be closed as resolved!   :)