wrightme
Junior Member
Posts: 2
Registered: 12/10/2006
Location: Nevada
Member Is Offline
|
| posted on 12/10/2006 at 11:30 AM |
|
|
Calendar installation problems.
I am attempting to use this calendar on my site, and the installation appears to be problematic. A GOOD explanation of the directory paths to enter
for the install appears to be necessary. Judging by the posts in this forum, the PHP Event Calendar is looking like an "orphan" application. I did
find some rudimentary explanations for a solution to the directory problem in posts from about 2003!
Does anyone have a good CLEAR explanation of the information to enter in the install.php session? If a moderator reads this, may I suggest that a
"FAQ" sticky be created to address some of the persistent installation problems? I realize that the calendar is a free program, but if it is
indicative of the coding for the other products here, my choice is clear.
|
|
|
bdcubit
Newbie
Posts: 1
Registered: 12/12/2006
Member Is Offline
|
| posted on 12/12/2006 at 01:30 PM |
|
|
Installation
You need to modify the array in the cl_file/data/global.php file to the appropriate path "usually just add a ../to the the front of the values and
then adjust the array in cl_files/calendar.php.Hope this helps
|
|
|
wrightme
Junior Member
Posts: 2
Registered: 12/10/2006
Location: Nevada
Member Is Offline
|
| posted on 12/14/2006 at 08:53 PM |
|
|
Yes, I have tried multiple ways to modify the paths in both those files, to no avail. It is still not clear what needs to be placed there.
|
|
|
chronister
Member
Posts: 23
Registered: 8/24/2006
Member Is Offline
|
| posted on 12/17/2006 at 10:30 PM |
|
|
Post your path array here so we can see what you have. Here is an example of mine and another users.
$PATHS=array(
"path_to_calendar" => "c:\\program files\\xampp\\htdocs\\jen.localnet\\calendar\\cl_files\\",
"path_to_calendar_img" => "c:\\program files\\xampp\\htdocs\\jen.localnet\\calendar\\cl_files\\img\\",
"WEB_path_to_calendar_img" => "http://jen.localnet/calendar/cl_files/img/",
"path_to_data" => "c:\\program files\\xampp\\htdocs\\jen.localnet\\calendar\\cl_files\\data\\"
);
this is for the xampp distribution installed on my local windows machine.
Here is the path syntax to use for a linux server. This is from another post I responded to:
http://www.softcomplex.com/forum/viewthread.php?tid=3667#pid9541
$PATHS=array(
"path_to_calendar" => "/home/c/cburk1/public_html/test/cl_files/",
"path_to_calendar_img" => "/home/c/cburk1/public_html/test/cl_files/img/",
"WEB_path_to_calendar_img" => "http://www.yourwebsite.com/~cburk1/test/cl_files/img/",
"path_to_data" => "/home/c/cburk1/public_html/test/cl_files/data/"
);
|
|
|
kjackson
Junior Member
Posts: 6
Registered: 6/18/2007
Member Is Offline
|
| posted on 6/19/2007 at 03:10 PM |
|
|
the way I fixed this problem was to create a symbolic link of the cl_files folder within itself... of course this only works in *nix or BSD based
systems.
|
|
|
tigra
Administrator
Posts: 2029
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 8/13/2008 at 05:12 PM |
|
|
here's step-by-step on resolving the paths problem if you experience one:
- create phpinfo.php file with nothing but <?php phpinfo() ?> inside it
- upload the file in the same directory where you uploaded the calendar
- request the file from the server in your browser via the http
- you'll see the php information page. search the page for SCRIPT_FILENAME this will give you the absolute system path of your calendar directory.
For example
/home/username/sitename/html/calendar/phpinfo.php
We only need the path i.e. /home/username/sitename/html/calendar/
The path in the address bar of your browser is the web path that we'll also need.
i.e. if you see http://www.yoursite975.com/calendar/phpinfo.php
we'll need http://www.yoursite975.com/calendar/ part of it.
- edit cl_files/calendar.php adding the paths you found. With the sample path we'd have this:
| Code: |
"path_to_calendar" => "/home/username/sitename/html/calendar/cl_files/",
"path_to_calendar_img" => "/home/username/sitename/html/calendar/cl_files/img/",
"WEB_path_to_calendar_img" => "http://www.yoursite975.com/calendar/cl_files/img/",
"path_to_data" => "/home/username/sitename/html/calendar/cl_files/data/"
|
copy these lines to the buffer and save the file
- edit cl_files/data/global.php
overwriting the corresponding lines with the pasted text
Unless there are some permissions issues or corrupted files you should be good by now. Access the sample calendars in the browser. I.e.
http://www.yoursite975.com/calendar/
You can delete phpinfo.php now.
|
|
|
Sentinel
Newbie
Posts: 1
Registered: 12/10/2008
Member Is Offline
|
| posted on 12/10/2008 at 06:34 PM |
|
|
Excellent help post above mine here. I was having the same install issues and I agree that there should be a FAQ or at least make this topic a sticky
at the top of the forum.
After following the fix in the the above post I am still getting the following one error when I try to log in to the admin panel...
| Code: | | Warning: extract() [function.extract]: First argument should be an array in /home/username/public_html/cal/cl_files/index.php on
line 24 |
Anyone have any ideas?
|
|
|
Nora
Newbie
Posts: 1
Registered: 12/21/2008
Location: Missoula, MT
Member Is Offline
|
| posted on 12/21/2008 at 02:38 AM |
|
|
Thanks!
| Quote: | Originally posted by tigra
here's step-by-step on resolving the paths problem if you experience one:
- create phpinfo.php file with nothing but <?php phpinfo() ?> inside it
- upload the file in the same directory where you uploaded the calendar
- request the file from the server in your browser via the http
- you'll see the php information page. search the page for SCRIPT_FILENAME this will give you the absolute system path of your calendar directory.
For example
/home/username/sitename/html/calendar/phpinfo.php
We only need the path i.e. /home/username/sitename/html/calendar/
The path in the address bar of your browser is the web path that we'll also need.
i.e. if you see http://www.yoursite975.com/calendar/phpinfo.php
we'll need http://www.yoursite975.com/calendar/ part of it.
- edit cl_files/calendar.php adding the paths you found. With the sample path we'd have this:
| Code: |
"path_to_calendar" => "/home/username/sitename/html/calendar/cl_files/",
"path_to_calendar_img" => "/home/username/sitename/html/calendar/cl_files/img/",
"WEB_path_to_calendar_img" => "http://www.yoursite975.com/calendar/cl_files/img/",
"path_to_data" => "/home/username/sitename/html/calendar/cl_files/data/"
|
copy these lines to the buffer and save the file
- edit cl_files/data/global.php
overwriting the corresponding lines with the pasted text
Unless there are some permissions issues or corrupted files you should be good by now. Access the sample calendars in the browser. I.e.
http://www.yoursite975.com/calendar/
You can delete phpinfo.php now. |
Thanks! That really helped me too!
|
|
|
Ethan
Junior Member
Posts: 2
Registered: 3/17/2009
Member Is Offline
|
| posted on 3/17/2009 at 05:24 AM |
|
|
Tigra, thank you very much for this big help... it works!!!
| Quote: | Originally posted by tigra
here's step-by-step on resolving the paths problem if you experience one:
- create phpinfo.php file with nothing but <?php phpinfo() ?> inside it
- upload the file in the same directory where you uploaded the calendar
- request the file from the server in your browser via the http
- you'll see the php information page. search the page for SCRIPT_FILENAME this will give you the absolute system path of your calendar directory.
For example
/home/username/sitename/html/calendar/phpinfo.php
We only need the path i.e. /home/username/sitename/html/calendar/
The path in the address bar of your browser is the web path that we'll also need.
i.e. if you see http://www.yoursite975.com/calendar/phpinfo.php
we'll need http://www.yoursite975.com/calendar/ part of it.
- edit cl_files/calendar.php adding the paths you found. With the sample path we'd have this:
| Code: |
"path_to_calendar" => "/home/username/sitename/html/calendar/cl_files/",
"path_to_calendar_img" => "/home/username/sitename/html/calendar/cl_files/img/",
"WEB_path_to_calendar_img" => "http://www.yoursite975.com/calendar/cl_files/img/",
"path_to_data" => "/home/username/sitename/html/calendar/cl_files/data/"
|
copy these lines to the buffer and save the file
- edit cl_files/data/global.php
overwriting the corresponding lines with the pasted text
Unless there are some permissions issues or corrupted files you should be good by now. Access the sample calendars in the browser. I.e.
http://www.yoursite975.com/calendar/
You can delete phpinfo.php now. |
|
|
|
Harold
Newbie
Posts: 1
Registered: 6/18/2009
Member Is Offline
|
| posted on 6/18/2009 at 08:17 PM |
|
|
I don“t have the files calendar.php and global.php in the cl_files en cl_files/data directory's.
Is the download not complete (got it this evening)?
This is the error I get:
Warning: include(cl_files/calendar.php) [function.include]: failed to open stream: No such file or directory in
/usr/local/psa/home/vhosts/epenaren.nl/httpdocs/kalender/cl_files/index.php on line 25
Warning: include(cl_files/calendar.php) [function.include]: failed to open stream: No such file or directory in
/usr/local/psa/home/vhosts/epenaren.nl/httpdocs/kalender/cl_files/index.php on line 25
Warning: include() [function.include]: Failed opening 'cl_files/calendar.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in
/usr/local/psa/home/vhosts/epenaren.nl/httpdocs/kalender/cl_files/index.php on line 25
Fatal error: Call to undefined function read_data() in /usr/local/psa/home/vhosts/epenaren.nl/httpdocs/kalender/cl_files/index.php on line 27
|
|
|