Notifications
Clear all

Can't Install EFiction 5

69 Posts
7 Users
1 Reactions
14.7 K Views
 lucy
(@lucy)
Posts: 52
Trusted Member
Topic starter
 

Ok, so I've done a clean install of Version Five and I get this error:

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

[app/inc/config.php:10] Base->{closure}()
[app/inc/config.php:10] Config::__construct()
[index.php:91] Config->__construct()

What can I do to fix this error?

 
Posted : 01/01/2018 12:37 am
(@sheepcontrol)
Posts: 332
Reputable Member
 

Did you run the installer for a fresh install?
The error means that there's no config.php in the data/ directory.

Obviously, I need to provide a better way of presenting a "nicer" error.

 
Posted : 03/01/2018 6:06 am
 lucy
(@lucy)
Posts: 52
Trusted Member
Topic starter
 

Ok, should I do a clean install of EFiction 5? I'll try that.

 
Posted : 26/02/2018 1:25 am
 lucy
(@lucy)
Posts: 52
Trusted Member
Topic starter
 

Ok I've done a clean install, but I get this error:

Failed to open eFiction 5.x database.
Last error was: SQLSTATE[HY000] [1045] Access denied for user 'cl39-jakeamyup'@'10.0.44.80' (using password: YES)

EDIT: Tried to do a upgrade, but I get this error in step three:

Internal Server Error
Undefined variable: values

[v5_installer-0.1.1a/lib/base.php:2152] Base->error()
[v5_installer-0.1.1a/inc/sql/upgrade_3_5_x/job_contests.php:91] Base->{closure}()
[v5_installer-0.1.1a/inc/upgradetools.php:607] contests_relations()
[v5_installer-0.1.1a/inc/upgradetools.php:333] jobStart()
[v5_installer-0.1.1a/inc/upgrade.php:124] upgradetools::processJobs()
[v5_installer-0.1.1a/lib/base.php:1599] Base->call()
[v5_installer-0.1.1a/index.php:55] Base->run()

Also the install stuff has to be in a folder, otherwise it doesn't work.

 
Posted : 26/02/2018 2:14 am
(@sheepcontrol)
Posts: 332
Reputable Member
 

When did you get the error trying to do a fresh install, before, during or after?
Because that looks like a simple SQL server error, any chance you put in wrong username/password?

The other error was the updater assuming there if a table exists, it will have data in it. Yours didn't so it failed - thanks for pointing that out, will check all other places where a similar structur exists.

If you mean that the installer can't be in the root folder, yes that's true, because it will assume it is inside the later location and will place all things to where the should be afterwards.

 
Posted : 26/02/2018 7:46 am
 lucy
(@lucy)
Posts: 52
Trusted Member
Topic starter
 

Ok, I'll just create a new table then.

EDIT: I still get that error, everything is correct, and I even created a new table.

 
Posted : 26/02/2018 10:19 pm
(@sheepcontrol)
Posts: 332
Reputable Member
 

No, what I meant was that there is an error in the installer, I fixed it, just needed to push the updates to the Git.
Would you mind pulling the new installer and giving it a try?
https://github.com/eFiction/v5_installer/releases

More important, when you tried a fresh install, where exactly did you get the error you mentioned?

 
Posted : 26/02/2018 10:53 pm
 lucy
(@lucy)
Posts: 52
Trusted Member
Topic starter
 

When I did a fresh install I got a story location error. The first step.

 
Posted : 26/02/2018 11:13 pm
 lucy
(@lucy)
Posts: 52
Trusted Member
Topic starter
 

I get an error earlier in the install process with the one you linked me to, this is what I get.

Internal Server Error
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'optional_modules']['contests']'), ('Characters', 'archive', 4, 'archive/char' at line 9 [/home/sites/peraltiagofanfiction.com/public_html/install/lib/db/sql.php:227]

[install/lib/db/sql.php:227] PDOStatement->execute()
[install/inc/sql/install/job_menu.php:91] DBSQL->exec()
[install/inc/upgradetools.php:607] menu_admin()
[install/inc/upgradetools.php:333] jobStart()
[install/inc/upgrade.php:124] upgradetools::processJobs()
[install/lib/base.php:1599] Base->call()
[install/index.php:58] Base->run()
 
Posted : 26/02/2018 11:23 pm
 lucy
(@lucy)
Posts: 52
Trusted Member
Topic starter
 

In answer to your fresh install question, this is what I get in the first step.

Select chapter storage location
Below are a few brief recommendations for your hosting environment, a detailed overview can be found in the wiki:
Internal Server Error
Unable to open storage.htm

[install/lib/base.php:2152] Base->error()
[install/tmp/3o8aykqld56os.21dex60klrfo0.php:8] Preview->render()
[install/lib/base.php:2657] require()
[install/lib/base.php:2836] View->sandbox()
[install/inc/install.php:31] Preview->render()
[install/lib/base.php:1599] Base->call()
[install/index.php:58] Base->run()
 
Posted : 26/02/2018 11:25 pm
(@sheepcontrol)
Posts: 332
Reputable Member
 

In answer to your fresh install question, this is what I get in the first step.

Select chapter storage location
Below are a few brief recommendations for your hosting environment, a detailed overview can be found in the wiki:
Internal Server Error
Unable to open storage.htm

[install/lib/base.php:2152] Base->error()
[install/tmp/3o8aykqld56os.21dex60klrfo0.php:8] Preview->render()
[install/lib/base.php:2657] require()
[install/lib/base.php:2836] View->sandbox()
[install/inc/install.php:31] Preview->render()
[install/lib/base.php:1599] Base->call()
[install/index.php:58] Base->run()

Yeah, that was me re-structuring the installer template and missing this one include ... fixed it.

 
Posted : 01/03/2018 12:59 pm
(@sheepcontrol)
Posts: 332
Reputable Member
 

I get an error earlier in the install process with the one you linked me to, this is what I get.

Internal Server Error
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'optional_modules']['contests']'), ('Characters', 'archive', 4, 'archive/char' at line 9 [/home/sites/peraltiagofanfiction.com/public_html/install/lib/db/sql.php:227]

[install/lib/db/sql.php:227] PDOStatement->execute()
[install/inc/sql/install/job_menu.php:91] DBSQL->exec()
[install/inc/upgradetools.php:607] menu_admin()
[install/inc/upgradetools.php:333] jobStart()
[install/inc/upgrade.php:124] upgradetools::processJobs()
[install/lib/base.php:1599] Base->call()
[install/index.php:58] Base->run()

SQL lazyness here, fixed.

Both fixes pushed to a new release

 
Posted : 01/03/2018 1:09 pm
 lucy
(@lucy)
Posts: 52
Trusted Member
Topic starter
 

I get an error while upgrading, don't know what part, as I wasn't watching my screen.

Internal Server Error
SQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user 'cl39-jakeamyv5'@'10.0.44.80' for table 'fanfiction_stories' [/home/sites/peraltiagofanfiction.com/public_html/install/lib/db/sql.php:227]

[install/lib/db/sql.php:227] PDOStatement->execute()
[install/inc/sql/upgrade_3_5_x/job_stories.php:178] DBSQL->exec()
[install/inc/upgradetools.php:607] stories_categories()
[install/inc/upgradetools.php:333] jobStart()
[install/inc/upgrade.php:124] upgradetools::processJobs()
[install/lib/base.php:1599] Base->call()
[install/index.php:58] Base->run()
 
Posted : 02/03/2018 3:14 am
(@sheepcontrol)
Posts: 332
Reputable Member
 

This is the place where the story-category relations are being created.

The query is working, it's too simple not to, and the error doesn't make sense to me, since it point's to an access violation, which can't be, because to get to this point, you had to query this table in at least 3 steps prior to this.
If you have phpMyAdmin or some similar way of running direct SQL queries, can you try this:

SELECT COUNT(*) as found FROM `fanfiction_stories`S INNER JOIN `fanfiction_categories`C ON (FIND_IN_SET(C.catid,S.catid)>0)

It should return "found" as a field and some number.

All it does is check how many story-category relations exist, in the upgrade tool it will then take note of this and use it in the copy loops.

 
Posted : 02/03/2018 4:31 pm
 lucy
(@lucy)
Posts: 52
Trusted Member
Topic starter
 

I did that and it says it's found 0, so I'm don't know why I'm getting the error.

 
Posted : 02/03/2018 9:46 pm
Page 3 / 5
Share: