Welcome Guest, Not a member yet? Register   Sign In
upgrade issues
#1

After upgrading to version 4.4.3. non of my projects are working any longer. Trying to rebuild a project from srcatch I got the following error:
Warning: require(C:\xampp\htdocs\ci4-news\app\Config/../../vendor/codeigniter4/codeigniter4/system\bootstrap.php): failed to open stream: No such file or
directory in C:\xampp\htdocs\ci4-news\spark on line 75
PHP Fatal error:  require(): Failed opening required 'C:\xampp\htdocs\ci4-news\app\Config/../../vendor/codeigniter4/codeigniter4/system\bootstrap.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\ci4-news\spark on line 75

Anybody an idea why this happens and how to solve this?
Thanks!
Reply
#2

Check upagrade history https://codeigniter4.github.io/userguide...ading.html
After run "composer update"
Reply
#3

I have found out that my virtual host set up (Xampp) is not working as expected:

<VirtualHost *:80>
ServerName ciapp.localhost
ServerAlias ciapp.localhost
DocumentRoot "c:/xampp/htdocs/ciapp/public"

<Directory "c:/xampp/htdocs/ciapp/public">
Require all granted
AllowOverride all
</Directory>

</VirtualHost>

<VirtualHost *:80>
ServerName ci4_news.localhost
ServerAlias ci4_news.localhost
DocumentRoot "c:/xampp/htdocs/ci4_news/public"

<Directory "c:/xampp/htdocs/ci4_news/public">
Require all granted
AllowOverride all
</Directory>

the ci4_news proiect is picking up the settings from ciapp.localhost. How can I solve this issue ? what value/parameter in codeigniter correspondents with servername in httpd-vhosts.config?
Reply
#4

Try <VirtualHost ci4_news.localhost:80>
Reply
#5

(This post was last modified: 11-05-2023, 10:41 AM by captain-sensible. Edit Reason: caps wrong )

try something along the lines of :

Code:
<VirtualHost *:80>
ServerName ci4_news
ServerAlias ci4_news
DocumentRoot "c:/xampp/htdocs/ci4_news/public"
ErrorLog "/path/to/var/equivalent/httpd/ci4_news-error_log"
<Directory "c:/xampp/htdocs/ci4_news/public">
Order allow,deny
Allow from All
AllowOverride All
Require all granted
</Directory>
</VirtualHost>


Note caps and order that i have put
CMS CI4     I use Arch Linux by the way 

Reply




Theme © iAndrew 2016 - Forum software by © MyBB