현재 경로: /var/www/html/plugin/paypal_subscription/test
파일 경로: /var/www/html/plugin/paypal_subscription/test/simple_test.php
DB 호스트: localhost
DB 사용자: root
DB 이름: gnu
비밀번호: (빈 문자열)
❌ 데이터베이스 연결 실패: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'
✅ 로그 디렉토리 존재: /var/www/html/plugin/paypal_subscription/test/../logs
subscriptions\/I-WG97NKF4XKGK","rel":"edit","method":"PATCH","encType":"application\/json"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/billing\/subscriptions\/I-WG97NKF4XKGK","rel":"self","method":"GET","encType":"application\/json"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/billing\/subscriptions\/I-WG97NKF4XKGK\/suspend","rel":"suspend","method":"POST","encType":"application\/json"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/billing\/subscriptions\/I-WG97NKF4XKGK\/capture","rel":"capture","method":"POST","encType":"application\/json"}],"id":"I-WG97NKF4XKGK","plan_id":"P-0PB27241B3787273PNCN6YIQ","status":"ACTIVE","status_update_time":"2025-08-13T01:37:02Z"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-02J28655NL943390D-8FF44419GA6002847","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-02J28655NL943390D-8FF44419GA6002847\/resend","rel":"resend","method":"POST"}]}}
웹훅 URL: https://www.thinkocn.com/plugin/paypal_subscription/includes/webhook.php
HTTP 응답: 200
응답 내용:
<p>[DEBUG] === 웹훅 디버깅 시작 ===</p> <p>[DEBUG] Request Method</p> <pre>"POST"</pre> <p>[DEBUG] Raw payload length</p> <pre>225</pre> <p>[DEBUG] JSON decode result</p> <pre>"SUCCESS"</pre> <p>[DEBUG] Event Type</p> <pre>"BILLING.SUBSCRIPTION.ACTIVATED"</pre> <p>[DEBUG] Resource ID</p> <pre>"I-9FMY6D16NWL0"</pre> <p>[DEBUG] === 그누보드 환경 로드 시도 ===</p> <p>[DEBUG] Checking path</p> <pre>"..\/..\/..\/..\/common.php"</pre> <p>[DEBUG] Path not found</p> <pre>"..\/..\/..\/..\/common.php"</pre> <p>[DEBUG] Checking path</p> <pre>"..\/..\/..\/common.php"</pre> <p>[DEBUG] Path exists, trying to include</p> <pre>"..\/..\/..\/common.php"</pre> <br /> <b>Warning</b>: Constant _GNUBOARD_ already defined in <b>/var/www/html/config.php</b> on line <b>8</b><br /> <p>[DEBUG] Successfully loaded</p> <pre>"..\/..\/..\/common.php"</pre> <p>[DEBUG] === 그누보드 환경 확인 ===</p> <p>[DEBUG] G5 table prefix</p> <pre>"NOT SET"</pre> <p>[DEBUG] DB connection</p> <pre>"SUCCESS"</pre> <p>[DEBUG] 기본 테이블 prefix 설정</p> <pre>"g5_"</pre> <p>[DEBUG] Checking table</p> <pre>"g5_subscription"</pre> <p>[DEBUG] Table exists</p> <pre>"YES"</pre> <p>[DEBUG] === 테스트 쿼리 실행 ===</p> <p>[DEBUG] Test SQL</p> <pre>"SELECT COUNT(*) as cnt FROM g5_subscription"</pre> <p>[DEBUG] Row count</p> <pre>"2"</pre> <p>[DEBUG] Search SQL</p> <pre>"SELECT * FROM g5_subscription WHERE paypal_sub_id = 'I-9FMY6D16NWL0'"</pre> <p>[DEBUG] Found subscription</p> <pre>"YES"</pre> <p>[DEBUG] Subscription data</p> <pre>{ "id": "1", "mb_id": "test_user", "plan": "premium", "term": "yearly", "status": "active", "paypal_sub_id": "I-9FMY6D16NWL0", "paypal_plan_id": "P-3MC99372MN303192FNCNWNAY", "amount": "12.00", "currency": "USD", "start_date": "2025-08-23 15:11:56", "next_billing_date": "2026-08-13 19:31:57", "created_at": "2025-08-13 10:31:57", "updated_at": "2025-08-23 15:11:56" }</pre> <p>[DEBUG] Update SQL</p> <pre>"UPDATE g5_subscription SET \n status = 'active',\n start_date = NOW(),\n updated_at = NOW()\n WHERE paypal_sub_id = 'I-9FMY6D16NWL0'"</pre> <p>[DEBUG] Update result</p> <pre>"SUCCESS"</pre> <p>[DEBUG] Member SQL</p> <pre>"SELECT mb_id, mb_level FROM g5_member WHERE mb_id = 'test_user'"</pre> <p>[DEBUG] Member found</p> <pre>"NO"</pre> <p>[DEBUG] === 웹훅 디버깅 완료 ===</p> {"status":"debug_complete","gnuboard_loaded":true,"timestamp":"2025-08-23T15:11:56+09:00"}
[2025-08-13 18:47:35] === 웹훅 디버깅 시작 === [2025-08-13 18:47:35] Request Method | "POST" [2025-08-13 18:47:35] Raw payload length | 225 [2025-08-13 18:47:35] JSON decode result | "SUCCESS" [2025-08-13 18:47:35] Event Type | "BILLING.SUBSCRIPTION.ACTIVATED" [2025-08-13 18:47:35] Resource ID | "I-9FMY6D16NWL0" [2025-08-13 18:47:35] === 그누보드 환경 로드 시도 === [2025-08-13 18:47:35] Checking path | "..\/..\/..\/..\/common.php" [2025-08-13 18:47:35] Path not found | "..\/..\/..\/..\/common.php" [2025-08-13 18:47:35] Checking path | "..\/..\/..\/common.php" [2025-08-13 18:47:35] Path exists, trying to include | "..\/..\/..\/common.php" [2025-08-13 18:47:35] Successfully loaded | "..\/..\/..\/common.php" [2025-08-13 18:47:35] === 그누보드 환경 확인 === [2025-08-13 18:47:35] G5 table prefix | "NOT SET" [2025-08-13 18:47:35] DB connection | "SUCCESS" [2025-08-13 18:47:35] === 웹훅 디버깅 완료 === [2025-08-13 18:48:02] === 웹훅 디버깅 시작 === [2025-08-13 18:48:02] Request Method | "POST" [2025-08-13 18:48:02] Raw payload length | 225 [2025-08-13 18:48:02] JSON decode result | "SUCCESS" [2025-08-13 18:48:02] Event Type | "BILLING.SUBSCRIPTION.ACTIVATED" [2025-08-13 18:48:02] Resource ID | "I-9FMY6D16NWL0" [2025-08-13 18:48:02] === 그누보드 환경 로드 시도 === [2025-08-13 18:48:02] Checking path | "..\/..\/..\/..\/common.php" [2025-08-13 18:48:02] Path not found | "..\/..\/..\/..\/common.php" [2025-08-13 18:48:02] Checking path | "..\/..\/..\/common.php" [2025-08-13 18:48:02] Path exists, trying to include | "..\/..\/..\/common.php" [2025-08-13 18:48:02] Successfully loaded | "..\/..\/..\/common.php" [2025-08-13 18:48:02] === 그누보드 환경 확인 === [2025-08-13 18:48:02] G5 table prefix | "NOT SET" [2025-08-13 18:48:02] DB connection | "SUCCESS" [2025-08-13 18:48:02] === 웹훅 디버깅 완료 === [2025-08-13 18:48:03] === 웹훅 디버깅 시작 === [2025-08-13 18:48:03] Request Method | "POST" [2025-08-13 18:48:03] Raw payload length | 225 [2025-08-13 18:48:03] JSON decode result | "SUCCESS" [2025-08-13 18:48:03] Event Type | "BILLING.SUBSCRIPTION.ACTIVATED" [2025-08-13 18:48:03] Resource ID | "I-9FMY6D16NWL0" [2025-08-13 18:48:03] === 그누보드 환경 로드 시도 === [2025-08-13 18:48:03] Checking path | "..\/..\/..\/..\/common.php" [2025-08-13 18:48:03] Path not found | "..\/..\/..\/..\/common.php" [2025-08-13 18:48:03] Checking path | "..\/..\/..\/common.php" [2025-08-13 18:48:03] Path exists, trying to include | "..\/..\/..\/common.php" [2025-08-13 18:48:03] Successfully loaded | "..\/..\/..\/common.php" [2025-08-13 18:48:03] === 그누보드 환경 확인 === [2025-08-13 18:48:03] G5 table prefix | "NOT SET" [2025-08-13 18:48:03] DB connection | "SUCCESS" [2025-08-13 18:48:03] === 웹훅 디버깅 완료 === [2025-08-13 18:49:41] === 웹훅 디버깅 시작 === [2025-08-13 18:49:41] Request Method | "POST" [2025-08-13 18:49:41] Raw payload length | 225 [2025-08-13 18:49:41] JSON decode result | "SUCCESS" [2025-08-13 18:49:41] Event Type | "BILLING.SUBSCRIPTION.ACTIVATED" [2025-08-13 18:49:41] Resource ID | "I-9FMY6D16NWL0" [2025-08-13 18:49:41] === 그누보드 환경 로드 시도 === [2025-08-13 18:49:41] Checking path | "..\/..\/..\/..\/common.php" [2025-08-13 18:49:41] Path not found | "..\/..\/..\/..\/common.php" [2025-08-13 18:49:41] Checking path | "..\/..\/..\/common.php" [2025-08-13 18:49:41] Path exists, trying to include | "..\/..\/..\/common.php" [2025-08-13 18:49:41] Successfully loaded | "..\/..\/..\/common.php" [2025-08-13 18:49:41] === 그누보드 환경 확인 === [2025-08-13 18:49:41] G5 table prefix | "NOT SET" [2025-08-13 18:49:41] DB connection | "SUCCESS" [2025-08-13 18:49:41] 기본 테이블 prefix 설정 | "g5_" [2025-08-13 18:49:41] Checking table | "g5_subscription" [2025-08-13 18:49:41] Table exists | "YES" [2025-08-13 18:49:41] === 테스트 쿼리 실행 === [2025-08-13 18:49:41] Test SQL | "SELECT COUNT(*) as cnt FROM g5_subscription" [2025-08-13 18:49:41] Row count | "1" [2025-08-13 18:49:41] Search SQL | "SELECT * FROM g5_subscription WHERE paypal_sub_id = 'I-9FMY6D16NWL0'" [2025-08-13 18:49:41] Found subscription | "YES" [2025-08-13 18:49:41] Subscription data | {"id":"1","mb_id":"test_user","plan":"premium","term":"yearly","status":"active","paypal_sub_id":"I-9FMY6D16NWL0","paypal_plan_id":null,"amount":"12.00","currency":"USD","start_date":"2025-08-13 10:31:57","next_billing_date":null,"created_at":"2025-08-13 10:31:57","updated_at":"2025-08-13 10:31:57"} [2025-08-13 18:49:41] Update SQL | "UPDATE g5_subscription SET \n status = 'active',\n start_date = NOW(),\n updated_at = NOW()\n WHERE paypal_sub_id = 'I-9FMY6D16NWL0'" [2025-08-13 18:49:41] Update result | "SUCCESS" [2025-08-13 18:49:41] Member SQL | "SELECT mb_id, mb_level FROM g5_member WHERE mb_id = 'test_user'" [2025-08-13 18:49:41] Member found | "NO" [2025-08-13 18:49:41] === 웹훅 디버깅 완료 === [2025-08-13 18:51:59] === 웹훅 디버깅 시작 === [2025-08-13 18:51:59] Request Method | "POST" [2025-08-13 18:51:59] Raw payload length | 225 [2025-08-13 18:51:59] JSON decode result | "SUCCESS" [2025-08-13 18:51:59] Event Type | "BILLING.SUBSCRIPTION.ACTIVATED" [2025-08-13 18:51:59] Resource ID | "I-9FMY6D16NWL0" [2025-08-13 18:51:59] === 그누보드 환경 로드 시도 === [2025-08-13 18:51:59] Checking path | "..\/..\/..\/..\/common.php" [2025-08-13 18:51:59] Path not found | "..\/..\/..\/..\/common.php" [2025-08-13 18:51:59] Checking path | "..\/..\/..\/common.php" [2025-08-13 18:51:59] Path exists, trying to include | "..\/..\/..\/common.php" [2025-08-13 18:51:59] Successfully loaded | "..\/..\/..\/common.php" [2025-08-13 18:51:59] === 그누보드 환경 확인 === [2025-08-13 18:51:59] G5 table prefix | "NOT SET" [2025-08-13 18:51:59] DB connection | "SUCCESS" [2025-08-13 18:51:59] 기본 테이블 prefix 설정 | "g5_" [2025-08-13 18:51:59] Checking table | "g5_subscription" [2025-08-13 18:51:59] Table exists | "YES" [2025-08-13 18:51:59] === 테스트 쿼리 실행 === [2025-08-13 18:51:59] Test SQL | "SELECT COUNT(*) as cnt FROM g5_subscription" [2025-08-13 18:51:59] Row count | "1" [2025-08-13 18:51:59] Search SQL | "SELECT * FROM g5_subscription WHERE paypal_sub_id = 'I-9FMY6D16NWL0'" [2025-08-13 18:51:59] Found subscription | "YES" [2025-08-13 18:51:59] Subscription data | {"id":"1","mb_id":"test_user","plan":"premium","term":"yearly","status":"active","paypal_sub_id":"I-9FMY6D16NWL0","paypal_plan_id":null,"amount":"12.00","currency":"USD","start_date":"2025-08-13 18:49:41","next_billing_date":null,"created_at":"2025-08-13 10:31:57","updated_at":"2025-08-13 18:49:41"} [2025-08-13 18:51:59] Update SQL | "UPDATE g5_subscription SET \n status = 'active',\n start_date = NOW(),\n updated_at = NOW()\n WHERE paypal_sub_id = 'I-9FMY6D16NWL0'" [2025-08-13 18:51:59] Update result | "SUCCESS" [2025-08-13 18:51:59] Member SQL | "SELECT mb_id, mb_level FROM g5_member WHERE mb_id = 'test_user'" [2025-08-13 18:51:59] Member found | "NO" [2025-08-13 18:51:59] === 웹훅 디버깅 완료 === [2025-08-13 18:52:08] === 웹훅 디버깅 시작 === [2025-08-13 18:52:08] Request Method | "POST" [2025-08-13 18:52:08] Raw payload length | 225 [2025-08-13 18:52:08] JSON decode result | "SUCCESS" [2025-08-13 18:52:08] Event Type | "BILLING.SUBSCRIPTION.ACTIVATED" [2025-08-13 18:52:08] Resource ID | "I-9FMY6D16NWL0" [2025-08-13 18:52:08] === 그누보드 환경 로드 시도 === [2025-08-13 18:52:08] Checking path | "..\/..\/..\/..\/common.php" [2025-08-13 18:52:08] Path not found | "..\/..\/..\/..\/common.php" [2025-08-13 18:52:08] Checking path | "..\/..\/..\/common.php" [2025-08-13 18:52:08] Path exists, trying to include | "..\/..\/..\/common.php" [2025-08-13 18:52:08] Successfully loaded | "..\/..\/..\/common.php" [2025-08-13 18:52:08] === 그누보드 환경 확인 === [2025-08-13 18:52:08] G5 table prefix | "NOT SET" [2025-08-13 18:52:08] DB connection | "SUCCESS" [2025-08-13 18:52:08] 기본 테이블 prefix 설정 | "g5_" [2025-08-13 18:52:08] Checking table | "g5_subscription" [2025-08-13 18:52:08] Table exists | "YES" [2025-08-13 18:52:08] === 테스트 쿼리 실행 === [2025-08-13 18:52:08] Test SQL | "SELECT COUNT(*) as cnt FROM g5_subscription" [2025-08-13 18:52:08] Row count | "1" [2025-08-13 18:52:08] Search SQL | "SELECT * FROM g5_subscription WHERE paypal_sub_id = 'I-9FMY6D16NWL0'" [2025-08-13 18:52:08] Found subscription | "YES" [2025-08-13 18:52:08] Subscription data | {"id":"1","mb_id":"test_user","plan":"premium","term":"yearly","status":"active","paypal_sub_id":"I-9FMY6D16NWL0","paypal_plan_id":null,"amount":"12.00","currency":"USD","start_date":"2025-08-13 18:51:59","next_billing_date":null,"created_at":"2025-08-13 10:31:57","updated_at":"2025-08-13 18:51:59"} [2025-08-13 18:52:08] Update SQL | "UPDATE g5_subscription SET \n status = 'active',\n start_date = NOW(),\n updated_at = NOW()\n WHERE paypal_sub_id = 'I-9FMY6D16NWL0'" [2025-08-13 18:52:08] Update result | "SUCCESS" [2025-08-13 18:52:08] Member SQL | "SELECT mb_id, mb_level FROM g5_member WHERE mb_id = 'test_user'" [2025-08-13 18:52:08] Member found | "NO" [2025-08-13 18:52:08] === 웹훅 디버깅 완료 === [2025-08-23 12:41:36] === 웹훅 디버깅 시작 === [2025-08-23 12:41:36] Request Method | "GET" [2025-08-23 12:41:36] Raw payload length [2025-08-23 12:41:36] === 그누보드 환경 로드 시도 === [2025-08-23 12:41:36] Checking path | "..\/..\/..\/..\/common.php" [2025-08-23 12:41:36] Path not found | "..\/..\/..\/..\/common.php" [2025-08-23 12:41:36] Checking path | "..\/..\/..\/common.php" [2025-08-23 12:41:36] Path exists, trying to include | "..\/..\/..\/common.php" [2025-08-23 12:41:36] Successfully loaded | "..\/..\/..\/common.php" [2025-08-23 12:41:36] === 그누보드 환경 확인 === [2025-08-23 12:41:36] G5 table prefix | "NOT SET" [2025-08-23 12:41:36] DB connection | "SUCCESS" [2025-08-23 12:41:36] 기본 테이블 prefix 설정 | "g5_" [2025-08-23 12:41:36] Checking table | "g5_subscription" [2025-08-23 12:41:36] Table exists | "YES" [2025-08-23 12:41:36] === 테스트 쿼리 실행 === [2025-08-23 12:41:36] Test SQL | "SELECT COUNT(*) as cnt FROM g5_subscription" [2025-08-23 12:41:36] Row count | "2" [2025-08-23 12:41:36] Search SQL | "SELECT * FROM g5_subscription WHERE paypal_sub_id = 'I-9FMY6D16NWL0'" [2025-08-23 12:41:36] Found subscription | "YES" [2025-08-23 12:41:36] Subscription data | {"id":"1","mb_id":"test_user","plan":"premium","term":"yearly","status":"active","paypal_sub_id":"I-9FMY6D16NWL0","paypal_plan_id":"P-3MC99372MN303192FNCNWNAY","amount":"12.00","currency":"USD","start_date":"2025-08-13 18:54:50","next_billing_date":"2026-08-13 19:31:57","created_at":"2025-08-13 10:31:57","updated_at":"2025-08-13 18:54:50"} [2025-08-23 12:41:36] Update SQL | "UPDATE g5_subscription SET \n status = 'active',\n start_date = NOW(),\n updated_at = NOW()\n WHERE paypal_sub_id = 'I-9FMY6D16NWL0'" [2025-08-23 12:41:36] Update result | "SUCCESS" [2025-08-23 12:41:36] Member SQL | "SELECT mb_id, mb_level FROM g5_member WHERE mb_id = 'test_user'" [2025-08-23 12:41:36] Member found | "NO" [2025-08-23 12:41:36] === 웹훅 디버깅 완료 === [2025-08-23 15:11:56] === 웹훅 디버깅 시작 === [2025-08-23 15:11:56] Request Method | "POST" [2025-08-23 15:11:56] Raw payload length | 225 [2025-08-23 15:11:56] JSON decode result | "SUCCESS" [2025-08-23 15:11:56] Event Type | "BILLING.SUBSCRIPTION.ACTIVATED" [2025-08-23 15:11:56] Resource ID | "I-9FMY6D16NWL0" [2025-08-23 15:11:56] === 그누보드 환경 로드 시도 === [2025-08-23 15:11:56] Checking path | "..\/..\/..\/..\/common.php" [2025-08-23 15:11:56] Path not found | "..\/..\/..\/..\/common.php" [2025-08-23 15:11:56] Checking path | "..\/..\/..\/common.php" [2025-08-23 15:11:56] Path exists, trying to include | "..\/..\/..\/common.php" [2025-08-23 15:11:56] Successfully loaded | "..\/..\/..\/common.php" [2025-08-23 15:11:56] === 그누보드 환경 확인 === [2025-08-23 15:11:56] G5 table prefix | "NOT SET" [2025-08-23 15:11:56] DB connection | "SUCCESS" [2025-08-23 15:11:56] 기본 테이블 prefix 설정 | "g5_" [2025-08-23 15:11:56] Checking table | "g5_subscription" [2025-08-23 15:11:56] Table exists | "YES" [2025-08-23 15:11:56] === 테스트 쿼리 실행 === [2025-08-23 15:11:56] Test SQL | "SELECT COUNT(*) as cnt FROM g5_subscription" [2025-08-23 15:11:56] Row count | "2" [2025-08-23 15:11:56] Search SQL | "SELECT * FROM g5_subscription WHERE paypal_sub_id = 'I-9FMY6D16NWL0'" [2025-08-23 15:11:56] Found subscription | "YES" [2025-08-23 15:11:56] Subscription data | {"id":"1","mb_id":"test_user","plan":"premium","term":"yearly","status":"active","paypal_sub_id":"I-9FMY6D16NWL0","paypal_plan_id":"P-3MC99372MN303192FNCNWNAY","amount":"12.00","currency":"USD","start_date":"2025-08-23 15:11:56","next_billing_date":"2026-08-13 19:31:57","created_at":"2025-08-13 10:31:57","updated_at":"2025-08-23 15:11:56"} [2025-08-23 15:11:56] Update SQL | "UPDATE g5_subscription SET \n status = 'active',\n start_date = NOW(),\n updated_at = NOW()\n WHERE paypal_sub_id = 'I-9FMY6D16NWL0'" [2025-08-23 15:11:56] Update result | "SUCCESS" [2025-08-23 15:11:56] Member SQL | "SELECT mb_id, mb_level FROM g5_member WHERE mb_id = 'test_user'" [2025-08-23 15:11:56] Member found | "NO" [2025-08-23 15:11:56] === 웹훅 디버깅 완료 ===