Nolly
Member
Posts: 14
Registered: 5/6/2005
Member Is Offline
|
| posted on 5/7/2005 at 11:35 AM |
|
|
Install and other problems
I am using XAMPP 1.4.11 so as I can test php code before uploading to my site. I have downloaded the php calendar zip file (1.5.1). I extracted the
contents of the zip file to a folder 'ec' in directory path, apachefriends file folder -> xampp -> htdocs. XAMPP was started and I located the
index.php file in my browser (http://localhost/ec/index.php). When I clicked on the
install link, the procedure complained about the 'data' path (folder 'data did not exist in folder 'cl_files'). I created a folder in cl_files
named 'data' and the install procedure then worked. When I went to the demo page, I got nothing but errors and I am unable to test the calendar
functionality.
Your help would be appreciated.
|
|
|
Nolly
Member
Posts: 14
Registered: 5/6/2005
Member Is Offline
|
| posted on 5/7/2005 at 02:03 PM |
|
|
More information
I am running XP Pro.
Having installed the calendar a little differently, the problem has changed. I created the missing 'data' folder under 'cl_files' as before. This
time, instead of copying the 'data' folder from 'tmp', I moved it (cut & paste).
Now the two calendars are displayed but the images were (at first) missing. I found a PATH variable which had not been configured correctly and after
correcting that, the images were displayed.
I now have the following problem. When I click on the control panel link, I get the following error.
Warning: main(cl_files/calendar.php) [function.main]: failed to open stream: No such file or directory in
C:\apachefriends\xampp\htdocs\events\cl_files\index.php on line 25
Warning: main() [function.include]: Failed opening 'cl_files/calendar.php' for inclusion (include_path='.;c:\apachefriends\xampp\php\pear\')
in C:\apachefriends\xampp\htdocs\events\cl_files\index.php on line 25
Fatal error: Call to undefined function read_data() in C:\apachefriends\xampp\htdocs\events\cl_files\index.php on line 27
I have seen two references in the forum to 'line 25' but neither of them answer the problem.
Any help appreciated.
|
|
|
Nolly
Member
Posts: 14
Registered: 5/6/2005
Member Is Offline
|
| posted on 5/8/2005 at 10:46 AM |
|
|
Slowly making progress
Let me make this point before I continue. This product looks like it could be excellent but is marred by installation problems. I don't care if the
product is free or not. If you provide a product for free (maybe with limited functionality) then it should work otherwise you will not encourage
anyone to purchase the product. I do not expect to have to debug the code myself. I am very knew to PHP but do have a little knowledge of C.
Note that I am on a Windows platform and I am using software to create my own server environment (Apache, PHP, etc.).
I knew that my initial problems were to do with the paths to various files. Having tried to get the relative paths (the way it is installed) correct,
I gave up and used absolute paths. Here is what the top of my calendar.php file looks like with the important parts highlighted.
$PATHS=array(
#"path_to_calendar" => "events/cl_files/", // original
#'path_to_calendar' => "/events/cl_files/", // modified by me
'path_to_calendar' => "C:\\apachefriends\\xampp\\htdocs\\events\\cl_files\\", // modified by me
#"path_to_calendar_img" => "events/cl_files/img/", // original // modified by me
#'path_to_calendar_img' => "/events/cl_files/img/",
'path_to_calendar_img' => "C:\\apachefriends\\xampp\\htdocs\\events\\cl_files\\img\\", // modified by me
'WEB_path_to_calendar_img' => "http://localhost/events/cl_files/img/", // modified by me - original was a mess
#"path_to_data" => "events/cl_files/data/" // original
#'path_to_data' => "/events/cl_files/data/" // modified by me
'path_to_data' => "C:\\apachefriends\\xampp\\htdocs\\events\\cl_files\\data\\", // modified by me
);
I modified the relevant paths in global.php as well (in sub-folder 'data').
I had to modify the last part of calendar.php as well to get around a 'Parsing' problem. Here is the original and modified code with the relevant
parts highlighted.
$calendar = new calendar();
#include $calendar->s_FilesDir."db.php"; // original
#include $calendar->s_FilesDir."events.php'; // original
include "db.php";
include "events.php";
?>
I need to try and resolve what the problem is with the original code. I now have something that I can test and have created a calendar called
'Norman'. There are some strange things occuring with the 'events'. I will leave the detail for the moment but will probably include it in another
thread.
Meanwhile, I would still like some help as would others. I get the feeling that I am on the Marie Celeste.
Any help would be appreciated.
Norman
|
|
|
Nolly
Member
Posts: 14
Registered: 5/6/2005
Member Is Offline
|
| posted on 5/8/2005 at 01:06 PM |
|
|
Another step closer
I don't know how I missed this one but I have now gone back to the original code at the bottom of calendar.php with one exception, namely, correct
quoting. This is what I had,
$calendar = new calendar();
include $calendar->s_FilesDir."db.php";
include $calendar->s_FilesDir."events.php'; // note the single quotation mark at the end of the events.php
This is the correction,
$calendar = new calendar();
include $calendar->s_FilesDir."db.php";
include $calendar->s_FilesDir."events.php";
Note that single or double quotation marks seem to work but they cannot of course be mixed. Not sure what quotation marks should be strictly used or
whether it matters.
Norman
|
|
|