Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Calendar installation problems.
wrightme
Newbie

Posts: 1
Registered: 12/10/2006
Location: Nevada
Member Is Offline
posted on 12/10/2006 at 11:30 AM Reply With Quote
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.
View User's Profile View All Posts By User U2U Member
bdcubit
Newbie

Posts: 1
Registered: 12/12/2006
Member Is Offline
posted on 12/12/2006 at 01:30 PM Reply With Quote
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
View User's Profile View All Posts By User U2U Member
chronister
Member

Posts: 23
Registered: 8/24/2006
Member Is Offline
posted on 12/17/2006 at 10:30 PM Reply With Quote

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/"
);
View User's Profile View All Posts By User U2U Member
kjackson
Junior Member

Posts: 6
Registered: 6/18/2007
Member Is Offline
posted on 6/19/2007 at 03:10 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/13/2008 at 05:12 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
Sentinel
Newbie

Posts: 1
Registered: 12/10/2008
Member Is Offline
posted on 12/10/2008 at 06:34 PM Reply With Quote

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?
View User's Profile View All Posts By User U2U Member
Nora
Newbie

Posts: 1
Registered: 12/21/2008
Location: Missoula, MT
Member Is Offline
posted on 12/21/2008 at 02:38 AM Reply With Quote
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!
View User's Profile View All Posts By User U2U Member
Ethan
Junior Member

Posts: 2
Registered: 3/17/2009
Member Is Offline
posted on 3/17/2009 at 05:24 AM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
Harold
Newbie

Posts: 1
Registered: 6/18/2009
Member Is Offline
posted on 6/18/2009 at 08:17 PM Reply With Quote

I donA?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
View User's Profile View All Posts By User U2U Member
Waynef
Junior Member

Posts: 2
Registered: 12/9/2009
Location: Ireland
Member Is Offline
posted on 12/9/2009 at 09:39 PM Reply With Quote
Also getting problems


I followed the advice as above but now when I try to login I get this:

Fatal error: Call to undefined method stdClass::load_item() in /home/enrg/public_html/printandweb.ie/calendar/cl_files/calendar.php on line 110


I'll post line 110 so you can see what its referring to:

$this->events_class->load_item();

Have no idea what this means can anyone help me?

Thanks in advance

Wayne.
View User's Profile View All Posts By User U2U Member
qweqqweq
Newbie

Posts: 1
Registered: 7/5/2011
Location: fruita co
Member Is Offline
posted on 7/5/2011 at 11:13 AM Reply With Quote
i got a lot of errors.


hi, i got a ton of errors. i don't see anyone posting here much lately so i'll start with my os general info:

i've got windows 7 and php5.

here's the errors i got:

"'.str_replace("\\","\\\\",$files_path).'", "path_to_calendar_img" => "'.str_replace("\\","\\\\",$img_path).'", "WEB_path_to_calendar_img" => "'.$img_web_path.'", "path_to_data" => "'.str_replace("\\","\\\\",$data_path).'" );'; $c=str_replace("<--path-->",$cont,$c); fclose($fp); $fp=fopen($files_path.'/calendar.php','w+'); fwrite($fp,$c); fclose($fp); chmod(realpath($files_path.'/calendar.php'),0664); echo "
Paths to files have been updated.
"; }else{ echo '
Can not create calendar.php file please check permission and try again.
'; return false; } $c = ''; if([email protected]('./global.php','r')){ while (!feof($fp)) { $c .= fgets($fp, 4096); } $cont=' $PATHS=array( "path_to_calendar" => "'.str_replace("\\","\\\\",$files_path).'", "path_to_calendar_img" => "'.str_replace("\\","\\\\",$img_path).'", "WEB_path_to_calendar_img" => "'.$img_web_path.'", "path_to_data" => "'.str_replace("\\","\\\\",$data_path).'" );'; $c=str_replace("<--path-->",$cont,$c); fclose($fp); $fp=fopen($data_path.'/global.php','w+'); fwrite($fp,$c); fclose($fp); chmod(realpath($data_path.'/global.php'),0664); echo "
Paths to files have been updated.
"; }else{ echo '
Can not create config file please check permission and try again.

';
foreach($data as $k=>$v){
if(is_array($v)){
if($k=='groups.php' || $k=='users.php') $content='<?php '.serialize($v).'?>';
else $content = serialize($v);
@unlink($data_path.'/'.$k);
[email protected]($data_path.'/'.$k,'w+');
fwrite($fp,$content);
fclose($fp);
echo $data_path.'/'.$k." file has been created \n";
}
}
}
echo '


'; return false; } if($mess['img']){ echo "
Upload new arrow images is impossible, because image folder is not writable.
"; } if(!$error){ if(is_file('./install_dat.php')){ include './install_dat.php'; }else{ echo '
Can not find install_dat.php file.
'; return false; } echo '
'; foreach($data as $k=>$v){ if(is_array($v)){ if($k=='groups.php' || $k=='users.php') $content='<?php '.serialize($v).'?>'; else $content = serialize($v); @unlink($data_path.'/'.$k); [email protected]($data_path.'/'.$k,'w+'); fwrite($fp,$content); fclose($fp); echo $data_path.'/'.$k." file has been created \n"; } } } echo '
Installation files removal.

';

if(@unlink('./install_dat.php')){
echo "installer.dat file has been removed.\n";
}else{
echo "Please remove install_dat.php file manually.\n";
}


'; if(@unlink('./install_dat.php')){ echo "installer.dat file has been removed.\n"; }else{ echo "Please remove install_dat.php file manually.\n"; } if(@unlink('./install.php')){ echo "install.php file has been removed.\n"; }else{ echo "Please remove install.php file manually.\n"; } if(@unlink('./global.php')){ echo "global.php file has been removed.\n"; }else{ echo "Please remove global.php file manually.\n"; } if(@unlink('./calendar.dat')){ echo "calendar.dat file has been removed.\n"; }else{ echo "Please remove calendar.dat file manually.\n"; } echo "
Installation is complete
Calendar demo page"; } function My_is_writable($name){ if(is_dir($name)){ if($fp = @fopen($name.'/dfashdfjdshfsjdfhjks.tst','w+')){ fclose($fp); unlink($name.'/dfashdfjdshfsjdfhjks.tst'); return true; } return false; }else{ } } function copy_folder($from,$to){ if ($handle = opendir($from)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".."){ copy($from.'/'.$file,$to.'/'.$file); } } closedir($handle); } } function check_install(){ global $_POST,$error,$real_paths,$mess; extract($_POST); $error = array(); if(function_exists('posix_geteuid')){ $my_uid = posix_geteuid(); $my_gid = posix_getegid(); }else{ $my_uid = getmyuid(); $my_gid = getmygid(); } if(!$install){ return false; } if(!$files_path){ $error['files']="Please set Files directory path."; } if(!is_dir($files_path)){$error['files']="Please set correct Files directory path.
Folder ".$files_path." does not exists."; } if(!$data_path){ $error['data']="Please set Data directory path."; } if(!is_dir($data_path)){$error['data']="Please set correct Data directory path.
Folder ".$data_path." does not exists."; } if(!$img_path){ $error['img']="Please set Image directory path."; } if(!is_dir($img_path)){$error['img']="Please set correct Image directory path.
Folder ".$data_path." does not exists."; } if(!$error['files']) if(!My_is_writable($real_paths['files'])){ $stat=stat ($real_paths['files']);$dir_gid = $stat['gid']; $dir_uid = $stat['uid']; $dir_perm = substr(decoct($stat['mode']),-4); if($dir_gid==$my_gid) $dir_perm[2]=7; else $dir_perm[3]=7; $error['files']="Can not create any files in ".$real_paths['files']." directory. Please set ". $dir_perm." permission on".$real_paths['files']." directory. Please check permission and try again."; } if(!$error['data']) if(!My_is_writable($real_paths['data'])){ $stat=stat ($real_paths['data']); $dir_gid = $stat['gid']; $dir_uid = $stat['uid']; $dir_perm = substr(decoct($stat['mode']),-4);if($dir_gid==$my_gid) $dir_perm[2]=7; else $dir_perm[3]=7; $error['data']="Can not create any files in ".$real_paths['data']." directory. Please set ". $dir_perm." permission on ".$real_paths['data']." directory. Please check permission and try again."; }else{copy_folder('./tmp/data/',$real_paths['data']); } if(!$error['img']) if(!My_is_writable($real_paths['img'])){ $stat=stat ($real_paths['img']); $dir_gid = $stat['gid']; $dir_uid = $stat['uid']; $dir_perm = substr(decoct($stat['mode']),-4); if($dir_gid==$my_gid)$dir_perm[2]=7; else $dir_perm[3]=7; $mess['img']="Can not create any files in ".$real_paths['img']." directory. Please set ". $dir_perm." permission on ".$real_paths['img']." directory. Please check permission and try again."; } if(count($error)){ return false; } return true; }function is_windows(){ global $_SERVER; if(stristr($_SERVER['OS'],'wind') || stristr($_SERVER['SERVER_SOFTWARE'],'microsoft')) return true; return false; } extract($_POST); $root_path=str_replace("install.php",'',$_SERVER['PATH_TRANSLATED']); if(is_windows()){ $real_paths=array( 'data'=>$data_path?stripslashes($data_path):$root_path."cl_files\\\\data\\\\", 'img'=>$img_path?stripslashes($img_path):$root_path."cl_files\\\\img\\\\", 'files'=>$files_path?stripslashes($files_path):$root_path."cl_files\\\\" ); }else{ $real_paths=array( 'data'=>$data_path?$data_path:$root_path."cl_files/data/", 'img'=>$img_path?$img_path:$root_path."cl_files/img/", 'files'=>$files_path?$files_path:$root_path."cl_files/" ); } if(check_install()){ install(); }else{ ?>
Calendar Installation Paths

".$error['files']."";?> ".$error['data']."";?> ".$error['img']."";?>

>Script files directory: <?php echo $real_paths['files']?>
>Data files directory: <?php echo $real_paths['data']?>
>Images directory: <?php echo $real_paths['img']?>
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free/Trial Script Download Free Download
Product Documentation Documentation
Documentation page
Change Log
Support Forum Support Forum
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004