News:

Looking for documentation? Take a look on our wiki

Main Menu

bug - hide warning messages.

Started by camppos, April 07, 2015, 01:10:53 AM

Previous topic - Next topic

camppos

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

patbe60

#1
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

Milbo

#2
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
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

patbe60

Thank you, works fine with the new file!

Regrads
Patrik

camppos

Thank you both for your reply. It works =)

t2me

Thank you for a wonderful file, it solved my problem.

skyglide

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
Joomla 3.4.1 / Virtuemart 3.0.7 /  PHP 5.5.22

PHP exécuté sur    SunOS localhost 5.10 Generic_142901-13 i86pc
Version de la base de données    5.5.42-log
Serveur web    Apache/2.2.29 (Unix)

Milbo

In your case it seems not to be a false alert.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

skyglide

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
Joomla 3.4.1 / Virtuemart 3.0.7 /  PHP 5.5.22

PHP exécuté sur    SunOS localhost 5.10 Generic_142901-13 i86pc
Version de la base de données    5.5.42-log
Serveur web    Apache/2.2.29 (Unix)

Milbo

Please enable vmdebug and search for the value after "checkSafePath $safePath/invoice not writeable"
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

skyglide

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
Joomla 3.4.1 / Virtuemart 3.0.7 /  PHP 5.5.22

PHP exécuté sur    SunOS localhost 5.10 Generic_142901-13 i86pc
Version de la base de données    5.5.42-log
Serveur web    Apache/2.2.29 (Unix)

Milbo

Vm uses the joomla cache. So if you deleted all joomla caches, you delete also all Vm caches
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

reza1470


PaulButler

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?

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/