File path issues

OS info

  • Operating System : Windows 10.0.17134
  • Wappler Version : 2.1.2

Problem description

issue 1: the backslash in from of the path is creating issues
Issue 2: the backslash in from the path is creating issues href="/dmxAppConnect/dmxBootstrap4TableGenerator/dmxBootstrap4TableGenerator.css">

bebugger:
GET https://dispatcherpro.com/dmxAppConnect/dmxAppConnect.js net::ERR_ABORTED 404 (Not Found)
database2.php:10 GET https://dispatcherpro.com/dmxAppConnect/dmxBootstrap4TableGenerator/dmxBootstrap4TableGenerator.css net::ERR_ABORTED 404 (Not Found)

File path in windows to working directory: C:\Users\rcher\OneDrive\Documents\Portal
File path on server: dispatcherpro.com/mtsportal/
URL https://dispatcherpro.com/mtsportal/database2.php
Query runs fine inside Wappler

Steps to reproduce

  1. Create any php file with database/query connection
  2. upload file, get errors

To correct I remove the leading / from the path using notepad and upload FTP and all works fine. When I open the file in Wappler and save it reverts back to / in front of path
I searched for severla hours and could not find solution, sorry.
Thanks

Check your project setup, looks like you may have paths set relative to root rather than document which will cause issues if you are working in a subdirectory

image

awesome, thank you very much. Looks like that cured it.

1 Like