Author Topic: 1.9.8G can't save anything in VM back-end  (Read 29247 times)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10626
  • VM4.0.232 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 4 on joomla 3
Re: 1.9.8G can't save anything in VM back-end
« Reply #45 on: October 09, 2011, 10:46:37 AM »
Turned off the native Mootools (see the post by AmyStephen on http://forum.joomla.org/viewtopic.php?p=1993832 for method)

This can be bad in j1.7. The save buttons are provided by joomla and run afaik still with mootools
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

constantined

  • Beginner
  • *
  • Posts: 13
Re: 1.9.8G can't save anything in VM back-end
« Reply #46 on: October 09, 2011, 11:22:55 AM »
Milbo, in my j1.7 mootools works fine.
meinekatze, what message you get from VM when add category? Try to change "Display #" value at "Products"->"Product Categories"

upd: Hoster added ".cookie." word to url filter. It's blow my mind.

meinekatze

  • Beginner
  • *
  • Posts: 20
Re: 1.9.8G can't save anything in VM back-end
« Reply #47 on: October 09, 2011, 11:35:31 AM »
in products i get no currency defined errors.
however, it doesnt save my settings when i try to add them.

maybe it helps you to take a look.
i've sent login to test account.

thank you

meinekatze

  • Beginner
  • *
  • Posts: 20
Re: 1.9.8G can't save anything in VM back-end
« Reply #48 on: October 09, 2011, 14:05:58 PM »
twimc

constantined dug into the case and found the error and a fix.

theres a ".cookie." word filter running.
atm i'm trying to figure out if this is hoster sided.

constantineds fix:
rename jquery.cookie.js to jquery.coookie.js
/administrator/components/com_virtuemart/helpers/adminui.php line 48
replace jquery.cookie.js with jquery.coookie.js

thanks again for anyones efforts.
cheers

SteveBab

  • Beginner
  • *
  • Posts: 13
Re: 1.9.8G can't save anything in VM back-end
« Reply #49 on: October 09, 2011, 15:52:22 PM »
I'm confused --- rename the file to the same name?

meinekatze

  • Beginner
  • *
  • Posts: 20
Re: 1.9.8G can't save anything in VM back-end
« Reply #50 on: October 09, 2011, 16:16:11 PM »
3 Times "o".  ;)

aboutimage

  • Beginner
  • *
  • Posts: 14
  • Shared Hosting, Dedicated Servers & Web Dev.
    • Aboutimage Professional Web Services
Re: 1.9.8G can't save anything in VM back-end
« Reply #51 on: October 09, 2011, 17:12:03 PM »
I can confirm, constantined's cookie fix actually works:

Quote
constantined dug into the case and found the error and a fix.

theres a ".cookie." word filter running.
atm i'm trying to figure out if this is hoster sided.

constantineds fix:
rename jquery.cookie.js to jquery.coookie.js
/administrator/components/com_virtuemart/helpers/adminui.php line 48
replace jquery.cookie.js with jquery.coookie.js

Thanks VERY much, and I think this particular issue needs to be looked at by the VM folks. Many, many hours of frustration came before this fix, and I would have never guessed it. Constantined, how the heck did you figure this out!!!!????
Dave Simpson
Aboutimage Professional Web Services

800     (800) 833-4204
email   sales@aboutimage.com
web    https://www.aboutimage.com

Aboutimage is a Small Business (SB), Disabled Veteran Business Enterprise (DVBE), with over 30 years of information systems management (IT), web development, shared and dedicated hosting services, and business consulting.

constantined

  • Beginner
  • *
  • Posts: 13
Re: 1.9.8G can't save anything in VM back-end
« Reply #52 on: October 09, 2011, 17:33:09 PM »
Just looked at javascript console  ;D

aboutimage

  • Beginner
  • *
  • Posts: 14
  • Shared Hosting, Dedicated Servers & Web Dev.
    • Aboutimage Professional Web Services
Re: 1.9.8G can't save anything in VM back-end
« Reply #53 on: October 10, 2011, 03:04:52 AM »
I have a follow-up on this, as I believe I may have found the actual source of the problem: mod_security

