Knowledge Base – PHP Event Calendar https://phpeventcalendar.com Modern Event Calendar For Your Website. Wed, 20 Nov 2024 05:15:39 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.4 How do I edit calendars once I add them https://phpeventcalendar.com/knowledge-base/how-do-i-edit-calendars-once-i-add-them/ Wed, 20 Nov 2024 05:15:38 +0000 https://phpeventcalendar.com/?p=1536 Question: 
I noticed the guest calendar on my own 🙂 However, none of my calendars that I set as Public show up there. Am I doing something wrong?

Answer:
The reason is that the events are set to Private by default when created. Public calendar allows users to view the calendar without login. But each individual events also have the option to be private or public. 

]]>
What are the options for integrating into an existing website https://phpeventcalendar.com/knowledge-base/what-are-the-options-for-integrating-into-an-existing-website/ Wed, 20 Nov 2024 05:14:54 +0000 https://phpeventcalendar.com/?p=1535 Please take a look at the calendar.php, make changes to that file to fit into your current system.

The user login can be changed in the database directly inside pec_users table. 

]]>
Errors – Strict Standards: date() and timezone settings https://phpeventcalendar.com/knowledge-base/errors-strict-standards-date-and-timezone-settings/ Wed, 20 Nov 2024 05:13:52 +0000 https://phpeventcalendar.com/?p=1534 Question:

We installed PHP event calendar a few days ago and all was fine. Now we have lots of errors 
Strict Standards: date(): It is not safe to rely on the system’s timezone settings…..

Solution:
Did you update the PHP version recently?  Please Set a value to date.timezone in your php.ini

http://php.net/manual/en/datetime.configuration.php#ini.date.timezone

]]>
Access denied for “root@localhost” https://phpeventcalendar.com/knowledge-base/access-denied-for-rootlocalhost/ Wed, 20 Nov 2024 05:12:23 +0000 https://phpeventcalendar.com/?p=1532 Make sure the login info in conf.php is correct. See http://phpeventcalendar.com/docs/installation/ for more information. 

]]>
Is there any way to have individual logins so that each user can manage their own calendar only? https://phpeventcalendar.com/knowledge-base/is-there-any-way-to-have-individual-logins-so-that-each-user-can-manage-their-own-calendar-only/ Wed, 20 Nov 2024 05:09:16 +0000 https://phpeventcalendar.com/?p=1531 Question:
Hi, is there any way to have individual logins so that each user can manage their own calendar only? I have a group of 50 calendars but I need them to only manage their own only with a super admin available to manage them all.

Solution:
Here’s the SQL query to insert new user into the calendar database table ‘pec_users‘ with user role as “user“.

You would need to simply replace with some real user data. The password can be encode here.

INSERT INTO pec_users
(access_key, activated, admin_id, role, first_name, last_name, active_calendar_id, company, username, password, email, timezone, language, theme, kbd_shortcuts, created_on, updated_on)
VALUES
(NULL, 1, NULL, ‘user’, ‘Joe’, ‘Blow’, ‘0’, ‘Rand Corp’, ‘joeblow’, md5(‘123456’), ‘joeblow@example.com’, ‘+6’, ‘English’, ‘default’, 1, NOW(), NOW());

<br>

Users will only see their own calendars.

]]>
Admin user cannot add events to the other users calendars https://phpeventcalendar.com/knowledge-base/admin-user-cannot-add-events-to-the-other-users-calendars/ Wed, 20 Nov 2024 05:07:25 +0000 https://phpeventcalendar.com/?p=1530 Question:
When I have multiple users, I can view the other users calendars with an admin user. But I can’t use the admin user to add events to other users calendars. How can I change this behavior so that the admin user can add events to the other users calendars.

Solution:
In file ‘/server/html/event-create.html.php‘, there are three load options to choose from

LOAD_ALL_CALENDARS

LOAD_MY_CALENDARS

LOAD_USER_CALENDARS

Change the load option to 

LOAD_MY_CALENDARS

]]>
I keep having the error “Something went wrong, please try again later”. https://phpeventcalendar.com/knowledge-base/i-keep-having-the-error-something-went-wrong-please-try-again-later/ Wed, 20 Nov 2024 05:05:38 +0000 https://phpeventcalendar.com/?p=1528 When you have errors similar to the following

Warning: C_Calendar::loadAllCalendars(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. 

It’s likely that the system timezone isn’t enabled.

Here’s an instruction how to set the timezone in php.ini in cPanel. If you don’t have cPanel, you can always open in any text editor and edit then save.

Always remember to restart web server after edit php.ini.

]]>
The admin I can only see the calendars I created. The other admin can’t see my calendars. https://phpeventcalendar.com/knowledge-base/the-admin-i-can-only-see-the-calendars-i-created-the-other-admin-cant-see-my-calendars/ Wed, 20 Nov 2024 05:02:30 +0000 https://phpeventcalendar.com/?p=1525 Problem:

The admin I can only see the calendars I created. The other admin can’t see my calendars etc. The Users can create calendars, but I don’t want them too.

Solution:

All calendars are private by default unless they are made public.

For other users to view the calendar only, send you the public calendar link. Calendars must be made to the public. 


]]>
How to change calendar language https://phpeventcalendar.com/knowledge-base/how-to-change-calendar-language/ Wed, 20 Nov 2024 04:59:45 +0000 https://phpeventcalendar.com/?p=1519 In Calendar Settings, select a language and click save.

If you don’t see the language you need, please send us an email info (at) phpeventcalendar.com and request a new language pack for free!


Older PHP Event Calendar

Depending on the versions, especially older calendar versions, you may need to manually update a few more files under server/html directory may require some search and replace such as “Close” and “Calendar” and other minor text.

See the screenshot below:



]]>
Warning after cron job execution “Notice: Undefined index: HTTP_HOST in pec.php…” https://phpeventcalendar.com/knowledge-base/warning-after-cron-job-execution-notice-undefined-index-http_host-in-pec-php/ Wed, 20 Nov 2024 04:51:50 +0000 https://phpeventcalendar.com/?p=1518 $_SERVER[‘HTTP_HOST‘] only exist when visit calendar via web page, so if you are trying to run cron jobs for event reminders, you will be using PHP CLI. If you getting the following warning

Warning after cron job execution “Notice: Undefined index: HTTP_HOST in pec.php…”

you will need to set the HTTP_HOST manually to point to your domain in pec.php

if ( defined( 'WP_CLI' ) && WP_CLI ) {
$_SERVER['HTTP_HOST'] = 'yourdomain.com';
}
]]>