erickok / pastt

PASTT: PHP Android String Translation Tool
GNU General Public License v3.0
27 stars 18 forks source link

PHP 7 Error: Call to undefined function set_magic_quotes_runtime() #15

Closed konir closed 6 years ago

konir commented 6 years ago

My Provider forces me to use PHP 7 on my webserver. I copied the pastt folder to my server and renamed the 'includes/settings.example.php' file to 'includes/settings.php' and configured it. After opening the page in a browser I get the following error.

Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home/myserver/pastt/includes/common.php:9 Stack trace: #0 /home/myserver/pastt/index.php(9): include() #1 {main} thrown in /home/myserver/pastt/includes/common.php on line 9

I guess its because set_magic_quotes_runtime() is not supported anymore in PHP 7.

Is there a way to run pastt with PHP 7 ?

konir commented 6 years ago

Solved the PHP 7 issues by: