Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by all

前端 未结 5 1131
萌比男神i
萌比男神i 2020-11-27 21:40

When I am upload a csv file with zipcode it will convert and save a latitude and logitude. The error occurring a convert a zipcode to lat,lng. In my localhost its working fi

5条回答
  •  自闭症患者
    2020-11-27 22:09

    Try removing the lines below from .htaccess and switch to the latest version of PHP.

    For me this was being caused by the following getting added to .htaccess:

    # php -- BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php70” package as the default “PHP” programming language.
    
      AddHandler application/x-httpd-ea-php70___lsphp .php .php7 .phtml
    
    # php -- END cPanel-generated handler, do not edit
    

    Removing it solved the problem but it reappeared after an unknown period of time.

    I noticed I was running (deprecated) PHP 7.0 and I changed it to (latest version) 7.4. I sent a support ticket to our hosting provider about the problem and they responded with:

    If you've selected PHP 7.4 now, it shouldn't replace those lines any longer, as that's what CloudLinux does - it forces the specific PHP version to be loaded via .htaccess

    It's not come back in the last hour so fingers crossed.

提交回复
热议问题