LoginSignup
0
0

More than 5 years have passed since last update.

本日のエラー(2016-05-17)

Posted at

php

PHP Warning:  file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 

php.iniの設定が宜しくなかったようで、php.iniの記述を以下に変えてあげると解消された。
ってか自分でいつものサーバー構築んときに設定変えてるなw
サーバー構築

allow_url_fopen=on

参考:Server configuration by allow_url_fopen=0 in

javasctipt

hoge.split is not a function(anonymous function) 

動的に変わるカンマ区切りの値をsplitで分割していましたが、ある場面で値が1つしかない状態でエラー。(※区切る対象が無い状況)
でも別のsplitは値が1つしかなくても(※区切る対象が無くても)動いてるんですけどねぇ。。。

参考:What is causing the following error: “string.split is not a function” in javascript?

上記URLを参考にhogeを取得するときに+ ''を付けてやると動いた。

// 修正前
var hoge = document.location;

// 修正後
var hoge = document.location + '';

苦手な英語を頑張って読んでみたが...
オブジェクトのままじゃダメだよって事でおk?(汗)

0
0
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0