Welcome to Geeklog, Anonymous Saturday, September 07 2024 @ 08:01 pm EDT
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):
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 ;-)
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 ;-)
13
8
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.
13
26
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
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
10
13
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.
I'll try doing the upgrade again but this time I'll remove those events before upgrading.
Thanks.
Bye.
8
12
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.
Thanks.
10
13
Quote
All times are EDT. The time is now 08:01 pm.
- 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