Coder Social home page Coder Social logo

Fatal error: Uncaught Error: Failed opening required 'reflect/core/src/Controller.php' (include_path='.') in index.php on line 14 about reflect HOT 4 CLOSED

zpcol avatar zpcol commented on May 29, 2024
Fatal error: Uncaught Error: Failed opening required 'reflect/core/src/Controller.php' (include_path='.') in index.php on line 14

from reflect.

Comments (4)

davidgoy avatar davidgoy commented on May 29, 2024

Thanks for your feedback.

  1. What web server are you using?

  2. How does your directory structure look like for your Reflect site? I needs to look like this...

(your domain name e.g. example.com)/
├─ reflect/
└─ (your document root. e.g. public_html)/
        ├ index.php
        ├ css/
        ├ js/
        ├ .htaccess

Cheers!

from reflect.

zpcol avatar zpcol commented on May 29, 2024

i'm use openserver

(folder install)/
├─ (domains)/
└─ reflect/
└─ my-domain.com/
        ├ index.php
        ├ css/
        ├ js/
        ├ .htaccess
└─ modules
        ├ memcached
        ├ heidisql

from reflect.

davidgoy avatar davidgoy commented on May 29, 2024

In regards to line 14 on index.php:

require_once __DIR__ . '/../reflect/core/src/Controller.php';

The preceding '/' indicates an absolute path starting from the document root.

So based on the error you encountered, it seems like 'my-domain.com/' is not actually your document root. This could be due to your web server's virtual host configuration.

Try replacing line 14 on index.php with this:

require_once $_SERVER['DOCUMENT_ROOT'] . '/../reflect/core/src/Controller.php';

Does that work for you now?

If that does not work, then this probably means that 'my-domain.com/' is indeed not your document root.

from reflect.

davidgoy avatar davidgoy commented on May 29, 2024

Make sure that index.php sits inside your document root.

Your directory structure should look something like this:

(your domain name e.g. example.com)/
├─ reflect/
└─ (your document root. e.g. public_html)/
        ├ index.php
        ├ css/
        ├ js/
        ├ .htaccess

Also make sure that the folder you think is your document is ACTUALLY your document root.

from reflect.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.