Hi
VirtueMart 3.0.6.2
Joomla 3.4.1
Language Dutch
Transform template
I just made a fresh install with Joomla and Virtuemart. Everything seems to work fine except the adding of new products.
Whenever I try to save a new product I see the following errors in the FireFox console:
Use of getAttributeNode() is deprecated. Use getAttribute() instead. mootools-core.js:108:0
Empty string passed to getElementById(). jquery.min.js:2:0
GET http://www.wanwila59.fiftynine.axc.nl/components/com_jce/editor/tiny_mce/plugins/core/editor_plugin.js [HTTP/1.1 304 Not Modified 42ms]
GET http://www.wanwila59.fiftynine.axc.nl/administrator/index.php [HTTP/1.1 200 OK 632ms]
Empty string passed to getElementById(). jquery.min.js:2:0
Error: Syntax error, unrecognized expression: #mprices[product_price_publish_up][]-lbl jquery.min.js:2:12716
Empty string passed to getElementById().
It seems to be a jQuery error... already tried the external Google jQuery but no luck with that.
Anyone that has an idea how to fix this?
Adding categories works fine.
Greetings,
Kees van Spelde
I too am getting this error, but it is NOT an update, we just installed VM for the first time last night
Error: Syntax error, unrecognized expression: #mprices[product_price_publish_up][]-lbl
http://www.mywebsite.com/ktr/media/jui/js/jquery.min.js
Line 2
All other Google searches I found returned answers that were not related to me. This one was closest. I am hoping there is a response soon.
--billynair
Same here. I updated today from Joomla 3.4.0 to 3.4.1 and am getting this error when
trying to save a product. With J3.4.0 everything worked fine.
A fix for this problem
Open the file --> /administrator/components/com_virtuemart/views/product/tmpl/product_edit_price.php
Change these lines:
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_up'], 'mprices[product_price_publish_up][]'); ?>
</td>
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_down'], 'mprices[product_price_publish_down][]'); ?>
</td>
To:
It's on line 144 and 147, make sure that you add the 0 between the brackets... this fixes the problem.
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_up'], 'mprices[product_price_publish_up][0]'); ?>
</td>
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_down'], 'mprices[product_price_publish_down][0]'); ?>
</td>
Greetings,
Kees van Spelde
Quote from: Sicos on March 23, 2015, 18:46:32 PM
A fix for this problem
Open the file --> /administrator/components/com_virtuemart/views/product/tmpl/product_edit_price.php
Change these lines:
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_up'], 'mprices[product_price_publish_up][]'); ?>
</td>
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_down'], 'mprices[product_price_publish_down][]'); ?>
</td>
To:
It's on line 144 and 147, make sure that you add the 0 between the brackets... this fixes the problem.
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_up'], 'mprices[product_price_publish_up][0]'); ?>
</td>
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_down'], 'mprices[product_price_publish_down][0]'); ?>
</td>
Greetings,
Kees van Spelde
Worked, thanks!
Also started getting the error(vm3.0.6.2):
Uncaught Error: Syntax error, unrecognized expression: #mprices [product_price_publish_up] [] - lbl
I would like to hear comments from the developers on this issue and how best to fix this problem.
error because id has to be unique...
the answer in the post before isnt correct because for more prices still gives error
so try changing to :
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_up'], 'mprices[product_price_publish_up][]','mprices[product_price_publish_up]-' . $this->priceCounter); ?>
</td>
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_down'], 'mprices[product_price_publish_down][]','mprices[product_price_publish_down]-' . $this->priceCounter); ?>
</td>
Thanks Sicos and Freddo,
Back in business!
M :)
Yes !! ...Thanks you !
<td nowrap>
<?php // echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_up'], 'mprices[product_price_publish_up][]'); ?>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_up'], 'mprices[product_price_publish_up][]','mprices[product_price_publish_up]-' . $this->priceCounter); ?>
</td>
<td nowrap>
<?php // echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_down'], 'mprices[product_price_publish_down][]'); ?>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_down'], 'mprices[product_price_publish_down][]','mprices[product_price_publish_down]-' . $this->priceCounter); ?>
</td>
french user VM 3.0.6.2 and Joomla 3.4.1
Quote from: Freddo on March 23, 2015, 22:59:04 PM
error because id has to be unique...
the answer in the post before isnt correct because for more prices still gives error
so try changing to :
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_up'], 'mprices[product_price_publish_up][]','mprices[product_price_publish_up]-' . $this->priceCounter); ?>
</td>
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_down'], 'mprices[product_price_publish_down][]','mprices[product_price_publish_down]-' . $this->priceCounter); ?>
</td>
Exactly, the provided solution gives an interesting hint where to look for, but it is not really a suitable solution. My problem is also that people do a minor update and suddenly the js is broken. This let me think that a final solution is to provide our own js. But good tip, I just noticed that we use for the id, just the name. So maybe the new js has just a problem with the id name. Going to test with modified id, lets see if it helps.
Quote from: Freddo on March 23, 2015, 22:59:04 PM
error because id has to be unique...
The id is unique, but thank you very much for the hint, the real problem was the ID of the field, which used as fallback just the name and the new js has problems to handle [] in the id. Please try the attached file (renamed) at /administrator/components/com_virtuemart/helpers
Quote from: Milbo on March 24, 2015, 12:27:39 PM
The id is unique, but thank you very much for the hint, the real problem was the ID of the field, which used as fallback just the name and the new js has problems to handle [] in the id. Please try the attached file (renamed) at /administrator/components/com_virtuemart/helpers
I was getting the same error and the attached file resolved the issue.
J3.4.1
VM3.0.6.2
TY!
Quote from: Milbo on March 24, 2015, 12:27:39 PM
Quote from: Freddo on March 23, 2015, 22:59:04 PM
error because id has to be unique...
The id is unique, but thank you very much for the hint, the real problem was the ID of the field, which used as fallback just the name and the new js has problems to handle [] in the id. Please try the attached file (renamed) at /administrator/components/com_virtuemart/helpers
Thank you, file fixed it.
http://dev.virtuemart.net/projects/virtuemart/files
try 3.0.6.4
Hello,
I have the same problem after Update to Joomla 3.4.1.So we should just download the new version of VM 3 and just install it like fresh VM installation, right? Via extension installer?
Regards!
Quote from: Milbo on March 25, 2015, 01:47:10 AM
http://dev.virtuemart.net/projects/virtuemart/files
try 3.0.6.4
Thanks i have installed the update and now the buttons work again.
But i must say it became very slow. Saving takes about 5 seconds. Before this was miliseconds
Quote from: Milbo on March 25, 2015, 01:47:10 AM
http://dev.virtuemart.net/projects/virtuemart/files
try 3.0.6.4
I tried 3.0.6.4 and it solves the "not being able to save new products" problem.
However it seems to be conflicting with Jquery Easy, as after updating to 3.0.6.4 my revolution slider and (template) cart module went blank.
Awesome !!
Many Thanks Sicos
HI,
Other french user have same issu.
Of course the php function is bad, but
mprices[product_price_publish_up]-' . $this->priceCounter as a ID is bad to.
Simply use
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_up'], 'mprices[product_price_publish_up][]','mprice-product_price_publish_up-' . $this->priceCounter); ?>
</td>
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_down'], 'mprices[product_price_publish_down][]','mprices-product_price_publish_down-' . $this->priceCounter); ?>
</td>
Is the right way to set the ID in this case.
A day someone add a regex because someone add quotes in the ID?
You(MAX) add a fix for something bad, but only for this case.
Solution 1 : make a fix for all case, to prevent all errors, that all newbie can use the api.
Code From Joomla core :
// Remove any duplicate whitespace, and ensure all characters are alphanumeric
$str = preg_replace('/(\s|[^A-Za-z0-9\-])+/', '-', $str);
// Trim dashes at beginning and end of alias
$str = trim($str, '-');
Solution 2 : simply correct the mistake in the ID itself and don't add filters for nothing in the PHP function.
Ehrm Patrick, that is solved since almost a week in the svn and also already provided as installer http://dev.virtuemart.net/projects/virtuemart/files
Quote from: Milbo on March 24, 2015, 12:27:39 PM
Quote from: Freddo on March 23, 2015, 22:59:04 PM
error because id has to be unique...
The id is unique, but thank you very much for the hint, the real problem was the ID of the field, which used as fallback just the name and the new js has problems to handle [] in the id. Please try the attached file (renamed) at /administrator/components/com_virtuemart/helpers
This file helped me on VM 3.0.6.2-I couldn't save either in Chrome, Firefox, Cleared Cache, purge expired, reinstalled VM, you name it I read through all the forums this fixed it!
hi,
Quote from: Milbo on March 31, 2015, 01:31:56 AM
Ehrm Patrick, that is solved since almost a week in the svn and also already provided as installer http://dev.virtuemart.net/projects/virtuemart/files
I know, it's fixed, but make a real choice not a mix.
Or add a regex or simply fix the bad IDS.
All two fix are incorrect, your or this by users.
Why :
The fix by users are not a correct ID.
The fix by you only fix the ID in this case.
If someone (a developper) make a mistake on setting the ID name using another char, this is not fixed on your changes(quote, single quotes ....)
Quote from: Sicos on March 23, 2015, 18:46:32 PM
A fix for this problem
Open the file --> /administrator/components/com_virtuemart/views/product/tmpl/product_edit_price.php
Change these lines:
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_up'], 'mprices[product_price_publish_up][]'); ?>
</td>
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_down'], 'mprices[product_price_publish_down][]'); ?>
</td>
To:
It's on line 144 and 147, make sure that you add the 0 between the brackets... this fixes the problem.
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_up'], 'mprices[product_price_publish_up][0]'); ?>
</td>
<td nowrap>
<?php echo vmJsApi::jDate ($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_down'], 'mprices[product_price_publish_down][0]'); ?>
</td>
Greetings,
Kees van Spelde
In my installation...with Joomla 3.4.1 and VM 3.0.6.4, this worked...thank you!
yeh it works for you, if you have only one price.
Patrick, the use of [] in the id is valid html5 !
and yes, the real solution is a class, which keeps all your ids and ensures that all of them are unique.
Good afternoon,
Thanks for this topic and for this new Virtuemart version 3.0.6.4. I can't save my product modification since I update Jommla to 3.4.1
Can I use it on my website (localhost and soon I hope online)? Is it a production/stable version?
Do I have just to download > com_virtuemart.3.0.6.4.zip and install it?
Why this version is not proposed on the download section of virtuemart.net ? > http://virtuemart.net/download
Thanks in advance for your reply
Best R
Because it is an interim version, which I had to release due the bug in joomla 3.4.1. So we had not the time to check anything in vm3.0.6.4, the vm3.0.7 is on the way. We need live tests of it and release than officially the vm3.0.8
and yes - in the meantime com_virtuemart.3.0.6.4_extract_first.zip is stable and safe to use
http://dev.virtuemart.net/attachments/download/932/com_virtuemart.3.0.6.4_extract_first.zip
There can be a problem with the OPC and more than one choice for shipment/payment
Quote from: Milbo on April 01, 2015, 14:23:01 PM
yeh it works for you, if you have only one price.
Patrick, the use of [] in the id is valid html5 !
... but this give javascript errors and was the main problem.
I don't understand why you cannot simple say, thanks this is the right solution, i fix the bug ?
In all case, dynamic adding a new price, must always regenerate a new ID, i don't have look in the internal javascript, but if this not work, on cloning the DOM Node you have to set a new ID each time in JS
Hello,
I had install the 3.0.6.4 VM and 3.0.6.4 AIO : I arrive to save the product now but my payment/Shipping solution (paypal and cheque ; well configured) doesn't work now I have in the cart a message (in french ) : "Aucun mode de paiement n'a été sélectionné" > "No paiement method selected" I am on PHP 5.5.22 .
As indicated above my Milbo "There can be a problem with the OPC and more than one choice for shipment/payment"
I had desactivated OPC. The shiping method work sometimes but the payment choice is never available...
Do you think that that's a bug of this new version 3.0.6.4 ?
If yes anay idea of a new stable version?
Thanks in advance :-)
Joomla informations system :
PHP exécuté sur SunOS localhost 5.10 Generic_142901-13 i86pc
Version de la base de données 5.5.42-log
Interclassement de la base de données utf8_general_ci
Version de PHP 5.5.22
Serveur web Apache/2.2.29 (Unix)
Serveur web pour interface PHP cgi-fcgi
Version de Joomla Joomla! 3.4.1 Stable [ Ember ] 21-March-2015 20:30 GMT
[/i]
Yes, I meant exactly this error. Please try http://dev.virtuemart.net/attachments/download/937/com_virtuemart.3.0.7_extract_first.zip
It should exactly solve that. It runs already on some livestores.
Great! This worked for me, thank you!
Many thanks Milbo for this update.
I am now able to choose the payment method , this is great :)
But I have now the following message :
"Avertissement Key folder in safepath unaccessible "
I didn't have this message before because I had configure this as indicated here http://docs.virtuemart.net/faqs/110-how-to-set-the-safe-path.html. I cleared the cache and used and another browers : idem
I read and apply this http://docs.virtuemart.net/faqs/110-how-to-set-the-safe-path.html > always the message "Key folder in safepath unaccessible"
Try after to put my "vmsafefolder" (755 permission) in administrator > always the message "Key folder in safepath unaccessible"
Do you think this is in relation with the 3.0.7 version ?
Thanks in advance
http://forum.virtuemart.net/index.php?topic=129246.msg444769#msg444769
Thanks for the answer. It seems that the bug fix http://forum.virtuemart.net/index.php?topic=129246.msg444769#msg444769
doesn't fix the pb for me...
Best R
Quote from: Milbo on April 03, 2015, 16:09:04 PM
Yes, I meant exactly this error. Please try http://dev.virtuemart.net/attachments/download/937/com_virtuemart.3.0.7_extract_first.zip
It should exactly solve that. It runs already on some livestores.
Hi I have J 3.4.1 and tried http://dev.virtuemart.net/attachments/download/940/com_virtuemart.3.0.7.4_extract_first.zip and worked like a charm! I can now save my products again! jeje