Question: Site Not Accessible After Changing Host

Site Not Accessible After Changing Host

Hi, I have migrate my site from one host to another (same provider), I have created the db, imported all the data, correctly configure config.php & database.php but I can't access the site

DH

Dominique HUGO

Asked
Hi,

I have migrate my site from one host to another (same provider), I have created the db, imported all the data, correctly configure config.php & database.php but I can't access the site at the new location, I have enbaled the debug fonction and I get the following error message :

```php
A PHP Error was encountered
Severity: Warning

Message: require_once(/home/picsoob/www/posbeta/system/core/compat/mbstring.php): failed to open stream: No such file or directory

Filename: core/CodeIgniter.php

Line Number: 287

Backtrace:

File: /home/picsoob/www/posbeta/index.php
Line: 273
Function: require_once


Fatal error: require_once(): Failed opening required '/home/picsoob/www/posbeta/system/core/compat/mbstring.php' (include_path='.:') in /home/picsoob/www/posbeta/system/core/CodeIgniter.php on line 287
A PHP Error was encountered
Severity: Compile Error

Message: require_once(): Failed opening required '/home/picsoob/www/posbeta/system/core/compat/mbstring.php' (include_path='.:')

Filename: core/CodeIgniter.php

Line Number: 287

Backtrace:
```

in fact, **/home/picsoob/www/posbeta/system** is not correct and should be **/www/posbeta/system** but I have no idea where to change it since it's correct in config.php : **$config['base_url'] = 'http://www.picsoocloud.com/posbeta/';**

it seems that BASEPATH have a wrong value.

any help will be very appreciated,
thanks in advance,
Domi.
  • DH

    Dominique HUGO

    Answered
    PS:
    php version is 7.4.7
    I have a .htaccess file in the new installation (copy from the old site)

    Domi.
  • MS

    Mian Saleem

    Answered
    Hello,

    As the error says, you can check `system/core/compat/mbstring.php`, if exists and `php-mbstring` extension, should be enabled.

    Thank you
  • DH

    Dominique HUGO

    Answered
    Ok thanks, problem solved.

    regards,
    Domi.
  • Login to Reply