ComusThumbz トラブルシューティング
- プロフィール
- 速い診断チェックリスト
- サーバーと PHP のエラー
- 空白ページ/500内部サーバーエラー
- AdminLanguageシングルトンエラー
- 記憶限界 排出される
- 最高の実行時間超過
- ファイル許可エラー
- データベースの問題
- データベース接続失敗
- テーブルロック&ブロックキー
- スローキー
- SQL デバッグコマンド
- ビデオ処理
- 動画 吸う 'pending'
- FFmpeg / FFprobeが見つかりません
- ビデオ処理エラー
- HLS Streaming 機能しない
- サムネイル 生成しない
- CDN アップロード失敗
- 分散型変換サーバーの問題
- APIの問題
- API認証失敗
- JavaScriptから失敗するAPIコール
- API は空のデータを返す
- CORSエラー
- フロントエンドの問題
- 機能 表示されていない/すべての障害者
- 翻訳 読み込みなし
- CSS スタイルは適用しない
- ダーク モード 動作しない
- ビデオ プレイヤー ローディングしません
- クリックトラッキング 動作しない
- SEOメタタグ ミス
- カムパフォーマーシステム
- 出演者なし
- オフラインで表示されているすべてのパフォーマー
- 外部 API 403 禁止
- 外部 API 401 認証なし
- スローカムパフォーマーページ
- アフィリエイト収入不足
- ライブストリーミング(LiveKit)
- LiveKitサーバーは起動しません
- ストリーム 接続しない
- 高い潜伏/緩衝
- チャット 動作しない
- クリエイターの収益化
- 処理しないヒント
- 集計しない収益
- クリエイター投稿を表示しない
- サブスクリプションの問題
- 認証とユーザー
- ログイン失敗
- セッションの問題
- 2FAの問題
- Cronジョブ
- Cronジョブの検証は実行中
- 必要なCronのスケジュール
- デバッグツール参照
- ログファイルの場所
- 一般的なSQLの修正
プロフィール
このガイドでは、ComusThumbz CMS全体でトラブルシューティング情報を統合し、バックエンド管理パネルの両方をカバーする()ct/admin/)およびフロントエンドの公開ページ(プロジェクトルート)。 問題は、症状、原因、および解決策のカテゴリによって組織されます。
速い診断チェックリスト
問題が発生した場合は、これらのチェックを実行します。
- PHP のエラーログ - チェック
ct/logs/サーバの PHP のエラーは、最近のエラーをログに記録します。 - Cronジョブ - cronジョブが実行されていることを確認します(ほとんどの「更新されていないデータ」の問題)
- ファイル権限 - Webサーバーは、アクセスを読み取り/書き込みする必要があります
uploads/,ct/logs/,ct/dat/ - データベース接続 - とテストして下さい
https://yourdomain.com/tools/simpletest.php?key=comus2025 - APIヘルス - とテストして下さい
https://yourdomain.com/ct/api/v1/features - 特集 トグル - 無効な機能は「ページが表示されない」の最も一般的な原因です
- ブラウザコンソール - JavaScript エラー (F12 -> Console) のチェック
- ネットワークタブ - 失敗した API リクエストのチェック (F12 -> ネットワーク)
サーバーと PHP のエラー
空白ページ/500内部サーバーエラー
症状: このページは、完全に空白を表示したり、HTTP 500を目に見えるエラーなしで返したりします。
一般的な原因:
declare(stricttypes=1)配置 - アフターフォロー. 致命的な間違いを引き起こす前に空白、BOM 文字、またはコード。
- PHP の構文エラー - エラーログを確認します。
- ミスはファイルを含む - A
requireonce存在しないファイル:
- 無効な表示エラー - デバッグのために一時的に有効にして下さい:
ソリューション: PHP のエラーログを最初にチェックします。 空の場合、有効 displayerrors 実際のエラーを一時的に確認します。
AdminLanguageシングルトンエラー
症状:
Fatal error: Cannot instantiate AdminLanguage または管理者ページ上の類似500エラー。
原因: 使用方法 new AdminLanguage() シングルトンパターンの代わりに。
修正:
// CORRECT
$lang = AdminLanguage::getInstance();
記憶限界 排出される
症状:
Fatal error: Allowed memory size of X bytes exhausted一般的なトリガー:
- 大型ビデオファイルアップロード
- 大規模な画像ギャラリーの処理
- 400K+カムパフォーマーレコードのバルク操作
ソリューション: PHP メモリの制限を増やす:
または/script:
最高の実行時間超過
症状:
Fatal error: Maximum execution time of 30 seconds exceeded一般的なトリガー:
- ビデオ処理 cron ジョブ
- 大規模なデータベースのクエリ
- 外部 API はタイミングアウト
ソリューション:
cronジョブの場合、無制限に設定します。
ファイル許可エラー
症状:
Permission denied ファイルを記述したり、ディレクトリを作成するときにエラー。
必須権限:
修正:データベースの問題
データベース接続失敗
症状: ページの読み込みに失敗し、API は 500 エラー、ログに "Connection rejectd" を返します。
診断:
- クイックデータベースツールでテスト:
- 資格情報を確認する
ct/dat/config.inc.php: : :
- MySQL が実行されていることを確認してください:
ソリューション: MySQL サービスが実行されていることを確認し、データベース設定に一致する資格情報を確認してください。
テーブルロック&ブロックキー
症状: API はタイムアウトを呼び出しますが、直接データベースのクエリは高速です。 このページは30〜60秒間ハングします。
診断:
- MySQL ステータス ツールを実行します。
- 問い合わせをブロックするためのチェック:
- InnoDBロック解析用のデータベースロックインスペクタを使用します。
ソリューション:
- ブロッククエリをキル化:
- またはデバッグツール経由で:
共通の犯人: ザ・オブ・ザ・ apicron.php marksiteperformersoffline() 一度にすべてのパフォーマーを更新する機能。 これは、バッチ更新で固定された(10msのポーズで1000行)。
スローキー
症状: 特定のページは、特にカムパフォーマーまたはビデオリストをゆっくりとロードします。
診断:
-- テーブルの性能を分析して下さい
分析テーブルtblCamsPerformers;
分析テーブルtblVideos;
-- Check index usage
SHOW INDEX FROM tblCamsPerformers;
SHOW INDEX FROM tblVideos;
ソリューション:
- 頻繁な列にインデックスが存在することを確認します。
- 使用条件
EXPLAIN不足しているインデックスを識別するためのスロークエリ - APCuキャッシュが動作しているかどうかチェック (
php -m | grep apcu) - カムパフォーマーのために、使用して下さい
?fast=1COUNT クエリをスキップする
SQL デバッグコマンド
手動データベースのデバッグのための速い参照:
-- 特定のクエリをキル化
キル123;
-- 30秒以上の古い接続をスリープする
選択コンキャット('KILL', id, ';')
インフォメーションスキーマ。 プロセスリスト
Command='Sleep' と 時間 > 30;
-- チェックテーブルロック
ショーオープンテーブルは、使用 > 0;
-- Check InnoDB status for deadlocks
SHOW ENGINE INNODB STATUS;
ビデオ処理
動画 吸う 'pending'
症状: アップロードされた動画が、決して処理しません。 ステータスは「終わり」を無期限に残します。
これは最も一般的なビデオの問題です。 順序でこれらをチェックして下さい:
- 実行されていないCronジョブ - ビデオ・プロセッサはスケジュールで動きます:
- php /path/to/ct/admin/cron/ftpビデオプロセッサー.php
- 間違ったファイルデータベースのパス形式 - 最も一般的なデータバグ:
ファイルパスは必須です: uploads/videos/original/{filename}
お知らせ ファイル名だけ、 お知らせ 含まれるもの ct/ プレフィックス。
- 正しいファイルパスを修正:
- 明確なスタック処理キュー:
- ディスクに存在するファイルを確認します。
FFmpeg / FFprobeが見つかりません
症状: ログに「FFmpegが見つからなかった」「FFprobeが見つからなかった」とビデオ処理が失敗します。
診断:
ソリューション:
- FFmpegをインストール:
- config マッチの実際の場所にあるパスを確認します。
- PHP がシェルコマンドを実行できるようにします。
ビデオ処理エラー
症状: 処理の試みの後の 'error' の状態へのビデオ変更。
診断:
- 処理ログをチェック:
- ビデオ録画を確認してください。
一般的な原因:
- 破損したソースファイル
- サポートされていないコーデック
- 不十分なディスクスペース
- FFmpeg バージョンも 古い (4.0+ が必要)
ソリューション: 根本的な原因を修正し、再処理のためにビデオをリセットします。
HLS Streaming 機能しない
症状: ビデオプレーヤーは、エラーを表示したり、MP4に戻って落ちたりします。 フリガナ
.m3u8 ローディングしないファイル。
診断:
- HLSファイルが生成されたかどうかを確認します。
- マスタープレイリストがアクセス可能であることを確認します。
- Check MIME type configuration. Your web server must serve
.m3u8asapplication/vnd.apple.mpegurl:
Solution: Verify HLS files exist on CDN, MIME types are correct, and securemedia.php token is valid.
Thumbnails Not Generating
Symptom: Videos process but have no poster image, preview, or timeline thumbnails.
Diagnosis:
Common causes:
- ImageMagick not installed (
convertcommand needed for contact sheets) - FFmpeg failed during thumbnail extraction
- CDN upload for thumbnails failed (check storage server logs)
Solution:
Reprocess thumbnails only
CDN Upload Failures
Symptom: Video processes locally but files don't appear on CDN storage server.
Diagnosis:
- Check storage server configuration:
- Check file location records:
- Verify CDN credentials and connectivity from the admin panel.
File sharding formula: floor(videoid / 1000) 1000
Example: Video ID 4321 goes to shard 4000:
Solution: Check CDN credentials, test connectivity, verify storage server group assignment.
Distributed Conversion Server Issues
Symptom: Videos not being assigned to remote conversion servers, or remote processing fails.
Diagnosis:
- Check server status:
- Check conversion logs:
- Verify settings:
Solution:
- Ensure
conversionuseremoteserversis set to1 - Verify remote server SSH/FTP connectivity
- Check that FFmpeg is installed on remote servers
- Verify
conversionfallbacktolocalis1for automatic fallback
API Issues
API Authentication Failures
Symptom: API returns 401 Unauthorized or "Invalid token" errors.
Common causes:
- Wrong user ID column -
tblCMSUsersusesid, NOTuserid:
-- WRONG (column doesn't exist)
SELECT userid FROM tblCMSUsers;
- Wrong status column -
tblCMSUsersusesaccountstatus, NOTstatus:
-- WRONG
WHERE status = 'active'
- JWT token expired - Tokens have an expiration time. Re-authenticate:
- JWT secret mismatch - Verify in config:
API Calls Failing from JavaScript
Symptom: Frontend pages can't load data. Browser console shows fetch errors.
Diagnosis:
- Check
ApiClientbase URL:
- Check Network tab (F12) for the failing request - note the URL, status code, and response body.
- Verify the endpoint exists in the router:
- File:
ct/api/v1/index.php - 90+ endpoints defined
- Check JWT token:
Solution: Verify base URL detection, check endpoint exists in router, verify authentication token if endpoint requires auth.
API Returns Empty Data
Symptom: API returns
{"success": true, "data": []} with no content.
Diagnosis:
- Check if data exists in the database:
- Check feature toggles - some API endpoints return empty when features are disabled.
- Check query parameters - pagination offset may be beyond available data.
Solution: Verify data exists in the database and feature toggles are enabled.
CORS Errors
Symptom: Browser console shows
Access-Control-Allow-Origin errors.
Cause: API and frontend on different domains or ports.
Solution: Ensure the API sets proper CORS headers:
Or in .htaccess:
Frontend Issues
Features Not Showing / All Disabled
Symptom: Pages redirect with "feature disabled" message, or navigation items are missing.
Diagnosis:
- Test the features API endpoint:
- Check feature cache - APCu may have stale data:
- Check
featurehelper.php- all features default to enabled if not found in database.
- Verify feature settings in admin panel: Admin Panel -> Feature Toggles
Solution: Clear APCu cache, verify feature settings in admin panel, check that the API is reachable.
Translations Not Loading
Symptom: Translation keys displayed instead of text (e.g.,
videos.title instead of "Videos").
Diagnosis:
- Verify
lang/en.jsonexists and is valid JSON:
- Check file permissions (must be readable by web server).
- Verify the translation key exists in the JSON:
- Check for typos in nested keys -
videos.sortby.videoidrequires all parent keys to exist.
Solution: Validate JSON syntax, check file permissions, verify key path exists in the translation file.
CSS Styles Not Applying
Symptom: Page looks unstyled or broken layout.
Rules:
- Only use
assets/css/style.css- no external CSS frameworks (Bootstrap, Tailwind, etc.) - Check for specificity conflicts with Style Manager overrides (Phase 12)
- Verify the stylesheet is loaded in
includes/header.php - Check browser cache - append
?v=timestampto stylesheet URL
Solution:
Dark Mode Not Working
Symptom: Dark mode toggle doesn't change the page appearance.
Diagnosis:
- Check
featuredarkmodeis enabled in feature toggles - Verify
localStorageis available:
- Confirm
body.dark-modeCSS rules exist inassets/css/style.css - Check that both
bodyandhtmlelements get the class:
Solution: Enable the feature toggle, clear localStorage, verify CSS dark mode rules exist.
Video Player Not Loading
Symptom: Video player area is blank, shows error, or spinner never completes.
Diagnosis:
Check browser Network tab for/ct/api/v1/videos/{id} requestVerify video data is returned with valid URLsCheck access control - user may lack permission (free/premium/VIP)For HLS: verify HLS.js is loaded and browser supports it
- Check
securemedia.phptoken generation:
Solution: Check API response, verify access control, ensure HLS.js or native HLS support is available, verify media token is valid.
Click Tracking Not Working
Symptom: External links not being tracked, or affiliate revenue is missing.
Critical rule: ALL external links MUST route through click.php. Direct links incur a 100% skim penalty.
Correct format:
// JavaScript
const url = click.php?url=${encodeURIComponent(externalUrl)}&type=${type}&id=${id};
Diagnosis:
- Check that
click.phpexists at the project root - Verify
tblClickTrackingis receiving records:
- Check
tblContentClicksfor aggregated counts
Solution: Audit all external links to ensure they use click.php. Use browser DevTools to verify link href attributes.
SEO Meta Tags Missing
Symptom: Social media shares show generic or missing preview data. Search engines don't index properly.
Cause: SEO data must be loaded BEFORE header.php is included.
Correct order:
// 2. Fetch data for SEO
$api = InternalApiHelper::getInstance();
$videoData = $api->getVideoForSeo($videoId);
// 3. NOW include header (generates meta tags from loaded data)
requireonce DIR . '/includes/header.php';
Diagnosis:
View page source and check for<meta property="og:title"> tagsUse Facebook/Twitter debugger tools to validate Open Graph tags
- Check
ct/dat/seosettings.jsonfor template configuration
Solution: Ensure SEO data is loaded before header, verify SeoHelper.php and InternalApiHelper.php are working.
Cam Performers System
No Performers Appearing
Symptom: Cam performers page is empty, no performer cards shown.
Diagnosis (in order):
- Check cron jobs are running:
- Verify API credentials in Admin -> Cam Settings
- Check
tblCamsSitesfor enabled sites:
- Verify
featurelivecamsis enabled in feature toggles - Check logs:
- Test the internal API directly:
Solution: Enable cron jobs, verify API credentials, enable the feature toggle.
All Performers Showing Offline
Symptom: Performers exist but all show as offline.
Diagnosis:
- Run the cron update manually:
- Check if external API is responding:
- Verify API token hasn't expired
- Check database for online performers:
Solution: Run cron manually, verify external API credentials are valid.
External API 403 Forbidden
Symptom: External CrakRevenue API returns
{"message": "Forbidden"} or HTML error page.
Causes:
- Missing or invalid
x-api-keyheader - Missing
User-Agentheader (returns HTML error page) - API key revoked by CrakRevenue
Diagnosis:
Solution: Verify x-api-key (stored in tblCamsSites.apiData) and ensure requests include a User-Agent header. Contact CrakRevenue if key was revoked.
External API 401 Unauthorized
Symptom: External API returns
{"message": "Unauthorized: brands not allowed"} or similar.
Causes:
- Invalid or missing
tokenparameter - Requesting brands not authorized for your token
- Token is domain-bound and being used from wrong domain
Diagnosis:
Solution: Verify token (stored in tblCamsSites.parameters), ensure you only request authorized brands, verify token is for your domain.
Slow Cam Performers Page
Symptom: Cam performers page takes 5+ seconds to load.
Diagnosis:
- Use the debug panel: add
?debug=1to the URL to see timing breakdown - Use the full debug tool:
Optimization checklist:
- Enable fast mode - ensure frontend uses
?fast=1parameter - Check APCu is installed and enabled:
- Verify stats cache cron is running:
- Reduce
perpageto 24 or less - Check for blocking database queries (see Table Locks)
Three-layer caching strategy:
- Layer 1: APCu in-memory cache (30s TTL)
- Layer 2: Database stats cache (
tblCamsPerformersStatsCache) - Layer 3: Fast mode (skip COUNT queries entirely)
Solution: Enable all three caching layers and verify cron jobs are running.
Affiliate Revenue Missing
Symptom: Clicks on cam performers not tracking, affiliate commissions not appearing.
Cause: External performer links not routed through click.php.
Required format:
Also verify:
- Affiliate ID is present in the
roomUrlfrom the external API tblClickTrackingis recording cam performer clicks- Performer
chatroomurlcontains valid affiliate tracking parameters
Solution: Audit all performer links to ensure click.php routing. Verify affiliate ID in room URLs.
Live Streaming (LiveKit)
LiveKit Server Not Starting
Symptom: Docker container won't start or crashes immediately.
Diagnosis:
Check logs
Verify Docker is running
Common causes:
- Port conflicts (7880, 7881, 40000-40100 already in use)
- Invalid
livekit-config.yamlsyntax - Docker not installed or not running
- Insufficient permissions
Solution:
Restart container
Or recreate
Stream Not Connecting
Symptom: Creator clicks "Start Streaming" but video never appears. Viewers see loading spinner.
Diagnosis:
- Check LiveKit config in
ct/dat/config.inc.php:
- Verify WebSocket connection from browser:
- Open browser console (F12)
- Look for WebSocket connection errors
- Check if
wss://URL is accessible
- Verify firewall rules:
Required ports:
7880- WebSocket signaling7881- TCP media40000-40100- UDP media (WebRTC)
Solution: Verify LiveKit credentials match between config and server, check firewall ports, ensure SSL is configured for wss://.
High Latency / Buffering
Symptom: Live stream has noticeable delay (>2 seconds) or frequent buffering.
Causes:
- UDP ports blocked - WebRTC falls back to TCP (higher latency)
- Server overloaded
- Client bandwidth insufficient
Solution:
- Ensure UDP ports 40000-40100 are open
- Check server load:
- Verify
nodeipinlivekit-config.yamlmatches your public IP
Chat Not Working
Symptom: Chat messages not sending or not appearing for other viewers.
Diagnosis:
- Check
tblLiveStreamChatfor recent messages:
- Verify WebSocket connection in browser console
- Check that the stream ID is valid in
tblLiveStreams
Solution: Verify stream exists, WebSocket is connected, and chat API endpoint is responding.
Creator Monetization
Tips Not Processing
Symptom: Tips sent but not appearing in creator's balance or transaction history.
Diagnosis:
-- Check creator tips
SELECT FROM tblCreatorTips ORDER BY createdat DESC LIMIT 10;
-- Check user token balance
SELECT id, username, tokenbalance FROM tblCMSUsers WHERE id = <USERID>;
Common causes:
- Insufficient token balance
- Creator profile not verified
- API endpoint error (check response)
Solution: Verify sender has sufficient tokens, creator profile is active, and POST /tips/send returns success.
Earnings Not Aggregating
Symptom: Creator earnings dashboard shows $0 despite receiving tips/subscriptions.
Cause: Earnings aggregation cron job not running.
Required cron:
Diagnosis:
-- Check if raw transactions exist
SELECT SUM(amount) as total
FROM tblTokenTransactions
WHERE recipientid = <ID> AND createdat >= CURDATE();
Solution: Ensure the aggregatecreatorearnings.php cron job is running every minute.
Creator Posts Not Displaying
Symptom: Creator wall is empty or posts aren't visible.
Diagnosis:
- Check
featurecreatorpostsis enabled - Verify posts exist:
- Check post visibility settings (public vs subscriber-only vs PPV)
- Verify media uploads if post contains images/video:
Solution: Enable the feature toggle, verify posts exist in the database, check access control for post visibility.
Subscription Issues
Symptom: Subscriptions not activating, or subscribers can't access content.
Diagnosis:
-- Check subscription packages
SELECT FROM tblCreatorSubscriptionPackages WHERE creatorid = <CREATORID>;
Solution: Verify featuresubscriptions is enabled, check payment processing, verify subscription record status.
Authentication & Users
Login Fails
Symptom: Login form returns error or redirects back without logging in.
Diagnosis:
- Test the auth API directly:
- Check user account status:
Remember: column is accountstatus, NOT status.
- Check if account is locked, suspended, or unverified.
Solution: Verify account exists, is active (accountstatus = 'active'), and email is verified if required.
Session Issues
Symptom: User logged in via API but pages don't recognize session. Constant redirects to login.
Diagnosis:
- Check
auth/setsession.phpis being called after login - Verify session cookie is being set:
- Check PHP session configuration:
Solution: Ensure setsession.php is called after API login returns JWT token. Verify session cookie domain matches.
2FA Problems
Symptom: Two-factor authentication code rejected, or 2FA setup fails.
Diagnosis:
- Check
feature2fais enabled - Verify server time is accurate (TOTP codes are time-based):
- Time drift of >30 seconds will cause code rejection.
Solution: Sync server time with NTP, verify 2FA secret is stored correctly.
Cron Jobs
Verifying Cron Jobs Are Running
Check if cron jobs are configured:
Check if they've run recently:
Check last modification of log files
Test a cron job manually:
Required Cron Schedule
The following cron jobs must be running for full system operation:
- php /path/to/ct/admin/cron/ftpvideoprocessor.php
Cam Performers
Creator Monetization
- php /path/to/ct/admin/cron/aggregatecreatorearnings.php
Site Maintenance
Impact of missing cron jobs:
Debug Tools Reference
All debug tools require the security key parameter:
?key=comus2025
Kill a blocking query via URL:
Cam performers debug panel:
Shows: API URL, TTFB, download time, JSON parse time, DOM render time.
Log File Locations
Common SQL Fixes
Frequently-used SQL commands for fixing common data issues:
-- Reset errored videos for reprocessing
UPDATE tblVideos SET status = 'pending', errormessage = NULL
WHERE status = 'error' AND videoid IN (1, 2, 3);
-- Clear stuck processing jobs
DELETE FROM tblVideoProcessingJobs
WHERE videoid IN (SELECT videoid FROM tblVideos WHERE status = 'pending');
-- Check cam performer online counts by site
SELECT s.name, COUNT(p.performerid) as onlinecount
FROM tblCamsPerformers p
JOIN tblCamsSites s ON p.site = s.recordnum
WHERE p.status = 1 AND p.enabled = 1
GROUP BY s.name;
-- Check feature toggle status
SELECT settingkey, settingvalue
FROM tblSettings
WHERE settingkey LIKE 'feature%'
ORDER BY settingkey;
-- Check recent click tracking
SELECT type, COUNT() as clicks, MAX(createdat) as lastclick
FROM tblClickTracking
GROUP BY type ORDER BY clicks DESC;
-- Find users with authentication issues
SELECT id, username, accountstatus, emailverified, lastlogin
FROM tblCMSUsers
WHERE accountstatus != 'active'
ORDER BY id DESC LIMIT 20;
-- Check storage server health
SELECT serverid, servername, servertype, enabled,
lastcheck, lasterror
FROM tblStorageServers;
-- Verify creator earnings aggregation
SELECT creatorid, earningdate, totaltips, totalsubscriptions,
totalppv, totalearnings
FROM tblCreatorEarningsDaily
ORDER BY earningdate DESC LIMIT 20;