Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0

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.

like image 300
HadiNiazi Avatar asked Aug 22 '20 02:08

HadiNiazi


People also ask

Is the ‘allow_url_include’ directive deprecated?

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!

Is the directive'allow_url_include'deprecated?

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.

What are the deprecated directives in Laravel?

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)

Is'allow_url_include'deprecated in unknown on line 0?

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:


2 Answers

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

like image 87
pmcgeehan Avatar answered Sep 30 '22 13:09

pmcgeehan


Remove .htaccess or change name to .htaccess.backup and WP will generate new file based on your site configuration

like image 22
Basem Olimy Avatar answered Sep 30 '22 14:09

Basem Olimy