Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend site error - Use of undefined constant SELF_PATH #109

Open
skeutmeier opened this issue Nov 26, 2022 · 2 comments
Open

Backend site error - Use of undefined constant SELF_PATH #109

skeutmeier opened this issue Nov 26, 2022 · 2 comments
Labels
enhancement Improvement piece The issue is part of a project or a milestone.
Milestone

Comments

@skeutmeier
Copy link

Hi,

Im new to NodCMS. I installed it locally, and everything seem to work, but the backend site settings -> hompage

When I try to open that one, ig ot the following error:
Use of undefined constant SELF_PATH - assumed 'SELF_PATH' (this will throw an Error in a future version of PHP)

I grepped the code and could not find where SELF_PATH is defined, so I tried to define it myself in .env, but that didnt help either

running on PHP 7.4

on PHP 8.1 nothing works. I get errors on every path (frontend and backend)

Can someone help me please?

Thank you
Screenshot from 2022-11-27 00-25-42

@DEV-byoos
Copy link

DEV-byoos commented Jan 14, 2023

hello dev
follow this correctif

IN /root/public/index.php
added tis define under FCPATH
// Path to the front controller (this file)
define('FCPATH', DIR . DIRECTORY_SEPARATOR);
// NodCMS public path
define("SELF_PATH", FCPATH);

PS, I'm preparing a patch tuto to make NodCms more powerful, watch http://byoosdigital.com the blog

@khodakhah
Copy link
Owner

Thank you for reporting this. We will handle it in the next version.

@khodakhah khodakhah added enhancement Improvement piece The issue is part of a project or a milestone. labels May 18, 2023
@khodakhah khodakhah added this to the NodCMS v4 milestone May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement piece The issue is part of a project or a milestone.
Projects
None yet
Development

No branches or pull requests

3 participants