Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Waring: array_flip

Waring: array_flip 8 years 7 months ago #24817

  • funktionellt
  • funktionellt's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Hi,

When I in front end "Save" an event (both when editing an existing event and creating a new event) I get the error message below. If i instead use the button "Save and close" I don't notice this error. I'm using Joomla 3.4.3 and DT Register 3.1.3b.

Array ( [1] => 62 )
Warning: array_flip() expects parameter 1 to be array, null given in /xxxx/xxxxx/public_html/test/administrator/components/com_dtregister/models/event.php on line 5030
143Array
(
[0] => Array
(
[member] => 1
[amount] => 0.00
)

[1] => Array
(
[member] => 0
[type] => flat
[amount] => 0.00
)

)
143

Please Log in or Create an account to join the conversation.

Waring: array_flip 8 years 7 months ago #24818

  • nathan.dth
  • nathan.dth's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1857
  • Karma: 19
  • Thank you received: 218
Hello. We can't replicate this on our sites... and no one else has reported this at this point. Please submit a ticket with admin access to your site and we'll check it there.

Please Log in or Create an account to join the conversation.

Nathan is no longer affiliated with DTH since the recent acquisition. You can connect with him and get any type of Joomla website help at www.JoomlaEmployee.com .

Waring: array_flip 8 years 5 months ago #25007

  • webweaver
  • webweaver's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
FYI: we had the same issue after upgrading our Joomla to the latest version.
In our testenvironment we found out that the problem only occurred in combination with php 5.5

As downgrading to 5.4 was no option we solved it this way :

administrator\components\com_dtregister\views\event\tmpl\add.php
=> rename form id from "newDiscountCode" to "adminForm"

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.086 seconds