AbanteCart Community
Shopping Cart Operations => Support => General Support => Topic started by: Ollie on January 26, 2017, 09:54:42 AM
-
Recently, I upgraded to PHP 7 for PCI compliance. I tested my store and all the PHP functionalities seem to be working fine, except for one thing. For some reason, the store (version 1.2.9) stopped printing this line of code after the upgrade:
<?php print(file_get_contents(HTTPS_SERVER."index.php?rt=r/content/content/loadInfo&content_id=3")); ?>
How can I fix this?
-
Check your php.ini file and add these lines or un-comment them if they don't exist or are commented out:
extension=php_openssl.dll
allow_url_fopen = On
Tell us the results.
-
Check your php.ini file and add these lines or un-comment them if they don't exist or are commented out:
extension=php_openssl.dll
allow_url_fopen = On
Tell us the results.
Your code snippet did not work.
-
Check your php.ini file and add these lines or un-comment them if they don't exist or are commented out:
extension=php_openssl.dll
allow_url_fopen = On
Tell us the results.
Your code snippet did not work.
Those lines exist in your php.ini?
-
Recently, I upgraded to PHP 7 for PCI compliance. I tested my store and all the PHP functionalities seem to be working fine, except for one thing. For some reason, the store (version 1.2.9) stopped printing this line of code after the upgrade:
<?php print(file_get_contents(HTTPS_SERVER."index.php?rt=r/content/content/loadInfo&content_id=3")); ?>
How can I fix this?
it's not related to php7
Just add exit(); after print(). You have enabled output buffering and compressing for pages. It flushes your custom code output.
-
it's not related to php7
Just add exit(); after print(). You have enabled output buffering and compressing for pages. It flushes your custom code output.
I tried exit(); It didn't work, either. It only detached the module from the main page, but it didn't show the content, as expected.
-
also you should to check directive allow_url_fopen = On via admin-side. Be sure that it is ON.
i mean admin->system->settings->system -> button phpinfo()
-
also you should to check directive allow_url_fopen = On via admin-side. Be sure that it is ON.
i mean admin->system->settings->system -> button phpinfo()
I don't see this option under System > Settings > System. Please doublecheck. I'm using version 1.2.9.
-
see screenshot for where to look
-
Thank you, guys. Issue resolved. There was no need to make any changes to the php.ini file, only turn on the "allow_url_fopen" directive in PHP.