XF 2.3 Clicking on "Home" give me error from my migration from my localhost

PaulyWalnuts

Member
Licensed customer
I made a backup of my phpbb forum and database, restored them on my localhost and tested the import of my old board. It all looked good. Until I clicked the "Home" button when I got the following errors. I checked the index.php and lines 23 and 24 show nothing about a windows path.

Warning: include(./common.php): failed to open stream: No such file or directory in C:\Program Files\Ampps\www\index.php on line 23

Warning
: include(./common.php): failed to open stream: No such file or directory in C:\Program Files\Ampps\www\index.php on line 23

Warning
: include(): Failed opening './common.php' for inclusion (include_path='.;C:\php\pear') in C:\Program Files\Ampps\www\index.php on line 23

Warning
: include(./includes/functions_display.php): failed to open stream: No such file or directory in C:\Program Files\Ampps\www\index.php on line 24

Warning
: include(./includes/functions_display.php): failed to open stream: No such file or directory in C:\Program Files\Ampps\www\index.php on line 24

Warning
: include(): Failed opening './includes/functions_display.php' for inclusion (include_path='.;C:\php\pear') in C:\Program Files\Ampps\www\index.php on line 24

Notice
: Undefined variable: user in C:\Program Files\Ampps\www\index.php on line 27

Fatal error
: Uncaught Error: Call to a member function session_begin() on null in C:\Program Files\Ampps\www\index.php:27Stack trace:#0 {main} thrown in C:\Program Files\Ampps\www\index.php on line 27
 
I made a backup of my phpbb forum and database, restored them on my localhost and tested the import of my old board. It all looked good. Until I clicked the "Home" button when I got the following errors. I checked the index.php and lines 23 and 24 show nothing about a windows path.

Warning: include(./common.php): failed to open stream: No such file or directory in C:\Program Files\Ampps\www\index.php on line 23

Warning
: include(./common.php): failed to open stream: No such file or directory in C:\Program Files\Ampps\www\index.php on line 23

Warning
: include(): Failed opening './common.php' for inclusion (include_path='.;C:\php\pear') in C:\Program Files\Ampps\www\index.php on line 23

Warning
: include(./includes/functions_display.php): failed to open stream: No such file or directory in C:\Program Files\Ampps\www\index.php on line 24

Warning
: include(./includes/functions_display.php): failed to open stream: No such file or directory in C:\Program Files\Ampps\www\index.php on line 24

Warning
: include(): Failed opening './includes/functions_display.php' for inclusion (include_path='.;C:\php\pear') in C:\Program Files\Ampps\www\index.php on line 24

Notice
: Undefined variable: user in C:\Program Files\Ampps\www\index.php on line 27

Fatal error
: Uncaught Error: Call to a member function session_begin() on null in C:\Program Files\Ampps\www\index.php:27Stack trace:#0 {main} thrown in C:\Program Files\Ampps\www\index.php on line 27
The issue isn't in your index.php, it's in your board configuration. The Home button is pointing to localhost path instead of the domain (I can see this because on https://thevapeworkshop.com/xf/index.php the Home link points directly to http://localhost/)

I also recommend enabling Friendly URLs to ensure your link structure is consistent and SEO-optimized
 
Back
Top Bottom