ROOT: /home/betvrtjcje/revenda.tanzaquest.com ====================================================================== ### 1. WHERE 'Module missing (skipped)' IS PRODUCED ---------------------------------------------------------------------- FILE: /index.php (line 160) ----- context ----- 'includes/event_mailer.php', 'includes/menu_templates.php', 'includes/boot_helpers.php', 'includes/business_type_helpers.php', 'includes/dashboard_router.php', 'includes/ride_receipt_helper.php', ]; $loadedModules = []; foreach ($priorityModules as $module) { $path = $basePath . '/' . $module; if (!file_exists($path)) { error_log("Module missing (skipped): $module"); continue; } if (in_array($module, $loadedModules, true)) { continue; } $loadedModules[] = $module; try { ----- end ----- FILE: /tools/diag-mailer.php (line 18) ----- context ----- * Visit: https://revenda.tanzaquest.com/tools/diag-mailer.php */ header('Content-Type: text/plain; charset=utf-8'); $root = dirname(__DIR__); // one level above tools/ echo "ROOT: {$root}\n"; echo str_repeat('=', 70) . "\n\n"; /* --------------------------------------------------------------- * 1. The exact log line and the loader around it * --------------------------------------------------------------- */ echo "### 1. WHERE 'Module missing (skipped)' IS PRODUCED\n"; echo str_repeat('-', 70) . "\n"; $needle = 'Module missing (skipped)'; $hits = []; $rii = new RecursiveIteratorIterator( new RecursiveDirectoryIterator($root, FilesystemIterator::SKIP_DOTS) ); foreach ($rii as $file) { ----- end ----- FILE: /tools/diag-mailer.php (line 21) ----- context ----- header('Content-Type: text/plain; charset=utf-8'); $root = dirname(__DIR__); // one level above tools/ echo "ROOT: {$root}\n"; echo str_repeat('=', 70) . "\n\n"; /* --------------------------------------------------------------- * 1. The exact log line and the loader around it * --------------------------------------------------------------- */ echo "### 1. WHERE 'Module missing (skipped)' IS PRODUCED\n"; echo str_repeat('-', 70) . "\n"; $needle = 'Module missing (skipped)'; $hits = []; $rii = new RecursiveIteratorIterator( new RecursiveDirectoryIterator($root, FilesystemIterator::SKIP_DOTS) ); foreach ($rii as $file) { if (!$file->isFile()) continue; if (strtolower($file->getExtension()) !== 'php') continue; $path = $file->getPathname(); ----- end ----- ### 2. ANY MAIL CALL SITES (first 40) ---------------------------------------------------------------------- /includes/mailer.php L11 function sendEmail(string $to, string $subject, string $body, ?string $from = null): bool { /includes/mailer.php L14 $mailer = new Mailer(); /includes/mailer.php L15 // Mailer::send($to, $subject, $htmlBody, $attachmentContent, $attachmentName, $replyTo, $cc, $bcc) /includes/mice_helpers.php L285 $mailer = new Mailer(); /includes/mice_helpers.php L288 error_log("miceSendMail: Mailer::send returned false for {$to}"); /includes/event_mailer.php L57 $ok = (bool)send_email($to, $subject, $html, $options); /includes/event_mailer.php L59 $ok = (bool)sendMail($to, $subject, $html); /includes/Mailer.php L3 // No Composer, no PHPMailer. Uses fsockopen + SSL wrapper. /includes/Mailer.php L73 error_log("Mailer::send — invalid recipient: " . var_export($to, true)); /includes/event_waitlist.php L241 return (bool)send_email($email, $subject, $html, [ /includes/event_waitlist.php L252 return (bool)sendMail($email, $subject, $html); /includes/ReportScheduler.php L70 if ($this->sendEmail($email, $subject, $body, $content, $filename)) { /includes/ReportScheduler.php L131 private function sendEmail(string $to, string $subject, string $body, string $attachment, string $filename): bool /includes/ReportScheduler.php L135 $mailer = new Mailer($vendor); /pages/admin/settings.php L144 $ok = sendEmail($email, 'Revenda Test Email', '

Test email from admin panel. SMTP works.

'); /pages/admin/settings.php L146 $ok = sendMail($email, 'Revenda Test Email', 'Test email from admin panel'); /pages/admin/email-templates.php L241 $ok = sendEmail($to, $renderedSubject, $renderedContent); /pages/admin/email-templates.php L243 $ok = sendMail($to, $renderedSubject, $renderedContent); /pages/admin/cron-jobs.php L283 @sendEmail($email, 'Check-in Reminder', '

Your stay begins tomorrow!