Logged into my server in SSH:
Code: [Select]
cat /usr/local/apache/logs/error_log |grep cookie.js gives me a LOT of the following error:

Code: [Select]
[Sun Oct 09 11:06:29 2011] [error] [client 59.69.79.189] ModSecurity: Access denied with code 406 (phase 2). Pattern match "(?:\\\\b(?:(?:type\\\\b\\\\W*?\\\\b(?:text\\\\b\\\\W*?\\\\b(?:j(?:ava)?|ecma|vb)|application\\\\b\\\\W*?\\\\bx-(?:java|vb))script|c(?:opyparentfolder|reatetextrange)|get(?:special|parent)folder|iframe\\\\b.{0,100}?\\\\bsrc)\\\\b|on(?:(?:mo(?:use(?:o(?:ver|ut)|down|move|up)|ve)| ..." at REQUEST_FILENAME. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "117"] [id "950004"] [msg "Cross-site Scripting (XSS) Attack"] [data ".cookie"] [severity "CRITICAL"] [tag "WEB_ATTACK/XSS"] [hostname "www.my-website.com"] [uri "/administrator/components/com_virtuemart/assets/js/jquery.cookie.js"] [unique_id "TpG4dbitTqYACpDqW0cAAAAB"]
So, if you're running your own servers (as I am), you can either rename the files (good temporary solution) or disable your security (not gonna happen). Maybe as a long-term solution, VM can incorporate a code change to make their cookie.js file not look like an XSS attack to mod_security!
Dave Simpson
Aboutimage Professional Web Services

800     (800) 833-4204
email   sales@aboutimage.com
web    https://www.aboutimage.com

Aboutimage is a Small Business (SB), Disabled Veteran Business Enterprise (DVBE), with over 30 years of information systems management (IT), web development, shared and dedicated hosting services, and business consulting.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10626
  • VM4.0.232 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 4 on joomla 3
Re: 1.9.8G can't save anything in VM back-end
« Reply #54 on: October 10, 2011, 19:15:20 PM »
Thank you constantined and aboutimage for your research and explanations. So the problem is a filter for the word cookie? LOL and instead you can just use coookie? wow what a nonsense security. It will not prevent any hacker, but makes a lot work for people like us.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4722
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: 1.9.8G can't save anything in VM back-end
« Reply #55 on: October 10, 2011, 22:02:36 PM »
Quote
constantined dug into the case and found the error and a fix.

theres a ".cookie." word filter running.
atm i'm trying to figure out if this is hoster sided.

constantineds fix:
rename jquery.cookie.js to jquery.coookie.js
/administrator/components/com_virtuemart/helpers/adminui.php line 48
replace jquery.cookie.js with jquery.coookie.js

Your solution is now in the code

SteveBab

  • Beginner
  • *
  • Posts: 13
Re: 1.9.8G can't save anything in VM back-end
« Reply #56 on: October 10, 2011, 22:53:46 PM »
This surely works for me.

jean2013

  • Beginner
  • *
  • Posts: 4
Pleaze help me to disable https protocole when checkout
« Reply #57 on: February 20, 2012, 20:27:45 PM »
Hello everybody :)
I would like to disable the SSL redirection when trying to checkout .
I tried to do this through :
Code: [Select]
       $mainframe = JFactory::getApplication();

       $mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=cart&task=editshipment',$this->useXHTML,$this->useSSL), $_retVal);

break;

    }

}



if ($cart->getInCheckOut()) {

    $mainframe = JFactory::getApplication();

    $mainframe->redirect('index.php?option=com_virtuemart&view=cart&task=checkout');

}

    }

But no, results. Please help me and thank's a lot

matthewod01

  • Beginner
  • *
  • Posts: 31
  • If it wasn't for VM2 I wouldn't be here!
Re: 1.9.8G can't save anything in VM back-end
« Reply #58 on: March 12, 2012, 00:45:42 AM »
I am having sort of the same issue.  I can create a product, add all information and save it but my product category does not save.  I can save from other select options like shopper group and manufacturer but can't save the category, which is pretty important.

I looking for a solution but if anyone has any suggestions, I will take them!

Thanks