VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: [n]atalie on October 31, 2011, 18:19:46 PM

Title: [RESOLVED] Can't edit or create new tax
Post by: [n]atalie on October 31, 2011, 18:19:46 PM
I accidentally posted this originally in the VM1 part of the forum so I'm reposting.

I'm running VM 1.98J on a new Joomla 1.7 site and I can't add a new tax or edit the taxes that are currently listed.
When I am on the "Tax & Calculation Rule" page and I click the +New button I get the following error:

--------------------------------------------------
500 - An error has occurred.
DateTime::__construct() [datetime.--construct]: Failed to parse time string (24/10/11) at position 0 (2): Unexpected character
--------------------------------------------------

The same applies if I try to edit one of the taxes from the demo content. There's a screen shot attached.

It's really getting to be an urgent problem and I have no idea what to do with it. My client wants this shop up soon.

[attachment cleanup by admin]
Title: Re: Can't edit or create new tax
Post by: Milbo on November 01, 2011, 11:42:48 AM
Hmm please give more information, which js is loaded, only jQuery? or also mootools. You can see that looking on the html of the page.

I just created a tax rule some days ago, so we must search in your environment. php version, mysql version, loaded js and so on.
Title: Re: Can't edit or create new tax
Post by: [n]atalie on November 02, 2011, 02:36:53 AM
jQuery and mootools are both loaded
PHP Version 5.2.17
MySQL version 5.1.56

If there's anything else that might help, I'll try to find it right away. Thank you!
Title: Re: Can't edit or create new tax
Post by: [n]atalie on November 02, 2011, 02:45:44 AM
Update: I upgraded to 1.98k and also tried disabling Mootools, but same thing.
Title: Re: Can't edit or create new tax
Post by: Milbo on November 03, 2011, 20:12:52 PM
Same problem with the K version, hmmm.
Title: Re: Can't edit or create new tax
Post by: jjk on November 03, 2011, 23:24:34 PM
Are you eventually using Joomla 1.7.0? There was a Joomla bug fix in the date format in J1.7.1
Perhaps one of these two post provides a hint how to get rid of that error message:
http://forum.virtuemart.net/index.php?topic=91590.msg300810#msg300810 (http://forum.virtuemart.net/index.php?topic=91590.msg300810#msg300810)
http://forum.virtuemart.net/index.php?topic=92143.msg302963#msg302963 (http://forum.virtuemart.net/index.php?topic=92143.msg302963#msg302963)
Title: Re: Can't edit or create new tax
Post by: [n]atalie on November 05, 2011, 22:04:25 PM
Thank you!
It was that I had changed date format from %m/%d/%y to %d/%m/%y in the Configuration. I just put it back to the way it was. It's not of any significant importance. Thank you for directing me to the other posts.
Title: Re: [RESOLVED] Can't edit or create new tax
Post by: jjk on November 05, 2011, 22:26:39 PM
Concerning that date format I just remembered this topic:
http://forum.virtuemart.net/index.php?topic=90958.msg298664#msg298664 (http://forum.virtuemart.net/index.php?topic=90958.msg298664#msg298664)  ;D
Title: Re: [RESOLVED] Can't edit or create new tax
Post by: iDanny on February 06, 2012, 02:46:01 AM
I'm running the latest VM 2 and Joomla 2.51.

I get this error too. I also get it when trying to edit a currency ?

I can't see where to set the date format ?

Any thoughts ?

Thanks,
Danny
Title: Re: [RESOLVED] Can't edit or create new tax
Post by: [n]atalie on February 06, 2012, 03:37:35 AM
Components --> VirtueMart --> (Now you're in VM Control Panel) --> Configuration (Picture of a wrench) --> (Now you're in Shop Settings) -->

Make sure "Shop date format" is set to %m/%d/%y

Hopefully that works for you too.
Title: Re: [RESOLVED] Can't edit or create new tax
Post by: iDanny on February 06, 2012, 12:23:28 PM
I'm wondering if something worse is wrong ? I don't see this setting at all in this given path (see attached image)



[attachment cleanup by admin]
Title: Re: [RESOLVED] Can't edit or create new tax
Post by: [n]atalie on February 06, 2012, 14:05:37 PM
When you try to create a new tax on the "Tax & Calculation Rule" page what is the exact error message that you get?
Title: Re: [RESOLVED] Can't edit or create new tax
Post by: iDanny on February 07, 2012, 10:06:25 AM
Hi,

I get a page with the Virtuemart menu without CSS (just like the image in the first post of this thread)

Danny
Title: Re: [RESOLVED] Can't edit or create new tax
Post by: [n]atalie on February 07, 2012, 14:53:57 PM
At the bottom of the page I originally posted it says:

--------------------------------------------------
500 - An error has occurred.
DateTime::__construct() [datetime.--construct]: Failed to parse time string (24/10/11) at position 0 (2): Unexpected character
--------------------------------------------------

Please copy and past your error message because, from what you're saying, I think it's probably different than what mine was. You may have to scroll down past all the unformatted menu items to find it.
Title: Re: [RESOLVED] Can't edit or create new tax
Post by: iDanny on February 07, 2012, 15:27:42 PM
ok after some more research in the forum, i found that this was a 2.5 compatability issue which has been resolved in recent VM2 branches (2.01 and 2.02)
http://dev.virtuemart.net/projects/virtuemart/files