Yiks- deleted file - helppppp The configuration file for VirtueMart is missing!

Started by crystalm28, September 26, 2016, 10:14:57 AM

Previous topic - Next topic

crystalm28

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!

Jörgen

Hello

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

Copy the deleted files to Your website  ;)

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

crystalm28

Thank you.  I tried that, but couldn't find a file "administrator/components/com_virtuemart"

What am I missing? Thank you.

crystalm28

Also I can not find "administrator/components/com_virtuemart/virtuemart.cfg.php",

only a file virtuemart.cfg-dist.php

jenkinhill

#4
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!
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum