Error: Call to undefined function get_magic_quotes_runtime()

Discussion in 'General' started by Bic72, Oct 14, 2020.

  1. Bic72

    Bic72 New Member

    hi sorry english
    my configuration: ubuntu 16.04, ISpconfig 3.1.15p2, php 5.6.30 + php 7.3 + php 7.4
    After an apt update there have been updates for the various versions of php and from that moment the job queue is not running.

    I tried manually launching /usr/local/ispconfig/server/server.sh the error and this:

    Code:
    PHP Fatal error:  Uncaught Error: Call to undefined function get_magic_quotes_runtime() in /usr/local/ispconfig/server/lib/config.inc.php:48
    Stack trace:
    #0 /usr/local/ispconfig/server/server.php(31): require()
    #1 {main}
      thrown in /usr/local/ispconfig/server/lib/config.inc.php on line 48
    PHP Fatal error:  Uncaught Error: Call to undefined function get_magic_quotes_runtime() in /usr/local/ispconfig/server/lib/config.inc.php:48
    Stack trace:
    #0 /usr/local/ispconfig/security/check.php(31): require()
    #1 {main}
      thrown in /usr/local/ispconfig/server/lib/config.inc.php on line 48

    i just don't know how to fix it, thank you all in advance
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if you accidentally switched the default PHP version to PHP 7.4 with that update, switch it back to the original version by using:

    update-alternatives --config php
    update-alternatives --config php-cgi
     
  3. Bic72

    Bic72 New Member

    Thanks for the help
    with update-alternatives --config php I have selected php 5.6 ... ok ....
    but it still doesn't work now from another error:

    10/14/2020 - 11:53 am - WARNING - There is already a lockfile set, but no process running with this pid (9763). Continuing.
    PHP Fatal error: Call to undefined function mysqli_init () in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 83
    PHP Fatal error: Call to undefined function mysqli_init () in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 83
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This means that the php version that you've chosen has no MySQL support builtin. Or in other words, you seem to have installed that php version but missed installing required modules like the mysqli module.
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Is that the original default version of PHP on your Operating System?
     
  6. Bic72

    Bic72 New Member

    HI Teleman, I think yes it was the original version that works for many years, but then I installed php.7.3 and 7.4 and when I launched the update it updated all the versions of php even 5.6 I don't know because maybe I had inserted a repository to install php 7.4 ... I don't know
    However I installed all the missing modules and now the queue is processed correctly, problem solved! THANKS TILL

    I realized that there is only one other problem, ONLY in my main domain (on the other domains it works) the subdomains existing for years do not work test1.domain.it test2.domain.it etc. they lead to a site in case among those present instead of to the correct folder, should I open another post?
    Thank you
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Yes.
    That looks like a completely different problem.
     

Share This Page