VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: crystalm28 on September 26, 2016, 10:14:57 AM

Title: Yiks- deleted file - helppppp The configuration file for VirtueMart is missing!
Post by: crystalm28 on September 26, 2016, 10:14:57 AM
Hello:

Yiks! I accidentally deleted the following file. What is the best way to fix this? Where can I find these files in the upload packages?

root/administrator/components/com_virtuemart

and now I get a site error - The configuration file for VirtueMart is missing!
It should be here: //administrator/components/com_virtuemart/virtuemart.cfg.php

Thank you in advance!
Title: Re: Yiks- deleted file - helppppp The configuration file for VirtueMart is missing!
Post by: Jörgen on September 26, 2016, 10:23:33 AM
Hello

Unpack the VM package locally. Then You see the directory structure.

Copy the deleted files to Your website  ;)

regards

Jörgen @ Kreativ Fotografi
Title: Re: Yiks- deleted file - helppppp The configuration file for VirtueMart is missing!
Post by: crystalm28 on September 26, 2016, 10:26:02 AM
Thank you.  I tried that, but couldn't find a file "administrator/components/com_virtuemart"

What am I missing? Thank you.
Title: Re: Yiks- deleted file - helppppp The configuration file for VirtueMart is missing!
Post by: crystalm28 on September 26, 2016, 10:28:26 AM
Also I can not find "administrator/components/com_virtuemart/virtuemart.cfg.php",

only a file virtuemart.cfg-dist.php
Title: Re: Yiks- deleted file - helppppp
Post by: jenkinhill on September 26, 2016, 10:30:37 AM
Quote from: crystalm28 on September 26, 2016, 10:14:57 AM
Yiks! I accidentally deleted the following file. What is the best way to fix this? Where can I find these files in the upload packages?

root/administrator/components/com_virtuemart


That is not a file - it is a directory full of files!!  Open the com_virtuemart package and  within the administrator directory is the /components/com_virtuemart/ directory

Quote from: crystalm28 on September 26, 2016, 10:14:57 AM
and now I get a site error - The configuration file for VirtueMart is missing!
It should be here: //administrator/components/com_virtuemart/virtuemart.cfg.php

virtuemart.cfg.php does not exist in the pre-install directory, it is generated when VirtueMart is installed and updated with your site's default settings.

Suggest you revert to your latest site backup. 
If you made the beginner's mistake of not making backups then re-install VM, but use phpMyAdmin to make a copy of the database first to ensure you have a backup of product data. If you use Joomla's extension manager to reinstall then you should not lose any data, but missing files will be replaced. Do not try to uninstall VM first!