Author Topic: [RESOLVED] Can't edit or create new tax  (Read 7609 times)

[n]atalie

  • Beginner
  • *
  • Posts: 10
[RESOLVED] Can't edit or create new tax
« 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]

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10486
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Can't edit or create new tax
« Reply #1 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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

[n]atalie

  • Beginner
  • *
  • Posts: 10
Re: Can't edit or create new tax
« Reply #2 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!

[n]atalie

  • Beginner
  • *
  • Posts: 10
Re: Can't edit or create new tax
« Reply #3 on: November 02, 2011, 02:45:44 am »
Update: I upgraded to 1.98k and also tried disabling Mootools, but same thing.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10486
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Can't edit or create new tax
« Reply #4 on: November 03, 2011, 20:12:52 pm »
Same problem with the K version, hmmm.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3749
  • using Matomo instead of Google Analytics
Re: Can't edit or create new tax
« Reply #5 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=92143.msg302963#msg302963
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

[n]atalie

  • Beginner
  • *
  • Posts: 10
Re: Can't edit or create new tax
« Reply #6 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.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3749
  • using Matomo instead of Google Analytics
Re: [RESOLVED] Can't edit or create new tax
« Reply #7 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  ;D
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

iDanny

  • Beginner
  • *
  • Posts: 23
Re: [RESOLVED] Can't edit or create new tax
« Reply #8 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

[n]atalie

  • Beginner
  • *
  • Posts: 10
Re: [RESOLVED] Can't edit or create new tax
« Reply #9 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.

iDanny

  • Beginner
  • *
  • Posts: 23
Re: [RESOLVED] Can't edit or create new tax
« Reply #10 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]

[n]atalie

  • Beginner
  • *
  • Posts: 10
Re: [RESOLVED] Can't edit or create new tax
« Reply #11 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?

iDanny

  • Beginner
  • *
  • Posts: 23
Re: [RESOLVED] Can't edit or create new tax
« Reply #12 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

[n]atalie

  • Beginner
  • *
  • Posts: 10
Re: [RESOLVED] Can't edit or create new tax
« Reply #13 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.

iDanny

  • Beginner
  • *
  • Posts: 23
Re: [RESOLVED] Can't edit or create new tax
« Reply #14 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