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

Fatal error: Class 'JConfig' not found #35

Open
AMATechTel opened this issue Jun 9, 2014 · 9 comments
Open

Fatal error: Class 'JConfig' not found #35

AMATechTel opened this issue Jun 9, 2014 · 9 comments

Comments

@AMATechTel
Copy link

Fatal error: Class 'JConfig' not found in /Applications/MAMP/htdocs/cobalt/src/Cobalt/Provider/ConfigServiceProvider.php on line 20

Am I missing a dependency? I've installed composer.

@revjoel
Copy link

revjoel commented Jun 9, 2014

I have the same issue but it's all there from what I can tell. Bump...

@xillibit
Copy link
Contributor

Try to create a configuration.php at root of cobalt directory by copying content from configuration.php from Joomla! and set corrects variables

@sr2ds
Copy link

sr2ds commented Apr 1, 2015

Hello @xillibit
You can give me a model of configuration.php?

@xillibit
Copy link
Contributor

xillibit commented Apr 1, 2015

Hello,

You shouldn't use the package in release, but use the staging branch to get the package

@escopecz
Copy link
Contributor

escopecz commented Apr 1, 2015

Here is how my configuration.php looks like:

<?php
class JConfig {
    public $sitename = 'Cobalt';
    public $host = 'localhost';
    public $user = '...';
    public $password = '...';
    public $db = 'cobalt';
    public $dbprefix = 'cob_';
    public $dbtype = 'mysqli';
    public $mailfrom = '...';
    public $fromname = '...';
    public $sendmail = '/usr/sbin/sendmail';
    public $log_path = '/var/www/html/cobalt/logs';
    public $tmp_path = '/var/www/html/cobalt/tmp';
    public $offset = 'UTC';
    public $error_reporting = 'maximum';
    public $debug = '1';
    public $secret = '...';
    public $sef = '1';
    public $sef_rewrite = '1';
    public $sef_suffix = '1';
    public $unicodeslugs = '0';
    public $language = 'en-GB';
}

(private values are replaced with ...)

But this file should be created automatically during installation if I remember correctly.

@sr2ds
Copy link

sr2ds commented Apr 2, 2015

Thanks @escopecz
Unfortunately I could not make it work.
Very strange to have given error during installation.
With the file settings, I get the standard error in the browser.
I imagine that is related to a given that I have: public $ secret = '...';

@sr2ds
Copy link

sr2ds commented Apr 2, 2015

My error on web:
Server Error

We're sorry! The server encountered an internal error and was unable to complete your request. Please try again later.
error 500

@escopecz
Copy link
Contributor

escopecz commented Apr 2, 2015

Can you see something in your server logs?

@sr2ds
Copy link

sr2ds commented Apr 2, 2015

Dont have logs for cobalt on /var/log/apache2 and cobalt/logs.

David Silva

2015-04-02 10:15 GMT-03:00 John Linhart [email protected]:

Can you see something in your server logs?


Reply to this email directly or view it on GitHub
#35 (comment).

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

No branches or pull requests

5 participants