Jump to content

Migration Issue with phpVMS: Missing 'db_helpers.php' File


Recommended Posts

Posted (edited)

Hello Community,

I'm currently migrating my phpVMS installation to a new web host and changing the domain at the same time. I have transferred all the files, imported the database, and cleared the cache. Now I'm encountering the following issue:

 

include(/home/XXXXX/phpvms/modules/DisposableBasic/db_helpers.php): Failed to open stream: No such file or directory

or:

include(): open_basedir restriction in effect. File(XXXX/phpvms/modules/DisposableBasic/db_helpers.php) is not within the allowed path(s): (/var/www/vhosts/XXXX/:/tmp/)

 

 

This error message indicates that the file db_helpers.php cannot be found in the specified directory. Possible causes could be:

File is missing or was not transferred correctly:

 

Perhaps the file was not copied during the migration or is located in a different directory.

Incorrect path in the configuration:

Possibly a configuration file or an include statement is referencing an outdated path. Are there any settings in phpVMS where the path to the modules or specifically to db_helpers.php is defined?

 

 

My questions to you:

 

What steps should be taken to ensure that all necessary files, especially db_helpers.php, are correctly present and in the right location?

Are there any known adjustments in the phpVMS configuration that need to be considered during a host and domain migration to avoid such path issues?

Do you have any tips on how best to proceed when the include path appears to be incorrect?

 

Thank you very much for your support and your tips!

 

Edited by IFL442
  • Administrators
Posted

Look in your modules/DisposableBasic folder. If the db_helpers.php file is not there, reinstall DisposableBasic. If it is there, there are probably other issues with your move as well. 

Posted (edited)

the files have all been copied and are now located somewhere else.

old :xxx/phpvms/modules/DisposableBasic/db_helpers.php
after the move:httpdocs /phpvms /modules /DisposableBasic

Edited by IFL442
Posted
3 hours ago, IFL442 said:

the files have all been copied and are now located somewhere else.

old:/home/kant-va/htdocs/va.kant.ovh/phpvms/modules/DisposableBasic/db_helpers.php
after the move:httpdocs /phpvms /modules /DisposableBasic

 

Hi,

 

Key info is there in this section `include(): open_basedir restriction in effect.` and the difference between old/new paths.

 

If you moved your cache while moving the install, this can cause phpVMS (thus laravel and php itself) to still look for old file locations. 

 

While moving from one server to another, or even moving from one directory to another (like from domain to subdomain), it is better to skip copying cache related folders. So then the application can build new cache on first run properly.

 

If you are not able to visit admin area and go to maintenance tab to clear all cache now, you can check the docs (updating page, step 3) to see how we manually delete cache related files.

 

https://docs.phpvms.net/installation/updating

 

Good luck

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...