CMS솔루션마켓, 이온디 - 워드프레스, 라이믹스, 카페24, 그누보드, 엑셀

Contents Management System

글쓰기 > Add Media > Insert Media 에서 오른쪽 아래,

Attachment Display Settings 설정 값 중에서

Link To : Media file 로 항상 선택하게 하고 싶어서 찾아보니,


https://wpsites.net/wordpress-tips/5-ways-to-change-default-image-links/


You can actually access your wp-options file by typing in yourdomain/wp-admin/options.php in your browser and logging into your site. This will give you access to all settings where you can find:

image_default_link_type

all settings-image_default_link_type


이런 팁이 있더군요. 


domain/wp-admin/options.php 파일에서 해당 값을 찾아 저장을 했는데 저장이 안되더군요.

서버 내의 다른 사이트의 경우 저장이 잘 되는데 반해, 해당 사이트만 문제가 있어서 nginx 에러 로그를 살펴봤습니다.


[23-Oct-2017 12:34:11 Asia/Seoul] PHP Warning:  Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0


PHP 설정에서 max_input_vars 값을 1000 이상으로 줘야 하나봅니다.

아마 해당 사이트의 경우 설치된 플러그인이 많아 이 값이 1000 이상이었나봅니다.


/etc/php/7.0/fpm/php.ini


서버에서 php.ini 파일을 찾아 이 값을 수정해줍니다.

max_input_vars = 100000

그리고 저장 후 php를 재실행해줍니다.


# service php7.0-fpm restart





추천한 사람

 
댓글은 로그인 사용자만 작성 가능합니다. 로그인하기