Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined function get_magic_quotes_runtime() #1

Open
ThomasViennet opened this issue Jan 28, 2024 · 0 comments
Open

undefined function get_magic_quotes_runtime() #1

ThomasViennet opened this issue Jan 28, 2024 · 0 comments

Comments

@ThomasViennet
Copy link

Hi,

Thank you for your code.
After trying to generate a certificate for "debiprasad sahoo" I get this error:

Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_runtime() in /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdf/fpdf.php:1043 Stack trace: #0 /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdf/fpdf.php(77): FPDF->_dochecks() #1 /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/template.php(5): FPDF->__construct('L', 'pt') #2 /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/generate.php(7): require_once('/Users/thomas/w...') #3 {main} thrown in /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdf/fpdf.php on line 1043

It seems that the get_magic_quotes_runtime() function was used in older versions of PHP to determine whether the magic_quotes_runtime configuration was activated. However, this functionality was deprecated and then removed in later versions of PHP. Since PHP 5.4.0, magic_quotes_runtime has been obsolete and since PHP 7.0.0, it has been completely removed.

After downloading the latest version of FDPF I get this error:

Warning: Trying to access array offset on value of type bool in /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdi/fpdi_pdf_parser.php on line 312

Fatal error: Uncaught Exception: FPDF error: Invalid call in /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdf/fpdf.php:267 Stack trace: #0 /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdf/fpdf.php(1465): FPDF->Error('Invalid call') #1 /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdi/fpdf_tpl.php(545): FPDF->_out('3 0 obj') #2 /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdi/fpdi.php(520): FPDF_TPL->_out('3 0 obj') #3 /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdf/fpdf.php(1538): FPDI->_newobj() #4 /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdf/fpdf.php(1579): FPDF->_putpage(1) #5 /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdf/fpdf.php(1902): FPDF->_putpages() #6 /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdi/fpdi.php(674): FPDF->_enddoc() #7 /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdf/fpdf.php(284): FPDI->_enddoc() #8 /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdf/fpdf.php(988): FPDF->Close() #9 /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/template.php(30): FPDF->Output('D', 'certificate.pdf') #10 /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/generate.php(7): require_once('/Users/thomas/w...') #11 {main} thrown in /Users/thomas/www/referencime.fr/wp-content/plugins/wordpress-plugin-mooc/lib/e-certificates-generator/includes/fpdf/fpdf.php on line 267

Can you help me please ?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant