VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: camppos on April 07, 2015, 01:10:53 AM

Title: bug - hide warning messages.
Post by: camppos on April 07, 2015, 01:10:53 AM
I just updated to virtuemart RC 3.0.7. This version helped with fixing the problem of no shipping appearing to customer. It just left me some warning message that display for instance "key folder in safepath accessible" I know that safepath is correct and I have changed it many times but still the message appears. How can I disable the warning.

Thank you.

Jesus
Title: Re: bug - hide warning messages.
Post by: patbe60 on April 07, 2015, 10:36:49 AM
Hello

Same problem here.
Additionally I get the message

Warning: file_put_contents(/150407.ini): failed to open stream: Permission denied in .../libraries/joomla/filesystem/file.php on line 433

The problem could be in administrator/components/com_virtuemart/helpers/shopfunctions.php

When uncommenting

if(!empty(self::$safePath)) {
return self::$safePath;
} else if (!self::$safePath){
return false;
}


it works fine.

Regards Patrik

J 3.4.1
VM 3.0.7
Title: Re: bug - hide warning messages.
Post by: Milbo on April 07, 2015, 17:44:34 PM
Patrick you are really a good. The problem is the cache, implement to use this function also as "get the safePath and directly check" function.

please use the attached file
Title: Re: bug - hide warning messages.
Post by: patbe60 on April 07, 2015, 18:05:53 PM
Thank you, works fine with the new file!

Regrads
Patrik
Title: Re: bug - hide warning messages.
Post by: camppos on April 07, 2015, 18:21:52 PM
Thank you both for your reply. It works =)
Title: Re: bug - hide warning messages.
Post by: t2me on April 07, 2015, 23:45:00 PM
Thank you for a wonderful file, it solved my problem.
Title: Re: bug - hide warning messages.
Post by: skyglide on April 09, 2015, 10:02:54 AM
Good morning,
I had change the old administrator/components/com_virtuemart/helpers/shopfunctions.php by the milbo new file.

Now I have the same message but in french (website and VM french language) "Erreur Le chemin pour les factures ne parait pas disposer des permissions nécessaires " (red box alerte) before the message was in english. When I put back the original file (shopfunctions.php) the message come back in english (orange box alerte)
It seems that its doesn't solve my pb. For info, my "vmfiles" folder have a 755 permission. I also tried on an other browser. Cleared the cache etc...
Tried also to uncomment in the original file with also no succes (same result as above)
if(!empty(self::$safePath)) {
         return self::$safePath;
      } else if (!self::$safePath){
         return false;
      }

Any idea?

Thanks for all this work, I imagine it's not easy to solve. I hope a new stable version to be able to put my website online soon.

Best R
Title: Re: bug - hide warning messages.
Post by: Milbo on April 09, 2015, 10:10:17 AM
In your case it seems not to be a false alert.
Title: Re: bug - hide warning messages.
Post by: skyglide on April 09, 2015, 10:17:45 AM
Hi Milbo,
Thanks for your reply.
I didn't have this kind of pb before 3.0.7 with 3.0.6.4 idem https://forum.virtuemart.net/index.php?topic=129253.new;topicseen#new
Do you have an idea of a solution?
Best R
Title: Re: bug - hide warning messages.
Post by: Milbo on April 09, 2015, 10:27:30 AM
Please enable vmdebug and search for the value after "checkSafePath $safePath/invoice not writeable"
Title: Re: bug - hide warning messages.
Post by: skyglide on April 09, 2015, 11:19:17 AM
Hi again Milbo,
Restarted the computer and  try your test. It seems that the problem is out (fixed). I don't have anymore any alert message (back or front end)! I imagine a cache pb. I cleared the Joomla cache on my previous tests. Is there a specific VM cache to clear?
Seems fonctionnal now.
Thanks for all.
Best R
Title: Re: bug - hide warning messages.
Post by: Milbo on April 09, 2015, 11:59:46 AM
Vm uses the joomla cache. So if you deleted all joomla caches, you delete also all Vm caches
Title: Re: bug - hide warning messages.
Post by: reza1470 on April 09, 2015, 12:11:53 PM
Thanks, It's works for me
Title: Re: bug - hide warning messages.
Post by: PaulButler on April 09, 2015, 18:57:15 PM
I still get the message even after applying all the fixes out there

I am running:

PHP Version    5.5.23
Web Server    Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4
WebServer to PHP Interface    cgi-fcgi
Joomla! Version    Joomla! 3.4.1 Stable [ Ember ] 21-March-2015 20:30 GMT
Joomla! Platform Version    Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
Virtuemart 3.0.7

I can add the item to the cart  but when I do a show cart I then get this message:

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND ju.id!= "187" ORDER BY `name` LIMIT 0,10000' at line 1 SQL=SELECT ju.`id`,`name`,`username` FROM `het_users` as ju AND ju.id!= "187" ORDER BY `name` LIMIT 0,10000

Where else do I need to look to find out what is causing the issue?
Title: Re: bug - hide warning messages.
Post by: Milbo on April 10, 2015, 12:00:09 PM
https://forum.virtuemart.net/index.php?topic=129249.msg444770#msg444770
Title: Re: bug - hide warning messages.
Post by: izme on April 15, 2015, 22:41:04 PM
Hi Milbo

I have download and tried 'shopfunctions.php' and tried clearing the Joomla cache / purge etc...
problem still appears for me:
http://www.vapeway.co.uk (http://www.vapeway.co.uk)

Please help or advise. If there is a VM cache ? how do i get to this please help or advise?

(to make my problem worse! - the cart (add to cart) is not working - i think its a template issue? works with Beez template  - i have referred to template developers for assistance.) - again any assistance appreciated
Title: Re: bug - hide warning messages.
Post by: izme on April 15, 2015, 23:57:46 PM
Hi Milbo

Ive done a CSS display:none on the '.alert-warning' - to get around the issue for now until someone can help?
cart problems on the fixed! (banner module causing 404 error!) - cart now working but still got the problem: Warning: Key folder in safe path unaccessible.
Title: Re: bug - hide warning messages.
Post by: Milbo on April 16, 2015, 13:00:45 PM
search the forum please a lot posts about that alreay there. and without version we cannot help anyway

and to underline, just read THIS thread.
Title: Re: bug - hide warning messages.
Post by: alecliew on April 17, 2015, 12:27:49 PM
Thank you for the new file!
It works 

Title: Re: bug - hide warning messages.
Post by: ZangiefJ on April 25, 2015, 18:28:25 PM
HI:

The bug is fixed by follow this article, the message didnt show anymore.

But still cannot finish the order, it always show ''ERR_CONNECTION_REFUSED'' which is blank page after I click the "confirm order" button
Title: Re: bug - hide warning messages.
Post by: ZangiefJ on April 26, 2015, 21:22:37 PM
HI:

I use joomla 3.3.6 + VM 3.0.7

Its weird that the"shopfunctions.php.txt" should be OK because the bug have been fixed.

But I back up to yesterday status for some reason.

Now I overwrite the shopfunctions.php.txt again, it shows blank page in front...

How come?
Title: Re: bug - hide warning messages.
Post by: scion846 on September 01, 2015, 19:47:53 PM
Have just installed VM v3.0.9 and getting the message, Warning: Key folder in safe path unaccessible. Have applied your fix file, shopfunctions.php but it still appears. Is there anything else I need to do?

Path: htps://www.domain.co.uk//httpsdocs/3ALG/administrator/components/com_virtuemart/**********/xyzkeys/150804.ini

Please advise.
Title: Re: bug - hide warning messages.
Post by: jenkinhill on September 01, 2015, 23:30:20 PM
Quote from: scion846 on September 01, 2015, 19:47:53 PM
Path: htps://www.domain.co.uk//httpsdocs/3ALG/administrator/components/com_virtuemart/**********/xyzkeys/150804.ini

That is not a path. It is a bad attempt at a url.
The path would be something like  user/httpsdocs/3ALG/administrator/components/com_virtuemart/**********/xyzkeys/150804.ini

http://forum.virtuemart.net/index.php?topic=98633.0