Forum

Notifications
Clear all

include(data/config.php): failed to open stream: No such file or directory

holls
(@holls)
Active Member

Hello!
Sorry to bother you again! At last, I managed to install eFiction5 on my localhost (so I think that my previous installation failures were Altervista's fault) and everything went well. I downloaded files for efiction vaporware and put them on my localhost site, but when trying to open index.php I get the following error:

include(data/config.php): failed to open stream: No such file or directory
[C:/wamp64/www/efiction5/app/inc/config.php:10] Base->{closure}()
[C:/wamp64/www/efiction5/app/inc/config.php:10] Config/wamp64/www/efiction5/index.php:91] Config->__construct()

In my data folder, there is a config.ini file, but no config.php file. Am I missing something?

Thanks,
Simona

Quote
Topic starter Posted : 10/03/2017 3:48 pm
Sheepcontrol
(@sheepcontrol)
Reputable Member

Did you simply try to run "vaporware" or did you run the installer before (which is actually a misleading name at this point, because so far, it can only do upgrades).

I'll give a more detailed answer later, just got home from my paid job and it's almost 0600hrs so I'm heading to bed now.

ReplyQuote
Posted : 11/03/2017 12:40 am
holls
(@holls)
Active Member

I ran the installer first and successfully did the upgrade. Then I removed the installer files from the localhost site folder and added the vaporware ones. I tried to open index.php and got the error.

Thanks for your help!

ReplyQuote
Topic starter Posted : 11/03/2017 3:49 am
Sheepcontrol
(@sheepcontrol)
Reputable Member

Here's the catch:

let's say your "old" eFiction is in ./www
Your installer is in ./www/test
Now you would assume that you put the files in ./www/test and good to go? No!
Because the script has put the data folder at ./www/data, because at a later point, it would also move the old source files away and put the new source files there.
Since your test install is in ./www/test, you need to move the data folder to ./www/test/data for the time being.

This will go away once things are ready to ship out.

ReplyQuote
Posted : 11/03/2017 8:56 am
holls
(@holls)
Active Member

Thank you, I found the data folder and now I can open the homepage  😀

... But I have another problem  the site is in maintenance mode, so I can't do the login. I set "maintenance" to FALSE in the config table and delete all the sessions (speaking of it, making the login twice creates a duplicate key on session table and an error), but I still can't login.

Any idea?

Thanks!

ReplyQuote
Topic starter Posted : 11/03/2017 12:48 pm
Sheepcontrol
(@sheepcontrol)
Reputable Member

The config table is only a cache and used to build the config pages in the Admin panel.

Log in using your username/password, go to Admin Panel / Settings / Server and disable maintenance mode there.

This is the default behaviour of the installer to ensure the admin has a chance to check all the settings before making the site public again.

ReplyQuote
Posted : 11/03/2017 6:25 pm
holls
(@holls)
Active Member

Hello,
after many tries, I still can't login. When trying to insert my (correct) username and password, I get:

PDOStatement: Duplicate entry 'b54b0812477a54d2244ab0747e89a753' for key 'PRIMARY'

[C:/wamp64/www/efiction5/app/model/base.php:19] DBSQL->exec()
[C:/wamp64/www/efiction5/app/model/auth.php:108] ModelBase->exec()
[C:/wamp64/www/efiction5/app/model/auth.php:176] ModelAuth->createSession()
[C:/wamp64/www/efiction5/app/controller/auth.php:45] ModelAuth->validateSession()
[C:/wamp64/www/efiction5/app/routes.php:4] ControllerAuth/wamp64/www/efiction5/index.php:108] require()

I tried to clean the sessions table, with no luck.

I also got some "Ajax error" here and there. For example, when I click on a story, I get the error and on my Chrome console I have:

POST  http://localhost/efiction5/captcha  500 (Internal Server Error)

Maybe it is because I'm using a local website?

Thanks,
Simona

ReplyQuote
Topic starter Posted : 15/03/2017 6:04 pm
Sheepcontrol
(@sheepcontrol)
Reputable Member

Sorry for getting back to you so late, sounds weird, even on a local install this _should_ not happen.

I'll look into it as soon as possible.

ReplyQuote
Posted : 19/03/2017 9:00 am
Share: