3.0 Beta
-
When I tried to activate the Beta version of the Simple Calendar plugin I got the following error:
Plugin could not be activated because it triggered a fatal error.
Fatal error: Cannot redeclare gce_print_calendar() (previously declared in /home/wp_wf4jtd/northwestflyanglers.org/wp-content/plugins/google-calendar-events/includes/misc-functions.php:8) in /home/wp_wf4jtd/northwestflyanglers.org/wp-content/plugins/simple-calendar/includes/functions/deprecated.php on line 32
-
Fulvio
As an addendum to my last post go to http://www.northwestflyanglers.dreamhosters.com/. It also has the same problem as mentioned above. But it is a grouped calendar and notice the change when going from October 2015 to November 2015. There are four Google calendars on this.
Hi,
I got an Google API and has set my domain under credentials. I’ve in put the API in Simple Calendar but still get this:
While trying to retrieve events, Google returned an error:
Error calling GET https://www.googleapis.com/calendar/v3/calendars/%5Binfo%5D: (403) There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.
Please ensure that both your Google Calendar ID and API Key are valid and that the Google Calendar you want to display is public.
Only you can see this notice.
What should I do?!
Is there a guide I can follow? A guide for Simple Events i mean, not any google documentation alone.
@bschormann try with https://www.dropbox.com/s/x7pxhmwo905kdtb/simple-calendar-3.0.0-beta1.zip?dl=1 (caveat: still a beta)
@xionkid, the error comes from Google, for the simple API key you didn’t have to specify a domain… just generate a Server API key and no need to specify IP addresses
Fulvio
Do I delete the current version and start all over again or just replace the corresponding files with the zip contents?
Brett
in this case you should be able to update it by just overwriting it
(others who might be reading this: don’t do this if updating from 2.x to beta or in future, it’s not a good practice)
Fulvio
The contents of the zip file contain a google calendar folder not a simple calendar folder. Is that correct?
Brett
Make that google-calendar-events not simple-calendar-events
I just checked, the directory in the zip is
google-calendar-eventsit matches the current slug as in wordpress.org – and in the future when you’ll download it from wordpress.org will have this slug
this is how the WordPress directory works – once a plugin is registered in it, the slug can’t be changed or there will trouble with updates from the directory and more confusion later on
Fulvio
Sorry to be a pest. Previously you told me “in this case you should be able to update it by just overwriting it.” The zip file contains a folder name google-calendar-events. The current beta version (installed and visible on the dashboard) contains the folder simple-calendar-events. When I overwrite the files do I remove the simple-calendar-events folder and just replace it with the folder in the zip file or should I just uninstall the simple calendar and start over. Hope this question makes sense to you.
Brett
Hi
probably was a mistake when compiling the first zip, the correct folder should have been
google-calendar-eventsall the time (which is also the folder used by this plugin since the very beginning), apologiesactually WordPress does not bother the directory to run the plugin, but I just want to make sure it matches the slug/directory as on wordpress.org for future-proof updates and avoid problems (maybe there won’t be, I’m not sure how wordpress.org handles updates when the destination directory in your WordPress installation doesn’t match the slug registered on wordpress.org)
you can rename the directory eventually, probably your installation of WordPress will deactivate the plugin when you do so, but it will list the plugin in the plugins dashboard page for you to reactivate it
sorry for the confusion about this, but it shouldn’t be a big deal
Fulvio
Thank you – it is a lot better.
Still some formatting problems (see http://www.northwestflyanglers.dreamhosters.com/)
1. No arrows on calendar when in sidebar.
2. See misalignments of dates.
3. Unable to click on event.But the calendar occupying in an entire window (see http://www.northwestflyanglers.dreamhosters.com/welcome/welcome-calendar/) looks terrific.
Brett
Fulvio
Update. So the problems I mentioned above are not as accurately stated as they should have been.
First – arrows started to show up on sidebar (?????).
Looking more closely at the sidebars (see http://www.northwestflyanglers.dreamhosters.com/) I see that there are two events where there should only be one. The sidebar is the same calendar as http://www.northwestflyanglers.dreamhosters.com/welcome/welcome-calendar/) but in the sidebar. And that problem is also in that calendar. So the next paragraph may give you more insight.
The Google calendar (https://www.google.com/calendar/render??tab=mc#main_7%7Cmonth) has repeating events on Tues, Wed, Thurs, and Fri. The events on the site calendar show up on Wed, Thurs and Sat. Hopefully you can see the Google calendar. If not give me an email address and I can give you access.
Sorry I was so hasty.
Brett
Fulvio
Events on calendar have stopped showing up. So has next arrow.
Brett
possibly related to this? https://wordpress.org/support/topic/individual-google-api-keys-now-required?replies=7
Fulvio
Yes that was it. When I updated to latest beta I didn’t enter the api key.
Are you still working on the formatting problems?
Thanks.
Brett
The topic ‘3.0 Beta’ is closed to new replies.