I upload my Laravel project on shared hosting. When I upload my project on the server it throws an exception then switched my PHP version 5.4 to 7.4. Now am facing this issue.
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0
I also disable the allow_url_include in my PHP ini file which exists in project root directory but it still says allow_url_include depreciated error.
Also, I go into the PHP Multi INI Editor and change the allow_url_include but it still throw the above error.
Deprecated: Directive ‘allow_url_include’ is deprecated in Unknown on line 0. Backend Editor Update Deprecated: Directive ‘allow_url_include’ is deprecated in Unknown on line 0. Something is not compatible…just don’t know what to fix as I can’t update anything! Even deactivating the backend composer doesn’t help!
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 I also disable the allow_url_include in my PHP ini file which exists in project root directory but it still says allow_url_include depreciated error.
1 Laravel shared hosting - Directive 'safe_mode' is deprecated in PHP 5.3 and greater 0 Lalavel 5 Give Blank White Page when upload on Shared Hosting (GoDaddy)
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 Sometimes it would occur with raw HTML formatting, reading: This caused several plugins to break, including: The Redirection plugin started throwing this scary error when accessed via the Tools -> Redirections menu:
Log into your website host and navigate to your public_html
folder and find the php.ini
file. Open the file and find this code:
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
; http://php.net/allow-url-include
allow_url_include = On
Change allow_url_include = On
to allow_url_include = Off
and save the file.
This should fix the error.
Additional detail located here: https://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-include
Remove .htaccess or change name to .htaccess.backup and WP will generate new file based on your site configuration
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With