Skip to content

fix: correct loadEnv path in v1/firme sub-endpoints - #1131

Merged
ale23yfm merged 1 commit into
masterfrom
fix/loadenv-path-firme-endpoints
Aug 7, 2026
Merged

fix: correct loadEnv path in v1/firme sub-endpoints#1131
ale23yfm merged 1 commit into
masterfrom
fix/loadenv-path-firme-endpoints

Conversation

@sebiboga

@sebiboga sebiboga commented Aug 7, 2026

Copy link
Copy Markdown
Member

Fixes #1129

Problem

The v1/firme/* endpoints crash with loadEnv.php missing fatal errors because the require_once/loadEnv relative paths are off by one .. level, so util/loadEnv.php and api.env cannot be resolved from the endpoint directories.

Change

Correct the relative path in 19 endpoints:

  • v1/firme/{brand,email,logo,phone,scraper,website}/index.php: '../../''../../../'
  • v1/firme/{brand,company,email,logo,phone,scraper,website}/{add,delete}/index.php: '../../../''../../../../'

v1/firme/company/add/ already had the correct 4-level path on master; its sibling endpoints did not.

The require_once/loadEnv paths were off by one level in 19 firme
endpoints (brand/email/logo/phone/scraper/website and their add/delete
sub-endpoints), causing 'loadEnv.php missing' fatal errors. Fixes
#1129
@sebiboga
sebiboga requested a review from ale23yfm August 7, 2026 18:33
@ale23yfm
ale23yfm merged commit 2141c4f into master Aug 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v1/firme/company/add/ is broken

2 participants