Author Topic: [SOLVED] List Orders Error  (Read 6535 times)

trevorsm

  • Beginner
  • *
  • Posts: 27
[SOLVED] List Orders Error
« on: December 22, 2011, 20:07:09 pm »
I have added a menu item - List Orders but when I click to view an order there are errors reported for each item on the order:
Code: [Select]
Warning: key() [function.key]: Passed variable is not an array or object in /--- website ---/administrator/components/com_virtuemart/plugins/vmcustomplugin.php on line 253I get the same result if I click on the 'view your order online' link in the confirmation email that is sent to the customer.

Using VM2.0.0

Edit - It only seems to happen when the product has custom fields!

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10338
  • VirtueMart Version: 3+
Re: List Orders Error
« Reply #1 on: December 22, 2011, 21:42:00 pm »
Get the same here

[attachment cleanup by admin]
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3907
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: List Orders Error
« Reply #2 on: December 23, 2011, 06:47:37 am »
I have added a menu item - List Orders but when I click to view an order there are errors reported for each item on the order:
Code: [Select]
Warning: key() [function.key]: Passed variable is not an array or object in /--- website ---/administrator/components/com_virtuemart/plugins/vmcustomplugin.php on line 253I get the same result if I click on the 'view your order online' link in the confirmation email that is sent to the customer.

Using VM2.0.0

Edit - It only seems to happen when the product has custom fields!

fixed At revision: 5167

Norman27

  • Beginner
  • *
  • Posts: 3
Re: List Orders Error
« Reply #3 on: December 30, 2011, 19:10:47 pm »
Hallo! Ich habe das selbe Problem, wollte mal nachfragen, was das Revision 5167 bedeutet und wie ich das einbinden kann, damit der Fehler nicht mehr passiert.

English (not good:-)) Hello, i have the same Problem. What is the fixed 5167. How i become it? Thanks!

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10338
  • VirtueMart Version: 3+
Re: List Orders Error
« Reply #4 on: December 30, 2011, 20:13:03 pm »
Hallo! Ich habe das selbe Problem, wollte mal nachfragen, was das Revision 5167 bedeutet und wie ich das einbinden kann, damit der Fehler nicht mehr passiert.

English (not good:-)) Hello, i have the same Problem. What is the fixed 5167. How i become it? Thanks!

on the next update, OR if you use SVN

https://dev.virtuemart.net/svn/virtuemart/trunk/virtuemart/
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

Norman27

  • Beginner
  • *
  • Posts: 3
Re: List Orders Error
« Reply #5 on: January 01, 2012, 16:28:55 pm »
Hello!
I changed the file now. However, the error message comes back, but now 254th in line The line was also added new and is called: if (key ($ plg) == $ this-> _name)

Hope you can help me.
greeting
Norman

adham

  • Jr. Member
  • **
  • Posts: 96
Re: List Orders Error
« Reply #6 on: January 06, 2012, 11:51:45 am »
I did have the same error, found it it was either the custom field was deleted or altered, or it wasnt configured the right way, try to delete the custom field and make a new one and see, also empty the cache.
Cheers!

FORGET THE ABOVE!!1 the error came back, also in backend print view it displays this {"429":" Choose a colour : <\/span>62"} VM 2.0 and J1.5.X

zzsser

  • Beginner
  • *
  • Posts: 37
  • I love virtuemart but I dislike bugs :-(
Re: List Orders Error
« Reply #7 on: January 11, 2012, 11:05:11 am »
Hi, does someone could solve this problem ?

I still have this problem. I tried:

- install the last custom fields files (taking into account revision 5167)
- empty the cache
- create a new simple custom field (color field with 2 colors)
- create a new simple product with only the new custom field

The error message remain the same in back-end (no problem in confirmation e-mails):


Warning: key() expects parameter 1 to be array, string given in /homez.398/stickerv/www/administrator/components/com_virtuemart/plugins/vmcustomplugin.php on line 253

I'm lost :-(

trevorsm

  • Beginner
  • *
  • Posts: 27
[SOLVED] Re: List Orders Error
« Reply #8 on: January 11, 2012, 11:08:57 am »
I updated to the latest version from the svn two days ago and it it seems to work OK now.

zzsser

  • Beginner
  • *
  • Posts: 37
  • I love virtuemart but I dislike bugs :-(
Re: [SOLVED] List Orders Error
« Reply #9 on: January 12, 2012, 08:56:36 am »
I replace the file and I get the same error to an other line (196 vs 253) in this file:


Warning: key() expects parameter 1 to be array, string given in /homez.398/stickerv/www/administrator/components/com_virtuemart/plugins/vmcustomplugin.php on line 196

(I use J1.7)

trevorsm

  • Beginner
  • *
  • Posts: 27
Re: [SOLVED] List Orders Error
« Reply #10 on: January 12, 2012, 09:47:48 am »
I think there might be more than one file involved. I updated all the files from the svn.

supermac

  • Jr. Member
  • **
  • Posts: 68
Re: [SOLVED] List Orders Error
« Reply #11 on: January 12, 2012, 13:38:50 pm »
I cannot replace all files because i'm customizing some php for my needs: I'd like to know which files are involved....

maxi1973

  • Jr. Member
  • **
  • Posts: 68
Re: [SOLVED] List Orders Error
« Reply #12 on: January 25, 2012, 14:30:33 pm »
Upgrade with new release 2.0.1 and it will fix the problem. Save before for your customized files

brunoazevedo

  • Beginner
  • *
  • Posts: 9
Re: [SOLVED] List Orders Error
« Reply #13 on: January 25, 2012, 18:49:54 pm »
Hi,

i Updated the VM 2.0.1, the error atoped, but i lose the products and categories imagens and details (Images, Custon Fields...)

Any ideia

Thanks
Bruno


PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10338
  • VirtueMart Version: 3+
Re: [SOLVED] List Orders Error
« Reply #14 on: January 25, 2012, 19:05:28 pm »
go to "shop media files" and publish all images
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)