VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Venkko on September 19, 2011, 22:45:34 PM

Title: 1.9.8G can't save anything in VM back-end
Post by: Venkko on September 19, 2011, 22:45:34 PM
Hi!

It seems I can't save anything in back-end. Everytime I need to press "save" (or apply/cancel) button nothing happed. There is no error message, it seems like I just can't press that save button.

I have clean 1.9.8 install that I have upgraded everytime there has been new version present. I also have Joomla 1.5.23.

Few days ago I had problem with shopping cart (solved now, by the help of the developers) and I haven't try to use back-end after that. So this may have come up when I fix that other problem by installin all-in-one 1.9.8g. I have changed joomla template today but never the less it dosen't work anymore with old template either.

Any idea how to solve this one?

Ps. On the back-end I can change currensies and countries (enabled or not), the problem is with all those pages that have save/apply/cancel button.

king regards
Venkko
Title: Re: 1.9.8G I can't save anything in back-end J1.5.23
Post by: Milbo on September 20, 2011, 14:19:50 PM
Hmm this buttons are done by joomla using mootools for it. Afaik we do not interfere here.
Title: Re: 1.9.8G I can't save anything in back-end J1.5.23
Post by: Venkko on September 20, 2011, 14:54:14 PM
Hi!

Problem is only in VM, not on the Joomla back-end.

I did get these error lines with Explorer. I know it is little bit difficult to read as they are on finnish, but here are some translations.

Objekti ei tue tätä ominaisuutta tai menetelmää = Object does not support this property or method
sanoma = message
rivi = line
merkki = sign
koodi = code

WWW-sivun virhetiedot

Käyttäjäagentti: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3)
Aikaleimaus: Tue, 20 Sep 2011 12:44:12 UTC


Sanoma: Objekti ei tue tätä ominaisuutta tai menetelmää
Rivi: 228
Merkki: 3
Koodi: 0
URI: http://www.luomupuuvilla.fi/administrator/components/com_virtuemart/assets/js/vm2admin.js


Sanoma: Objekti ei tue tätä ominaisuutta tai menetelmää
Rivi: 89
Merkki: 4
Koodi: 0
URI: http://www.luomupuuvilla.fi/administrator/index.php?option=com_virtuemart&view=config


Sanoma: Objekti ei tue tätä ominaisuutta tai menetelmää
Rivi: 89
Merkki: 4
Koodi: 0
URI: http://www.luomupuuvilla.fi/administrator/index.php?option=com_virtuemart&view=config


Sanoma: Objekti ei tue tätä ominaisuutta tai menetelmää
Rivi: 87
Merkki: 4
Koodi: 0
URI: http://www.luomupuuvilla.fi/administrator/index.php?option=com_virtuemart&view=config


Sanoma: Objekti ei tue tätä ominaisuutta tai menetelmää
Rivi: 89
Merkki: 4
Koodi: 0
URI: http://www.luomupuuvilla.fi/administrator/index.php?option=com_virtuemart&view=config

.
.
.

EDIT: Cut off rest of that error message...
Title: Re: 1.9.8G I can't save anything in back-end J1.5.23
Post by: Venkko on September 20, 2011, 20:29:58 PM
I did try to solve this by uninstalling VM and VM allinone from extensions -> install/uninstall.

On frist time I uninstall everything i could and reinstall 1.9.8G --> After trying it out VM didn't work.
On the second time I uninstall everything and reinstall 1.9.8C --> Everything worked out just fine
After upgradeing 1.9.8C to 1.9.8G I once again wasn't able to save any VM page.

So somehow this is related to that 1.9.8G.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Studio 42 on September 21, 2011, 13:32:18 PM
Hi,
Can you test on Firefox , PLZ ?

TO know if it's a general error or something to do with Internet Explorer

Thanks,
Patrick

P.S: i have do a test in last revision IE9.0 with success.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Venkko on September 21, 2011, 13:54:11 PM
Hi!

I have test it with Firefox (I mainly use firefox, did just try would it work with IE).

EDIT: and did not work :)

EDIT 2: And if you need access to the back-end, let me know.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: mabeall32 on September 30, 2011, 16:21:25 PM
I am having the same problem.  I worked fine on my desk top but once I uploaded to my host site, all the buttons in the backend stop working. The dropdown boxes for State code nothing works.  I have tried IE8, chrome and Firefox 6 but they all do the same.  I need help before I can go any futher.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Milbo on September 30, 2011, 16:31:12 PM
You may post the adress to your pages or sent it via pn to us.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: scotous on September 30, 2011, 20:45:45 PM
Same problem here .
i am posting server data if it could help.

OS:Linux a, PHP: 5.2.17, MySQL:5.1.56, Caching:Disabled, GZip:Disabled

Cant save cant cancel
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Milbo on September 30, 2011, 21:44:13 PM
Quote from: mabeall32 on September 30, 2011, 16:21:25 PM
I am having the same problem.  I worked fine on my desk top but once I uploaded to my host site, all the buttons in the backend stop working. The dropdown boxes for State code nothing works.  I have tried IE8, chrome and Firefox 6 but they all do the same.  I need help before I can go any futher.

Okey I took a look in your BE, the jQuery is not working (admin menue is completley expaned, means almost always jquery problem. The strange thing is that I cant find the reason for it, only the error message $.cookie is not a function. Maybe Patrick knows. I just assume that your server has some problems with cookies
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: mabeall32 on September 30, 2011, 22:22:11 PM
the 1.9.8f  version works on the server, so it something that change between f and g.   
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: brandywine on October 01, 2011, 17:22:14 PM
Hello,

Experienced the same problem after upgrading to G.  Using J1.7, XAMPP 1.7.3.  Tried on IE and Firefox. Thanks for looking into!
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Studio 42 on October 03, 2011, 00:16:26 AM
Hi,
First you can test is to swap from google jQuery to local one or vice-versa
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: capeinfo on October 03, 2011, 12:24:33 PM
Hi Electrocity

How does one do that?  Bearing in mind I can't save any changes in the backend.

Thanks
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Milbo on October 03, 2011, 12:27:40 PM
Do the change in the config file, use the refresh config by file button in the tools.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: scotous on October 03, 2011, 14:56:26 PM
by refresh the config file in the tools i understand to modify a config file for the shop.
the only .cfg file that is beeing installed in the administrator/components/virtuemart is the virtuemart_defaults.cfg
i modify it and no changes happen.

so the only way to modify the config is to reinstal the virtuemart with different defaults. :/
i cant save so i also cant tick the "Enable database Update tools "
and i cant save so i cant pretty much do anything to the config options.

where is it located? i dont have any other .cfg nor .cfg.php in the administrator/component/virtue location...

thx in advance

if needed i could grant u with pm access to the Backend...
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: mabeall32 on October 03, 2011, 17:08:35 PM
I trying to do it and have a site on my desktop that is working, but when I change the config file, nothing happens on server.  I look in the vituemart_defaults.cfg and I don't see a setting for jquery.  is it somewhere else?
this is where I think it should be, based on how the other switches are layout.  but this layout doesn't have anything about jquery
[config]
##shop settings
shop_is_offline=0
offline_message=Our Shop is currently down for maintenance. Please check back again soon.
use_as_catalog=0
currency_converter_module=convertECB.php
order_mail_html=1
dateformat=%m/%d/%y
dangeroustools=1
debug_enable=none

##Shopfront
pdf_button_enable=1
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: meinekatze on October 03, 2011, 17:12:38 PM
I've exactly the same problem with J1.7.1 german on inmotionhosting.com here.  :(
All components save VM work fine.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: meinekatze on October 03, 2011, 17:41:06 PM
Quote from: meinekatze on October 03, 2011, 17:12:38 PM
I've exactly the same problem with J1.7.1 german on inmotionhosting.com here.  :(
All components save VM work fine.
IE spits out: object does not support this property or method, Line 124, character: 4

firebug:
jQuery.cookie is not a function
[Bei diesem Fehler anhalten] jQuery.cookie('vmapply', '0', options);
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Milbo on October 03, 2011, 19:17:19 PM
The answer is quite easy.

The file provided with the installer is the virtuemart_defaults.cfg-dist. The config tries to get the config from the database, when there is not data, it tries to take it from the the virtuemart_defaults.cfg, when there is not file it takes it from the virtuemart_defaults.cfg-dist. Why we do that?
We do the copy of the config file because in the other case it would be overwritten by the installer and cant be used as a fall back file. The normal config is stored in the db, because it is faster than a file.

So when you want to change the config with the file, then you have to use in the BE, "Tools and Migration", first tab the command "renew config by file".

This command is quite useful.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: mabeall32 on October 03, 2011, 19:25:19 PM
OK I click the renew config by file button, It updated so there is a check in update database but it still doesn't let me change anthing.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: meinekatze on October 03, 2011, 20:03:17 PM
I've made a new 1.7.1 install (EN). Same result. So 3rd party plugins beside the standard install shouldnt be the reason.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Milbo on October 04, 2011, 11:34:21 AM
Because the file is not correctly updated, you must add
google_jquery=0

or wait for the new version
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: capeinfo on October 04, 2011, 11:46:47 AM
Thanks Milbo.  It's beyond me ... any indication of when the new version might be out?
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Milbo on October 04, 2011, 12:09:00 PM
Patrick heavily rewrote the custom field stuff. We test it today and we should have the release this evening.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: meinekatze on October 05, 2011, 18:16:03 PM
Any news? :) because i'm a bit stranded with this issue.
cheers
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: jacob.arlington on October 06, 2011, 05:44:11 AM
i install virtuemrt on two diffrent server with same version af joomla and virtuemart
but one of them save not work and another one work
i attach php info for assistant

virtuemart not work on that server that lastst version of php and mysql installed


[attachment cleanup by admin]
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: jacob.arlington on October 08, 2011, 05:06:15 AM
its not fixed on new version also :((
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Milbo on October 08, 2011, 10:01:18 AM
Quote from: jacob.arlington on October 08, 2011, 05:06:15 AM
its not fixed on new version also :((

It seems you did not understand. The problem is not in virtuemart, the problem is your server. Either you load some extra jquery or your provider blockes the google jquery.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: capeinfo on October 08, 2011, 10:16:52 AM
The problem seems sufficiently widespread to address seriously, with detailed instructions on how to overcome the problem.

On October 4 you said: "Because the file is not correctly updated, you must add
google_jquery=0
or wait for the new version"

Well, the new version doesn't address it.

I have a dedicated server at Rochen and use a JAT3 template.  I don't experience this kind of problem anywhere else.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Milbo on October 08, 2011, 10:55:07 AM
Wait for the new version to see the google_jquery=1 in the file, which name is now virtuemart.cfg and not virtuemart_default.cfg
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Milbo on October 08, 2011, 10:59:23 AM
Quote from: capeinfo on October 08, 2011, 10:16:52 AM

I have a dedicated server at Rochen and use a JAT3 template.  I don't experience this kind of problem anywhere else.

Disable your template, or the jquery of your template
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: meinekatze on October 08, 2011, 17:08:48 PM
Hi Milbo,

I've a clean 1.7.1 install. I've tried with any of the Joomla standard Templates (which should work with VM). Google jquery works.
I had no luck with any of the settings, jQuery++ (at any position), and so forth.
Apache version    2.2.20
PHP version    5.2.17
MySQL version    5.0.92-community-log

Is there anyone with a working BE?

cheers
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Milbo on October 08, 2011, 18:03:24 PM
I know that at least 15 people have a working BE. We have already more than 100 downloads of the H version. So you can assume that maybe 5% have this problem.

and everytime we found out that these people have problems like,
- google is blocked (china for example)
- another jQuery is loaded by
* template
* some extension

What means google jQuery works? You may install firebug and post here the error in your browser
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: mabeall32 on October 08, 2011, 18:07:24 PM
so far the H version have cleared up my problems. thanks for the great work
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: meinekatze on October 08, 2011, 18:25:01 PM
thanks for your efforts.

google jquery is (here) not blocked and using a local does not make a difference either.
might be a conflict but i can't figure this out.

first error is on load, second at click.

(http://img820.imageshack.us/img820/3756/123wlw.png)

thank you.

fwiw: 1.1.9 on J1.5.x is running perfectly.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: meinekatze on October 08, 2011, 18:57:56 PM
Quote from: mabeall32 on October 08, 2011, 18:07:24 PM
so far the H version have cleared up my problems. thanks for the great work

could you please tell me your current configuration/alterations?
local jquery?

thanks
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: mabeall32 on October 08, 2011, 19:04:02 PM
I'm new at this, how do I get the information.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: meinekatze on October 08, 2011, 20:41:20 PM
did you install H on a fresh installed 1.7 or update G with a local copy of jquery like recommended by Milbo?
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: mabeall32 on October 08, 2011, 21:09:45 PM
I went from F to H
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Milbo on October 08, 2011, 21:14:28 PM
Quote from: Milbo on October 08, 2011, 18:03:24 PM
I know that at least 15 people have a working BE. We have already more than 100 downloads of the H version.
Did I wrote 100? sorry, I meant 1000.

"with a local copy of jquery" ?
You dont need to install anything you, just uncheck the option in the config (or file)
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: meinekatze on October 08, 2011, 21:25:31 PM
 :( even more depressing.
pointing to a local copy was plan #whatever after so many tries.
Title: 2.0.0-RC-2H can't save anything in VM back-end
Post by: aboutimage on October 09, 2011, 01:13:00 AM
I'm having the same problem in Joomla 1.7 and VM 2.0.0-RC-2H.
I'm left believing that this must be a server conflict of some sort, because I can't imagine everyone's having this problem. Any ideas on known server library conflicts? I have direct access to the server and can modify anything necessary to make this work.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: constantined on October 09, 2011, 09:27:17 AM
aboutimage, was vendor defined? Turn on joomla debug mode.
Try to replace

#__templates_styles

with

#__template_styles

in /administrator/components/com_virtuemart/models/config.php .
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: meinekatze on October 09, 2011, 10:17:38 AM
thanks for your help constantined.

While in debug mode an with your edit it works.
Outside debug mode not.

***
i figured out it's only in language debug.
***


Debug in PM.
thank you & cheers
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Milbo on October 09, 2011, 10:46:37 AM
Quote from: constantined on October 09, 2011, 09:27:17 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
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: constantined 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.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: meinekatze 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
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: meinekatze 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
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: SteveBab on October 09, 2011, 15:52:22 PM
I'm confused --- rename the file to the same name?
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: meinekatze on October 09, 2011, 16:16:11 PM
3 Times "o".  ;)
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: aboutimage on October 09, 2011, 17:12:03 PM
I can confirm, constantined's cookie fix actually works:

Quoteconstantined 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!!!!????
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: constantined on October 09, 2011, 17:33:09 PM
Just looked at javascript console  ;D
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: aboutimage 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: cat /usr/local/apache/logs/error_log |grep cookie.js gives me a LOT of the following error:

[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!
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Milbo 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.
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: Studio 42 on October 10, 2011, 22:02:36 PM
Quoteconstantined 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
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: SteveBab on October 10, 2011, 22:53:46 PM
This surely works for me.
Title: Pleaze help me to disable https protocole when checkout
Post by: jean2013 on February 20, 2012, 20:27:45 PM
Quote from: jean2013 on February 16, 2012, 14:13:02 PM
Hello everybody :)
I would like to disable the SSL redirection when trying to checkout .
I tried to do this through :
       $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
Title: Re: 1.9.8G can't save anything in VM back-end
Post by: matthewod01 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