Web

Questions about PHP, JavaScript, APIs, frameworks, and websites.

WebSpring WebFlux JWT: Fix Login Failures Returning 200

Fix Spring WebFlux JWT login returning 200: why failure handler is skipped and how to return 401 JSON. Let Spring Security handle login or map errors to 401.

1 answer• 1 view
WebFix Django AJAX in External JS Files: Causes & Fixes

Troubleshoot Django AJAX failing in external JavaScript: learn why template tags, static file loading order, and CSRF tokens break requests and how to fix them.

1 answer• 1 view
WebNestJS Prisma 7: Fix Module Not Found Error After Upgrade

Resolve NestJS Prisma 7 upgrade error: ERR_MODULE_NOT_FOUND for app.module after successful build. Configure tsconfig.json to CommonJS, handle Prisma client generation, and fix module resolution for runtime compatibility.

1 answer• 1 view
WebShopify App Reinstall OAuth Access Token Fix

Handle Shopify app reinstallation from Uninstalled tab without OAuth code. Detect 401 errors, trigger re-OAuth for access token regeneration, and use APP_UNINSTALLED webhook for clean sessions.

1 answer• 1 view
WebConnect Web App to Raspberry Pi via MQTT Real-Time Tables

Step-by-step guide to connect a web app on laptop to Raspberry Pi using MQTT over WebSockets with Mosquitto broker for real-time restaurant table availability. Includes Paho client setup and troubleshooting.

1 answer• 1 view
WebBitrix sale.order.ajax: Persist API Recalculated Prices

Learn how to ensure external API recalculated prices persist to orders in custom bitrix:sale.order.ajax templates using OnSaleOrderBeforeSaved, OnSaleComponentOrderCreated events, RECREATE_ORDER flag, and server-side handlers for D7 Order/Basket.

1 answer• 1 view
WebAdd HTML Head Link Tags (Canonical) in Plotly Dash Guide

Three ways to add <link> tags (including canonical links) into the HTML head of a Plotly Dash app: override app.index_string, use Dash hooks, or subclass Dash.

1 answer• 1 view
WebFix 'npm error could not determine executable' Tailwind Django

Resolve 'npm error could not determine executable to run' when running npx tailwindcss init in Django on Windows PowerShell. Step-by-step Tailwind CSS v4 setup with Vite plugin for Django projects.

1 answer• 1 view
WebFix mongodb error in Next.js API on Netlify

Resolve 'Failed to load external module mongodb-<hash>' mongodb error in Next.js API routes on Netlify. Disable Turbopack, use standalone output, singleton MongoClient, static imports for serverless MongoDB connections. Covers mongodb 403 error too.

1 answer• 1 view
WebNextAuth: Redirect Back to Original URL After Login

Preserve original URLs and redirect users back after login in Next.js with NextAuth. Middleware plus callbackUrl, redirect callback, or cookie fallback.

1 answer• 1 view
WebBitrix24 Smart Process Binding: Sort by Addition Order

Customize Bitrix24 smart process binding fields to display values in order of addition instead of ID sorting. Use REST API widgets, business processes, or sort indexes for smart processes bitrix24. Step-by-step solutions and workarounds.

1 answer• 1 view
WebFix Bootstrap Collapse Stuck in Collapsing State

Troubleshoot and fix Bootstrap collapse stuck in 'collapsing' state, failing to hide. Covers duplicate JS, position absolute, floats, event handlers, and initialization issues for reliable Bootstrap navbar collapse and Bootstrap 3 collapse fixes.

1 answer• 1 view
WebFix Clerk SSL Connection Reset in Next.js/Convex Pakistan

Diagnose and fix Clerk SSL 'connection reset by peer' (errno=104) in Next.js + Convex from Pakistan. VPN/proxy workarounds, debug steps, and auth alternatives (NextAuth, self-host).

1 answer• 1 view
WebECharts Tooltip: Always Show Exact X, Conditionally Show Y

Configure ECharts tooltip with axisPointer snap:false to always show exact X and show Y only when real/interpolated data exists using a custom formatter.

1 answer• 4 views
WebFix React Router Infinite Redirect Loop on /stuauth & Root

Solve React Router infinite redirect loops on /stuauth and unexpected redirects from root path in createBrowserRouter with authentication layouts. Guarded redirects, hydration checks, and route loaders prevent loops in StudentLayout.

1 answer• 4 views
WebElementor Widget Not Working After Migration Fix

Fix custom Elementor newsbar widget stuck on latest item after server migration. Troubleshoot JS errors, WPCode snippets, server config, caches, and regenerate files to restore sliding effect. Works on staging but not live.

1 answer• 4 views
WebFix Unknown File Extension .ts Error in Apollo GraphQL Server with Prisma

Learn how to resolve the 'Unknown file extension .ts' error when running Apollo GraphQL Server with Prisma in a Turborepo monorepo. Complete guide with ts-node solutions.

1 answer• 4 views
WebPHP mail() TypeError in CakePHP 4.x - Fix additional_params

Fix PHP 8 mail() TypeError in CakePHP 4.x when additional_params is null. Server fixes, SMTP option, or app-level transport - no vendor edits needed now.

1 answer• 3 views
WebPHP 8.3: Include Broken by Short Open Tags - Fix Now

After upgrading to PHP 8.3, short open tags (<? ?>) are no longer parsed and show up as HTML comments. Replace them with <?php ?> to fix include execution.

1 answer• 2 views
WebFix Express.js async Mongoose undefined responses now

Fix Express.js routes returning undefined from Mongoose. Use async/await or .then() with try/catch so res.json sends findById result after promise resolves.

1 answer• 2 views