Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 09:33 am EST

Geeklog Forums

Geeklog 1.5: asort() error in calendar


Status: offline

aaneiros

Forum User
Junior
Registered: 01/31/04
Posts: 26
Hi. I have just upgraded to geeklog 1.5 and everything works fine but one thing: after selecting day view in calendar, if I click on any time I get the following error (when logged in as admin user):

Text Formatted Code

An error has occurred:
2 - asort() expects parameter 1 to be array, boolean given @ /usr/share/geeklog/plugins/calendar/functions.inc line 1780

array(4) {
  ["currtype"]=>
  string(0) ""
  ["_CA_CONF"]=>
  &array(13) {
    ["calendarloginrequired"]=>
    int(0)
    ["hidecalendarmenu"]=>
    int(0)
    ["personalcalendars"]=>
    int(1)
    ["eventsubmission"]=>
    int(1)
    ["showupcomingevents"]=>
    int(1)
    ["upcomingeventsrange"]=>
    int(14)
    ["hour_mode"]=>
    int(24)
    ["event_types"]=>
    bool(false)
    ["notification"]=>
    int(0)
    ["delete_event"]=>
    int(0)
    ["aftersave"]=>
    string(4) "list"
    ["default_permissions"]=>
    array(4) {
      [0]=>
      int(3)
      [1]=>
      int(2)
      [2]=>
      int(2)
      [3]=>
      int(2)
    }
    ["version"]=>
    string(5) "1.0.2"
  }
  ["retval"]=>
  string(0) ""
  ["event_types"]=>
  &bool(false)
}

(This text is only displayed to users in the group 'Root')
 


Any help will be appreciated ;-)
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
What happened to your event_types: $_CA_CONF['event_types'] is supposed to be an array. In prior versions, it was a comma delimited string. It should never be "false" though.
 Quote

Status: offline

aaneiros

Forum User
Junior
Registered: 01/31/04
Posts: 26
Hi. This is part of the contents of my /usr/share/geeklog/plugins/calendar/config-pre1.5.0.php :

Text Formatted Code

$_CA_CONF['event_types']           = 'item1,item2,item3,etc';
 


Thanks for answering.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
If you go to

Configuration > Calendar > General Calendar Settings > Event Types

and hit that [+] button there, do any event types show up?

They should have been copied over from your old config.php but maybe something went wrong during the upgrade ...

bye, Dirk
 Quote

Status: offline

aaneiros

Forum User
Junior
Registered: 01/31/04
Posts: 26
My $_CA_CONF['event_types'] in the previous version of GL contained some Spanish characters. In my old config it worked but maybe in the transition to the new version they weren't copied properly; maybe threre's some problem with those characters...

I'll try doing the upgrade again but this time I'll remove those events before upgrading.

Thanks.

Bye.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: aaneiros

My $_CA_CONF['event_types'] in the previous version of GL contained some Spanish characters.


Ah, okay. Need to look into that ...

bye, Dirk
 Quote

Status: offline

aaneiros

Forum User
Junior
Registered: 01/31/04
Posts: 26
I tried deleting all the old events in my config.php for the calendar plugin before upgrading. After upgrading, calendar works all right and I can add my old events with those Spanish characters again (and calendar keeps working ;-)

Thanks.
 Quote

All times are EST. The time is now 09:33 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content