'); /pages/event-registration-cancel.php L52 return (bool)send_email($to, $subject, $html, ['source' => 'event_cancel']); /pages/event-registration-cancel.php L56 try { return (bool)sendMail($to, $subject, $html); } catch (Throwable $e) {} /pages/ride-receipt.php L108 $sent = (bool)sendEmail($riderEmail, $subject, $plainSummary); /functions.php L3382 * Send an HTML email through the configured Mailer (SMTP or native mail()). /functions.php L3406 $mailer = new Mailer(); /functions.php L3417 error_log('miceSendMail: Mailer::send returned false for ' . $to . ' — subj: ' . $subject); /find-mailer.php L130 'CALL_sendEmail' => 'sendEmail() CALLS (stub wrapper)', /find-mailer.php L132 'NEW_Mailer' => 'new Mailer() INSTANTIATIONS (correct path)', /find-mailer.php L160 // Inspect the first definition body for mail( or new Mailer /find-mailer.php L164 echo "✅ miceSendMail() uses new Mailer() → SMTP path. Likely OK.\n"; /find-mailer.php L167 echo " → Replace body with: return (new Mailer())->send(...);\n"; /find-mailer.php L169 echo "⚠ miceSendMail() calls sendEmail() wrapper. Check whether that wrapper\n"; /find-mailer.php L180 echo " Fix each to call new Mailer()->send(...) instead.\n"; /config.php L81 // If you need to send mail, use: new Mailer(); $mailer->send(...); /tools/cron_weekly_recommendations.php L33 sendMail($u['email'], 'Your weekly travel picks', $body); /tools/diag-mailer.php L142 echo "\n\n### 5. IS PHPMailer VENDORED?\n"; /tools/diag-mailer.php L146 $root . '/vendor/phpmailer/phpmailer/src/PHPMailer.php', /tools/diag-mailer.php L147 $root . '/vendor/PHPMailer/PHPMailer.php', /tools/diag-mailer.php L148 $root . '/lib/PHPMailer/PHPMailer.php', /tools/diag-mailer.php L149 $root . '/includes/PHPMailer/PHPMailer.php', /tools/diag-mailer.php L150 $root . '/htdocs/vendor/phpmailer/phpmailer/src/PHPMailer.php', ### 3. includes/ AND config/ FILE LISTS ---------------------------------------------------------------------- includes/ : (98 entries) AIRecommender.php ForecastEngine.php Mailer.php PdfGenerator.php PosEngine.php ReportEngine.php ReportScheduler.php ReportTemplate.php admin-footer.php admin-header.php admin_channels.php admin_settlements.php ai.php ai_concierge.php analytics_helpers.php approval_helpers.php auth-footer.php auth-header.php blockchain.php boot_helpers.php brand-images.php budget_helpers.php business_type_helpers.php carbon.php channel_manager.php company_access.php company_helpers.php concierge-widget.php custodian.php dashboard_router.php destination_matcher.php event_dashboard_helpers.php event_helpers.php event_mailer.php event_waitlist.php external_events.php footer.php frontdesk.php gamification.php header.php header.php.notificationbup header.php.yzzbak home_rides_section.php i18n.php image-helpers.php insurance.php invoice_helpers.php iot.php laundry.php loyalty.php loyalty.php.chatgptbak mailer.php menu_templates.php messages_helper.php mice_booking_helpers.php mice_helpers.php notifications.js.php payment_service.php payment_service.php.cgptbak payment_service.php.chatgptbak payments.php payments_extended.php payments_wise.php planner_helpers.php property-images.php push.php [dir] qr_lib qr_renderer.php rampex.php rbac.php ride_receipt_helper.php robot_concierge.php search_helpers.php security.php seo.php smart_pricing.php sms_helper.php subscription_helpers.php support.php tax_engine.php tenant.php themes.php tour_commission.php tour_image_helper.php tour_mailer.php tour_operators.php trip_planner.php update-rates.php user-footer.php user-header.php vehicle_maintenance_helpers.php vendor-footer.php vendor-header.php vendor_policy_helpers.php voice-concierge.php voice-search.js.php webrtc.php [dir] widgets config/ : (1 entries) mail.php lib/ : (missing) vendor/ : (missing) ### 4. MAIL CONFIG IN .env / config.php (values redacted) ---------------------------------------------------------------------- --- /.env (mail-related keys, values redacted) --- L41: SMTP_HOST= ***REDACTED*** L42: SMTP_PORT= ***REDACTED*** L43: SMTP_USERNAME= ***REDACTED*** L44: SMTP_PASSWORD= ***REDACTED*** L45: SMTP_ENCRYPTION= ***REDACTED*** L46: MAIL_FROM_ADDRESS= ***REDACTED*** --- /.env.example (mail-related keys, values redacted) --- --- /config.php (mail-related keys, values redacted) --- L3: // v6 — SMTP constants removed (use config/mail.php as single source of truth) L75: // SMTP — REMOVED L77: // Email sending is driven exclusively by config/mail.php via includes/Mailer.php. L78: // SMTP_ENABLED / SMTP_HOST / SMTP_USER / SMTP_PASS constants have been removed L79: // to prevent the class of bugs where a caller gates on SMTP_ENABLED= ***REDACTED*** L80: // while config/mail.php still says driver= ***REDACTED*** L81: // If you need to send mail, use: new Mailer(); $mailer->send(...); L96: // SESSION CONFIGURATION L98: ini_set('session.cookie_httponly', 1); L99: ini_set('session.use_only_cookies', 1); L102: ini_set('session.cookie_secure', $__secure ? 1 : 0); L103: ini_set('session.cookie_samesite', 'Lax'); L104: ini_set('session.gc_maxlifetime', 86400); L106: if (session_status() = ***REDACTED*** L107: session_set_cookie_params([ L114: session_name('REVENDA_SESSION'); L115: session_start(); L130: $_SESSION['currency'] = ***REDACTED*** L135: // Bridge: if a cookie exists but session was cleared, restore it L136: if (empty($_SESSION['currency']) && !empty($_COOKIE['currency'])) { L139: $_SESSION['currency'] = ***REDACTED*** ### 5. IS PHPMailer VENDORED? ---------------------------------------------------------------------- PHPMailer not found at any common path. vendor/autoload.php does NOT exist. ### 6. HOW THE APP BOOTSTRAPS ---------------------------------------------------------------------- --- config.php (first 25 lines) ---