VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: almallah on May 17, 2016, 22:25:48 PM

Title: Key folder in safepath unaccessible
Post by: almallah on May 17, 2016, 22:25:48 PM

Hello,

When I activate the VirtueMart, I always get the following message in frontend: "Key folder in safepath unaccessible."

On the backend, the following message is displayed:
"Error
vmError: Warning, the Safe Path is not accessible (does not exist or no permission), for safety reasons it is very important to create a folder in a path not accessible by an URL or unguessable name, create also a folder 'invoices' and 'keys' in it to store your sensitive data secure. Our suggested path is for your system '/home/www/vmfiles/'.
You can also use complex folder name as 'password' for example '/home/www/inma.bh/administrator/components/com_virtuemart/96h2kw0zcl5a/'. Use this link to the config"

I tried to fix the issue by following the instructions in the backend message but didn't succeed. Please advise.

Thanks and best regards
Title: Re: Key folder in safepath unaccessible
Post by: GJC Web Design on May 18, 2016, 00:00:28 AM
QuoteI tried to fix the issue by following the instructions in the backend message but didn't succeed.

why not?  the instructions are correct and straight forward..
Title: Re: Key folder in safepath unaccessible
Post by: almallah on May 18, 2016, 11:55:34 AM
Thanks for your reply.

I created the folders as per the instruction, yet, the same message appears.

I don't know what could be the reason.

Thanks for your advice.
Title: Re: Key folder in safepath unaccessible
Post by: Jörgen on May 18, 2016, 13:01:01 PM
http://forum.virtuemart.net/index.php?topic=79799.0 (http://forum.virtuemart.net/index.php?topic=79799.0)

How did You write Your safe path ?
Screen shots of You configuration, please.

regards

Jörgen @ Kreativ Fotografi
Title: Re: Key folder in safepath unaccessible
Post by: almallah on May 18, 2016, 17:55:22 PM
Hello,

Here are the screenshots.

Thank you
Title: Re: Key folder in safepath unaccessible
Post by: Jörgen on May 18, 2016, 19:45:29 PM
Why have You not tried this ?

QuoteOur suggested path is for your system '/home/www/vmfiles/'

regards

Jörgen @ Kreativ Fotografi
Title: Re: Key folder in safepath unaccessible
Post by: almallah on May 18, 2016, 20:15:07 PM
Thanks again.

I tried the suggested path, but it wasn't possible through the file manager to create a 'home' folder before the 'www'.

I think I'm missing something.

Would you explain the procedure's steps to create the folders in the suggested path?

Thank you.
Title: Re: Key folder in safepath unaccessible
Post by: jenkinhill on May 18, 2016, 23:14:17 PM
The home directory should already be there, www is a subdirectory of it.  I suspect the proble is inma.bh  - I assume this is a subdirectory of www and is the Joomla root. Some servers do not accept the use of full stops in directory names, but maybe yours does.

In which cas you should make the safe directory as you have done, but the path to it should be /home/www/inma.bh/vmfiles/
Title: Re: Key folder in safepath unaccessible
Post by: almallah on May 19, 2016, 11:58:08 AM
Thank you all.

The issue been resolved as per your advice.

Title: Re: Key folder in safepath unaccessible
Post by: almallah on May 19, 2016, 17:03:30 PM
Hi again,

The store is now published with some test items. Unfortunately, the "checkout" and all links on this page do are not working.

I checked all settings and everything seems well.

below is a screenshot for your reference. Can you spot what is going wrong?

The store link: http://inma.bh/index.php/virtuemart

Thank you.
Title: Re: Key folder in safepath unaccessible
Post by: GJC Web Design on May 19, 2016, 19:46:19 PM
hmm.. worryingly when you look at the return of the add to cart ajax it says

<!--Hacked by -->
{"stat":"1","msg":"<a class=\"continue_link\" href=\"\/index.php\/virtuemart\/front-page\/19\/vestibulum-vel-augue
\/maecenas-tortor\" >Continue Shopping<\/a><a class=\"showcart floatright\" href=\"\/index.php\/virtuemart
\/shopping-cart\/cart\">Show Cart<\/a><h4>1 x Etiam sapien was added to your cart.<\/h4>\t\t<\/div>\n
\t<br style=\"clear:both\">\n\r\r\r\r<script id=\"vm.countryState_js\" type=\"text\/javascript\"> \/
\/<![CDATA[\n\t\tjQuery( function($) {\n\t\t\t$(\"#virtuemart_country_id\").vm2front(\"list\",{dest
: \"#virtuemart_state_id\",ids : \"\",prefiks : \"\"});\n\t\t});\n\/\/]]> <\/script>\r<script id=\"vm
.countryStateshipto__js\" type=\"text\/javascript\"> \/\/<![CDATA[\n\t\tjQuery( function($) {\n\t\t\t$
(\"#shipto_virtuemart_country_id\").vm2front(\"list\",{dest : \"#shipto_virtuemart_state_id\",ids :
\"\",prefiks : \"shipto_\"});\n\t\t});\n\/\/]]> <\/script>\r<script id=\"keepAliveTime_js\" type=\"text
\/javascript\">\/\/<![CDATA[ \nvar sessMin = 15;var vmAliveUrl = \"index.php?option=com_virtuemart&view
=virtuemart&task=keepalive\";var maxlps = \"4\";var minlps = \"1\"; \/\/]]>\n<\/script>\r\r"}


try this

http://inma.bh/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&Itemid=264&option=com_virtuemart&pid=26&pname=Etiam%20sapien&quantity%5B%5D=1&view=cart&virtuemart_product_id%5B%5D=26&virtuemart_product_id%5B%5D=26

and look at the source code

on every page is  <!--Hacked by -->

try with the protostar template
Title: Re: Key folder in safepath unaccessible
Post by: almallah on May 19, 2016, 20:08:28 PM
Opps..

What does that mean? Is my website hacked?
What steps should I make to get the problem fixed?

Title: Re: Key folder in safepath unaccessible
Post by: GJC Web Design on May 19, 2016, 20:42:25 PM
I have no idea.. I am showing u what I see.. this is a forum for VM questions

Quotetry with the protostar template
Title: Re: Key folder in safepath unaccessible
Post by: almallah on May 19, 2016, 20:46:08 PM
Thank you dear.

I really appreciate your assistance and sparing me your valuable time.

I'll try to find out the problem and hopefully get it fixed.

Have a great time and best regards.
Title: Re: Key folder in safepath unaccessible
Post by: Jörgen on May 19, 2016, 22:26:01 PM
Check out Your index.php. I see the comment:
<!--Hacked by-->

At the very beginning. It could be a harmless comment made by the template designer. Check if the original index.php also has the comment.
Otherwise, try protostar to see if there is a jquery conflict with Your otherwise very nice looking template.

Jörgen @ Kreativ Fotografi
Title: Re: Key folder in safepath unaccessible
Post by: almallah on May 23, 2016, 00:16:11 AM
Hello again,

I finally got the site pages cleaned. However, the links on the virtumart are still not properly functioning. For instance, logging in from the store checkout page (http://inma.bh/index.php/virtuemart/shopping-cart) is not working while on the same site I can login from the form under Members (http://inma.bh/index.php/user/login-form). Also, I tried adding an item which I'm sure I have a stock of it in my backend, but it shows in the checkout page that the item is out of stock. The same problem is experienced with other links like coupon, add/edit shipping address, etc.

Website: www.inma.bh

Any advice to resolve this issue? (Hopefully not too technical as I'm not really a pro user of Joomla  ;) )

Thank you for your support.