Welcome Guest, Not a member yet? Register   Sign In
Run a seeder using a php script, without spark CLI
#6

(04-29-2022, 05:44 AM)Kishan Anand Wrote: Hi datamweb, thanks for your support on this! I followed your instructions and it is now showing this error:
ErrorException #64

CodeIgniter\Autoloader\Autoloader::main(): Failed opening required '/var/www/html/index.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear')
SYSTEMPATH/Commands/Server/rewrite.php at line 43
Code:
36 // then let the request handle it like normal.
37 if ($uri !== '/' && (is_file($path) || is_dir($path))) {
38     return false;
39 }
40
41 // Otherwise, we'll load the index file and let
42 // the framework handle the request from here.
43 require_once $fcpath . 'index.php';
44 // @codeCoverageIgnoreEnd
45

The KishanSeeder.php file is exactly how you wrote it, Routes.php is updated with your code also and there is no migration file.
I tried calling home, Home home.php, Home.php from the URL.
Thanks! Smile
Please read this first.
Did you configure the database?
Did you create a table in the database?
Please send me a backup file of the tables through php my admin , then select the database, then option Exporting .
Optionally via private message.
Also provide the contents of the latest file in this path:

root\writable\logs

I practically tested the method I presented, there is no problem in implementation.
We need more details to investigate.
Reply


Messages In This Thread
RE: Run a seeder using a php script, without spark CLI - by datamweb - 04-29-2022, 10:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB