calendarplus icon indicating copy to clipboard operation
calendarplus copied to clipboard

New Birthdays Calendar subscription on page load

Open abyssox opened this issue 9 years ago • 48 comments

Currently using v1.0.9. (Don't know if its relevant: Contact+ v1.0.5).

Everytime i visit the Calendar page or refresh the page, i get one more Birhdays Calendar item. 2015-09-05__07_44_23

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26467288-new-birthdays-calendar-subscription-on-page-load?utm_campaign=plugin&utm_content=tracker%2F19394737&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F19394737&utm_medium=issues&utm_source=github).

abyssox avatar Sep 05 '15 05:09 abyssox

you have to delete all birthdays subscription and update contacts+ to 1.0.6 (current master)

libasys avatar Sep 05 '15 06:09 libasys

Contact+ was already current master. Sry, thought it was v1.0.5. Anyway i deleted all subscriptions but the issue still exists. On every page load i get one more Birthdays subscription.

abyssox avatar Sep 05 '15 06:09 abyssox

have you access to your database? if yes look on the oc_cldrplus_calendar table! the uri of the birthday calendar should be "birthday_{username}" means for example birthday_tester! and what happend on your installation it increments the calendar to birthday_tester1 and so on!

libasys avatar Sep 05 '15 07:09 libasys

Yes i see it. birthday_mario birthday_mario1 birthday_mario11 birthday_mario111

How can we fix this or where does it come from?

abyssox avatar Sep 06 '15 05:09 abyssox

can you retest current master, i have done a commit! https://github.com/libasys/calendarplus/commit/ec9dafc82d18dbcda4fea1e6511453b0179c54cd which database do you use?

libasys avatar Sep 06 '15 08:09 libasys

Hmm, unfortunately your fix doesn't work for me. Still have the issue. I'm using MySQL 5.6.26 with PHP 5.6.12.

abyssox avatar Sep 06 '15 18:09 abyssox

i have no problems something in error logs? have you deleted the other birthday cals?

libasys avatar Sep 06 '15 18:09 libasys

hey there, same prob here (same behavior in the db). imported my calendar.ics in and every pagereload it clones the "birthdays_x". using contacs+1.0.7 and calendar+ 1.1.0 get some err in logs but don't know if its part of the problem: Error PHP Array to string conversion at /www/htdocs/myowncloud.com/lib/private/template/functions.php#36

i think it came fromt the contacts+ ? deleted all calendars and its still came up ...

syt3c avatar Sep 06 '15 21:09 syt3c

me again ;) deactivated contacts+ and no more birthday calendars coming up. hopefully helpful

syt3c avatar Sep 06 '15 21:09 syt3c

no the error comes from the admin settings page itself! Please give me some Info about Environment like Webserver Database and so on! I have tested the New versions with MySQL and sqlite and both Works like expected! The actual versions of calendar+ and contacts+ are on my demo integrated and work like expected! http://demo81.libasyscloud.de

libasys avatar Sep 06 '15 21:09 libasys

i use oc @ all-inkl.com (hosting), PHP Version 5.5.26, MySQL 5.6.24. yesterday i importet my contacts but somthing went wrong. deleted all contacts and today i looked at the calendar. still playing with it before it really get going :)

edit: activated the empty contcats+ app and the error starts again. in my logs (loglevel:all) there are some updatemsgs and that: Debug DeleteOrphanedSharesJob 0 orphaned share(s) deleted 2015-09-06T23:52:18+02:00 Warning OCP\Share Sharing backend OCA\ContactsPlus\Share\Backend\Contact not registered, OCA\ContactsPlus\Share\Backend\Contact is already registered for cplcontact 2015-09-06T23:52:09+02:00 Warning OCP\Share Sharing backend OCA\ContactsPlus\Share\Backend\Addressbook not registered, OCA\ContactsPlus\Share\Backend\Addressbook is already registered for cpladdrbook 2015-09-06T23:52:09+02:00

syt3c avatar Sep 06 '15 21:09 syt3c

Have you the normal contacts App. Activated?

libasys avatar Sep 06 '15 22:09 libasys

Yes, the normal contacts app is activated but i have no errors in the logfile.

abyssox avatar Sep 07 '15 04:09 abyssox

Hello, i have the same Problem. My System OC 8.1.1-3 Newest MySQL version Ubuntu 15.04 Calendar+ 1.1.0 Contacts+ 1.0.7 tasks+ 1.0.2 i have an testsystem where only Contacts+ Tasks+ and Calendar+ is activated. The error only occures if i share a Calendar. So i have an account "Backup". There i share the calendar to the account "Basti" if i log on in "Basti" and reload the calendar app every refresh one more birthday comes new. Then i did a new user "Test" i log in an reload the calendar+ app. everything is fine. If i share a calendar from Backup or Basti account and then login again in "Test" the same birthday error occures. What can i do? It was a fresh owncloud installation before!

Nemofly avatar Sep 07 '15 08:09 Nemofly

i will investigate!

libasys avatar Sep 07 '15 09:09 libasys

please retest current master of calendar+

libasys avatar Sep 07 '15 13:09 libasys

I will test it later and Send Feedback

Von meinem iPhone gesendet

Am 07.09.2015 um 15:16 schrieb Sebastian Döll [email protected]:

please retest current master of calendar+

— Reply to this email directly or view it on GitHub.

Nemofly avatar Sep 07 '15 13:09 Nemofly

So now i tested it, and for me the problem is solved. only one Birthday is shown. if you have more after the update delete every Birthday, and after a lot reloads you only have one. i think it is perfekt now!

Nemofly avatar Sep 07 '15 14:09 Nemofly

Tested the new master. Still the same prob with birthdays.. installed the current contacts+ from github too. but it looks like its a prob with my user. currently I only have two users (john and mike). the 2nd has no problems (john). I deleted the first user but the problem came back as soon as I add a user with the old (mike) name !?

the mysql table looks now like this: bdaycpltocal_john bdaycpltocal_mike bdaycpltocal_mike1 bdaycpltocal_mike11

in the apps is no data stored and both have been completely cleared and freshly installed.

edit: have added a third user and has the same "birthday"-problem

syt3c avatar Sep 07 '15 17:09 syt3c

Hey, Maybee Export your hole calendar and Then Delete all MySQL tables with calendarplus Inside. I think there should be 3 tables. First deactivate calendarplus. Delete the calendarplus. And Then Try it completly new?

Von meinem iPhone gesendet

Am 07.09.2015 um 19:04 schrieb syt3c [email protected]:

Tested the new master. Still the same prob with birthdays.. installed the current contacts+ from github too. but it looks like its a prob with my user. currently I only have two users (john and mike). the 2nd has no problems (john). I deleted the first user but the problem came back as soon as I add a user with the old (mike) name !?

the mysql table looks now like this: bdaycpltocal_john bdaycpltocal_mike bdaycpltocal_mike1 bdaycpltocal_mike11

in the apps is no data stored.

— Reply to this email directly or view it on GitHub.

Nemofly avatar Sep 07 '15 19:09 Nemofly

maybe it was an error in the table. I have reinstalled owncloud on my space and now its working :) Added contacts+ after calendar+ and only 1 birthday came up.

playtime.. ermm no.. bedtime :p

Edit: clapped too early. 1st user works fine, the calender of the second dublicates the birthday-tabs again :( as i said, fresh install w/o data.

syt3c avatar Sep 07 '15 21:09 syt3c

Same here. I tested the following things:

  • deleted all duplicate Birthday Calendars -> New Birthday Calendar subscription after each reload
  • deleted Calender+ Apps folder, database tables and installed Calendar+ new from latest git master -> New Birthday Calendar subscription after each reload
  • created new test user, logged in, opened Calendar+ Page -> New Birthday Calendar subscription after each reload

@libasys i can provide you a test account on my owncloud instance if needed.

abyssox avatar Sep 08 '15 07:09 abyssox

yes please!

libasys avatar Sep 08 '15 09:09 libasys

@libasys Email is on the way Please let me know if you need any more information

abyssox avatar Sep 08 '15 09:09 abyssox

@calis2002 do you use the github version of contacts+? if i add a birthday in your cloud then this isn't displayed on the calendar+ so i think you have an old version of contacts+!

libasys avatar Sep 08 '15 10:09 libasys

Yes, i use the current master version of Contact+ and Calendar+

abyssox avatar Sep 08 '15 10:09 abyssox

something in your error logs on the admin settings page?

libasys avatar Sep 08 '15 11:09 libasys

Unfortunately no

abyssox avatar Sep 08 '15 11:09 abyssox

please retest current master this fix is included https://github.com/libasys/calendarplus/commit/863073c05f205940ddfab0428581e2c80dc0f2d8

libasys avatar Sep 08 '15 12:09 libasys

tested the current master (18:00h) -> same prob.

edit: my contactsplus-master is from yesterday ~18:30. tested the creation of a birthday-event in the contacts and yep, it will not appear in the Calendar.

syt3c avatar Sep 08 '15 16:09 syt3c